blob: 58fad10557839276648e1fc169b6395e4be01002 [file] [log] [blame]
drh75897232000-05-29 14:26:00 +00001#! /bin/sh
drh75897232000-05-29 14:26:00 +00002# Guess values for system-dependent variables and create Makefiles.
a.rottmann964dbb12004-02-26 19:47:42 +00003# Generated by GNU Autoconf 2.59.
drh75897232000-05-29 14:26:00 +00004#
a.rottmann964dbb12004-02-26 19:47:42 +00005# Copyright (C) 2003 Free Software Foundation, Inc.
drh75897232000-05-29 14:26:00 +00006# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00008## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
a.rottmann964dbb12004-02-26 19:47:42 +000022DUALCASE=1; export DUALCASE # for MKS sh
a.rottmann84e63352003-03-24 09:42:16 +000023
24# Support unset when possible.
a.rottmann964dbb12004-02-26 19:47:42 +000025if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a.rottmann84e63352003-03-24 09:42:16 +000026 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
a.rottmann964dbb12004-02-26 19:47:42 +000044 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a.rottmann84e63352003-03-24 09:42:16 +000045 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
a.rottmann964dbb12004-02-26 19:47:42 +0000221 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +0000222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +0000228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +0000229
230# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +0000231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +0000232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
drh75897232000-05-29 14:26:00 +0000243
a.rottmann84e63352003-03-24 09:42:16 +0000244
drh71eb93e2001-09-28 01:34:43 +0000245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$ECHO in
249X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253esac
254
255echo=${ECHO-echo}
256if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
a.rottmann9bc8b932004-02-29 15:18:31 +0000262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
drh71eb93e2001-09-28 01:34:43 +0000263 # Yippee, $echo works!
264 :
265else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<EOF
a.rottmann9bc8b932004-02-29 15:18:31 +0000274$*
drh71eb93e2001-09-28 01:34:43 +0000275EOF
276 exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
282
283if test -z "$ECHO"; then
284if test "X${echo_test_string+set}" != Xset; then
285# find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289 echo_test_string="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291 then
292 break
293 fi
294 done
295fi
296
297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
300 :
301else
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
305 #
306 # So, first we look for a working echo in the user's PATH.
307
a.rottmann9bc8b932004-02-29 15:18:31 +0000308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +0000309 for dir in $PATH /usr/ucb; do
a.rottmann9bc8b932004-02-29 15:18:31 +0000310 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +0000311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
315 echo="$dir/echo"
316 break
317 fi
318 done
a.rottmann9bc8b932004-02-29 15:18:31 +0000319 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +0000320
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
327 echo='print -r'
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
334 export CONFIG_SHELL
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336 else
337 # Try using printf.
338 echo='printf %s\n'
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
342 # Cool, printf works
343 :
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 export CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
351 export SHELL
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
358 else
359 # maybe with a smaller string...
360 prev=:
361
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364 then
365 break
366 fi
367 prev="$cmd"
368 done
369
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 else
375 # Oops. We lost completely, so just stick with echo.
376 echo=echo
377 fi
378 fi
379 fi
380 fi
381fi
382fi
383
384# Copy echo and quote the copy suitably for passing to libtool from
385# the Makefile, instead of quoting the original, which is used later.
386ECHO=$echo
387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389fi
390
drh71eb93e2001-09-28 01:34:43 +0000391
drh71eb93e2001-09-28 01:34:43 +0000392
a.rottmann9bc8b932004-02-29 15:18:31 +0000393
394tagnames=${tagnames+${tagnames},}CXX
395
396tagnames=${tagnames+${tagnames},}F77
397
drh71eb93e2001-09-28 01:34:43 +0000398# Name of the host.
399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400# so uname gets run too.
401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403exec 6>&1
404
405#
406# Initializations.
407#
drh75897232000-05-29 14:26:00 +0000408ac_default_prefix=/usr/local
a.rottmann84e63352003-03-24 09:42:16 +0000409ac_config_libobj_dir=.
drh71eb93e2001-09-28 01:34:43 +0000410cross_compiling=no
411subdirs=
a.rottmann84e63352003-03-24 09:42:16 +0000412MFLAGS=
413MAKEFLAGS=
drh71eb93e2001-09-28 01:34:43 +0000414SHELL=${CONFIG_SHELL-/bin/sh}
415
416# Maximum number of lines to put in a shell here document.
417# This variable seems obsolete. It should probably be removed, and
418# only ac_max_sed_lines should be used.
419: ${ac_max_here_lines=38}
420
a.rottmann84e63352003-03-24 09:42:16 +0000421# Identity of this package.
422PACKAGE_NAME=
423PACKAGE_TARNAME=
424PACKAGE_VERSION=
425PACKAGE_STRING=
426PACKAGE_BUGREPORT=
427
drh71eb93e2001-09-28 01:34:43 +0000428ac_unique_file="src/sqlite.h.in"
a.rottmann84e63352003-03-24 09:42:16 +0000429# Factoring default headers for most tests.
430ac_includes_default="\
431#include <stdio.h>
432#if HAVE_SYS_TYPES_H
433# include <sys/types.h>
434#endif
435#if HAVE_SYS_STAT_H
436# include <sys/stat.h>
437#endif
438#if STDC_HEADERS
439# include <stdlib.h>
440# include <stddef.h>
441#else
442# if HAVE_STDLIB_H
443# include <stdlib.h>
444# endif
445#endif
446#if HAVE_STRING_H
447# if !STDC_HEADERS && HAVE_MEMORY_H
448# include <memory.h>
449# endif
450# include <string.h>
451#endif
452#if HAVE_STRINGS_H
453# include <strings.h>
454#endif
455#if HAVE_INTTYPES_H
456# include <inttypes.h>
457#else
458# if HAVE_STDINT_H
459# include <stdint.h>
460# endif
461#endif
462#if HAVE_UNISTD_H
463# include <unistd.h>
464#endif"
465
drh8e2e2a12006-02-01 01:55: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 BUILD_LIBS TARGET_CC TARGET_CFLAGS TARGET_LINK TARGET_LFLAGS TARGET_RANLIB TARGET_AR THREADSAFE TARGET_THREAD_LIB XTHREADCONNECT THREADSOVERRIDELOCKS ALLOWRELEASE TEMP_STORE BUILD_EXEEXT OS_UNIX OS_WIN 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 TARGET_LIBS LIBOBJS LTLIBOBJS'
a.rottmann84e63352003-03-24 09:42:16 +0000467ac_subst_files=''
drh75897232000-05-29 14:26:00 +0000468
469# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000470ac_init_help=
471ac_init_version=false
drh75897232000-05-29 14:26:00 +0000472# The variables have the same names as the options, with
473# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000474cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000475exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000476no_create=
drh75897232000-05-29 14:26:00 +0000477no_recursion=
478prefix=NONE
479program_prefix=NONE
480program_suffix=NONE
481program_transform_name=s,x,x,
482silent=
483site=
484srcdir=
drh75897232000-05-29 14:26:00 +0000485verbose=
486x_includes=NONE
487x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000488
489# Installation directory options.
490# These are left unexpanded so users can "make install exec_prefix=/foo"
491# and all the variables that are supposed to be based on exec_prefix
492# by default will actually change.
493# Use braces instead of parens because sh, perl, etc. also accept them.
drh75897232000-05-29 14:26:00 +0000494bindir='${exec_prefix}/bin'
495sbindir='${exec_prefix}/sbin'
496libexecdir='${exec_prefix}/libexec'
497datadir='${prefix}/share'
498sysconfdir='${prefix}/etc'
499sharedstatedir='${prefix}/com'
500localstatedir='${prefix}/var'
501libdir='${exec_prefix}/lib'
502includedir='${prefix}/include'
503oldincludedir='/usr/include'
504infodir='${prefix}/info'
505mandir='${prefix}/man'
506
drh75897232000-05-29 14:26:00 +0000507ac_prev=
508for ac_option
509do
drh75897232000-05-29 14:26:00 +0000510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
513 ac_prev=
514 continue
515 fi
516
drh71eb93e2001-09-28 01:34:43 +0000517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
drh75897232000-05-29 14:26:00 +0000518
519 # Accept the important Cygnus configure options, so we can diagnose typos.
520
drh71eb93e2001-09-28 01:34:43 +0000521 case $ac_option in
drh75897232000-05-29 14:26:00 +0000522
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
524 ac_prev=bindir ;;
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +0000526 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000527
528 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +0000529 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +0000530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +0000531 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000532
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +0000538 cache_file=$ac_optarg ;;
539
540 --config-cache | -C)
541 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +0000542
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544 ac_prev=datadir ;;
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546 | --da=*)
drh71eb93e2001-09-28 01:34:43 +0000547 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000548
549 -disable-* | --disable-*)
drh71eb93e2001-09-28 01:34:43 +0000550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +0000551 # Reject names that are not valid shell variable names.
drh71eb93e2001-09-28 01:34:43 +0000552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 eval "enable_$ac_feature=no" ;;
drh75897232000-05-29 14:26:00 +0000557
558 -enable-* | --enable-*)
drh71eb93e2001-09-28 01:34:43 +0000559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +0000560 # Reject names that are not valid shell variable names.
drh71eb93e2001-09-28 01:34:43 +0000561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565 case $ac_option in
566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
drh75897232000-05-29 14:26:00 +0000567 *) ac_optarg=yes ;;
568 esac
drh71eb93e2001-09-28 01:34:43 +0000569 eval "enable_$ac_feature='$ac_optarg'" ;;
drh75897232000-05-29 14:26:00 +0000570
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +0000578 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000579
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
582 with_gas=yes ;;
583
drh71eb93e2001-09-28 01:34:43 +0000584 -help | --help | --hel | --he | -h)
585 ac_init_help=long ;;
586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587 ac_init_help=recursive ;;
588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +0000590
591 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +0000592 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +0000593 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +0000594 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000595
596 -includedir | --includedir | --includedi | --included | --include \
597 | --includ | --inclu | --incl | --inc)
598 ac_prev=includedir ;;
599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +0000601 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000602
603 -infodir | --infodir | --infodi | --infod | --info | --inf)
604 ac_prev=infodir ;;
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +0000606 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000607
608 -libdir | --libdir | --libdi | --libd)
609 ac_prev=libdir ;;
610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +0000611 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000612
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614 | --libexe | --libex | --libe)
615 ac_prev=libexecdir ;;
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +0000618 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000619
620 -localstatedir | --localstatedir | --localstatedi | --localstated \
621 | --localstate | --localstat | --localsta | --localst \
622 | --locals | --local | --loca | --loc | --lo)
623 ac_prev=localstatedir ;;
624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
drh71eb93e2001-09-28 01:34:43 +0000627 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000628
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630 ac_prev=mandir ;;
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +0000632 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000633
634 -nfp | --nfp | --nf)
635 # Obsolete; use --without-fp.
636 with_fp=no ;;
637
638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +0000639 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +0000640 no_create=yes ;;
641
642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644 no_recursion=yes ;;
645
646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648 | --oldin | --oldi | --old | --ol | --o)
649 ac_prev=oldincludedir ;;
650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +0000653 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000654
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656 ac_prev=prefix ;;
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +0000658 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000659
660 -program-prefix | --program-prefix | --program-prefi | --program-pref \
661 | --program-pre | --program-pr | --program-p)
662 ac_prev=program_prefix ;;
663 -program-prefix=* | --program-prefix=* | --program-prefi=* \
664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +0000665 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000666
667 -program-suffix | --program-suffix | --program-suffi | --program-suff \
668 | --program-suf | --program-su | --program-s)
669 ac_prev=program_suffix ;;
670 -program-suffix=* | --program-suffix=* | --program-suffi=* \
671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +0000672 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000673
674 -program-transform-name | --program-transform-name \
675 | --program-transform-nam | --program-transform-na \
676 | --program-transform-n | --program-transform- \
677 | --program-transform | --program-transfor \
678 | --program-transfo | --program-transf \
679 | --program-trans | --program-tran \
680 | --progr-tra | --program-tr | --program-t)
681 ac_prev=program_transform_name ;;
682 -program-transform-name=* | --program-transform-name=* \
683 | --program-transform-nam=* | --program-transform-na=* \
684 | --program-transform-n=* | --program-transform-=* \
685 | --program-transform=* | --program-transfor=* \
686 | --program-transfo=* | --program-transf=* \
687 | --program-trans=* | --program-tran=* \
688 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +0000689 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000690
691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692 | -silent | --silent | --silen | --sile | --sil)
693 silent=yes ;;
694
695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696 ac_prev=sbindir ;;
697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +0000699 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000700
701 -sharedstatedir | --sharedstatedir | --sharedstatedi \
702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703 | --sharedst | --shareds | --shared | --share | --shar \
704 | --sha | --sh)
705 ac_prev=sharedstatedir ;;
706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +0000710 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000711
712 -site | --site | --sit)
713 ac_prev=site ;;
714 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +0000715 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000716
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718 ac_prev=srcdir ;;
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +0000720 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000721
722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723 | --syscon | --sysco | --sysc | --sys | --sy)
724 ac_prev=sysconfdir ;;
725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +0000727 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000728
729 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +0000730 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +0000731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +0000732 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000733
734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
735 verbose=yes ;;
736
drh71eb93e2001-09-28 01:34:43 +0000737 -version | --version | --versio | --versi | --vers | -V)
738 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +0000739
740 -with-* | --with-*)
drh71eb93e2001-09-28 01:34:43 +0000741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +0000742 # Reject names that are not valid shell variable names.
drh71eb93e2001-09-28 01:34:43 +0000743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000746 ac_package=`echo $ac_package| sed 's/-/_/g'`
drh71eb93e2001-09-28 01:34:43 +0000747 case $ac_option in
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
drh75897232000-05-29 14:26:00 +0000749 *) ac_optarg=yes ;;
750 esac
drh71eb93e2001-09-28 01:34:43 +0000751 eval "with_$ac_package='$ac_optarg'" ;;
drh75897232000-05-29 14:26:00 +0000752
753 -without-* | --without-*)
drh71eb93e2001-09-28 01:34:43 +0000754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +0000755 # Reject names that are not valid shell variable names.
drh71eb93e2001-09-28 01:34:43 +0000756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package | sed 's/-/_/g'`
760 eval "with_$ac_package=no" ;;
drh75897232000-05-29 14:26:00 +0000761
762 --x)
763 # Obsolete; use --with-x.
764 with_x=yes ;;
765
766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767 | --x-incl | --x-inc | --x-in | --x-i)
768 ac_prev=x_includes ;;
769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +0000771 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000772
773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775 ac_prev=x_libraries ;;
776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +0000778 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000779
drh71eb93e2001-09-28 01:34:43 +0000780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000783 ;;
784
drh71eb93e2001-09-28 01:34:43 +0000785 *=*)
786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790 { (exit 1); exit 1; }; }
791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
793 export $ac_envvar ;;
794
drh75897232000-05-29 14:26:00 +0000795 *)
drh71eb93e2001-09-28 01:34:43 +0000796 # FIXME: should be removed in autoconf 3.0.
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
drh75897232000-05-29 14:26:00 +0000801 ;;
802
803 esac
804done
805
806if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +0000807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000810fi
811
drh71eb93e2001-09-28 01:34:43 +0000812# Be sure to have absolute paths.
813for ac_var in exec_prefix prefix
drh75897232000-05-29 14:26:00 +0000814do
drh71eb93e2001-09-28 01:34:43 +0000815 eval ac_val=$`echo $ac_var`
816 case $ac_val in
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
a.rottmann84e63352003-03-24 09:42:16 +0000818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
drh71eb93e2001-09-28 01:34:43 +0000819 { (exit 1); exit 1; }; };;
drh75897232000-05-29 14:26:00 +0000820 esac
821done
822
drh71eb93e2001-09-28 01:34:43 +0000823# Be sure to have absolute paths.
824for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
a.rottmann964dbb12004-02-26 19:47:42 +0000825 localstatedir libdir includedir oldincludedir infodir mandir
drh71eb93e2001-09-28 01:34:43 +0000826do
827 eval ac_val=$`echo $ac_var`
828 case $ac_val in
829 [\\/$]* | ?:[\\/]* ) ;;
a.rottmann84e63352003-03-24 09:42:16 +0000830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
drh71eb93e2001-09-28 01:34:43 +0000831 { (exit 1); exit 1; }; };;
832 esac
833done
drh75897232000-05-29 14:26:00 +0000834
drh71eb93e2001-09-28 01:34:43 +0000835# There might be people who depend on the old broken behavior: `$host'
836# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +0000837# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +0000838build=$build_alias
839host=$host_alias
840target=$target_alias
drh75897232000-05-29 14:26:00 +0000841
a.rottmann84e63352003-03-24 09:42:16 +0000842# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +0000843if test "x$host_alias" != x; then
844 if test "x$build_alias" = x; then
845 cross_compiling=maybe
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847 If a cross compiler is detected then cross compile mode will be used." >&2
848 elif test "x$build_alias" != "x$host_alias"; then
849 cross_compiling=yes
850 fi
851fi
852
853ac_tool_prefix=
854test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
856test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +0000857
a.rottmann84e63352003-03-24 09:42:16 +0000858
drh75897232000-05-29 14:26:00 +0000859# Find the source files, if location was not specified.
860if test -z "$srcdir"; then
861 ac_srcdir_defaulted=yes
862 # Try the directory containing this script, then its parent.
a.rottmann84e63352003-03-24 09:42:16 +0000863 ac_confdir=`(dirname "$0") 2>/dev/null ||
864$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +0000865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
a.rottmann84e63352003-03-24 09:42:16 +0000869echo X"$0" |
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872 /^X\(\/\/\)$/{ s//\1/; q; }
873 /^X\(\/\).*/{ s//\1/; q; }
874 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +0000875 srcdir=$ac_confdir
876 if test ! -r $srcdir/$ac_unique_file; then
877 srcdir=..
878 fi
879else
880 ac_srcdir_defaulted=no
881fi
882if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +0000884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
drh71eb93e2001-09-28 01:34:43 +0000885 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000886 else
a.rottmann84e63352003-03-24 09:42:16 +0000887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
drh71eb93e2001-09-28 01:34:43 +0000888 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000889 fi
890fi
a.rottmann84e63352003-03-24 09:42:16 +0000891(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +0000894srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895ac_env_build_alias_set=${build_alias+set}
896ac_env_build_alias_value=$build_alias
897ac_cv_env_build_alias_set=${build_alias+set}
898ac_cv_env_build_alias_value=$build_alias
899ac_env_host_alias_set=${host_alias+set}
900ac_env_host_alias_value=$host_alias
901ac_cv_env_host_alias_set=${host_alias+set}
902ac_cv_env_host_alias_value=$host_alias
903ac_env_target_alias_set=${target_alias+set}
904ac_env_target_alias_value=$target_alias
905ac_cv_env_target_alias_set=${target_alias+set}
906ac_cv_env_target_alias_value=$target_alias
907ac_env_CC_set=${CC+set}
908ac_env_CC_value=$CC
909ac_cv_env_CC_set=${CC+set}
910ac_cv_env_CC_value=$CC
911ac_env_CFLAGS_set=${CFLAGS+set}
912ac_env_CFLAGS_value=$CFLAGS
913ac_cv_env_CFLAGS_set=${CFLAGS+set}
914ac_cv_env_CFLAGS_value=$CFLAGS
915ac_env_LDFLAGS_set=${LDFLAGS+set}
916ac_env_LDFLAGS_value=$LDFLAGS
917ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918ac_cv_env_LDFLAGS_value=$LDFLAGS
919ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920ac_env_CPPFLAGS_value=$CPPFLAGS
921ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923ac_env_CPP_set=${CPP+set}
924ac_env_CPP_value=$CPP
925ac_cv_env_CPP_set=${CPP+set}
926ac_cv_env_CPP_value=$CPP
a.rottmann9bc8b932004-02-29 15:18:31 +0000927ac_env_CXX_set=${CXX+set}
928ac_env_CXX_value=$CXX
929ac_cv_env_CXX_set=${CXX+set}
930ac_cv_env_CXX_value=$CXX
931ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932ac_env_CXXFLAGS_value=$CXXFLAGS
933ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935ac_env_CXXCPP_set=${CXXCPP+set}
936ac_env_CXXCPP_value=$CXXCPP
937ac_cv_env_CXXCPP_set=${CXXCPP+set}
938ac_cv_env_CXXCPP_value=$CXXCPP
939ac_env_F77_set=${F77+set}
940ac_env_F77_value=$F77
941ac_cv_env_F77_set=${F77+set}
942ac_cv_env_F77_value=$F77
943ac_env_FFLAGS_set=${FFLAGS+set}
944ac_env_FFLAGS_value=$FFLAGS
945ac_cv_env_FFLAGS_set=${FFLAGS+set}
946ac_cv_env_FFLAGS_value=$FFLAGS
drh75897232000-05-29 14:26:00 +0000947
drh71eb93e2001-09-28 01:34:43 +0000948#
949# Report the --help message.
950#
951if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +0000954 cat <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000955\`configure' configures this package to adapt to many kinds of systems.
956
957Usage: $0 [OPTION]... [VAR=VALUE]...
958
959To assign environment variables (e.g., CC, CFLAGS...), specify them as
960VAR=VALUE. See below for descriptions of some of the useful variables.
961
962Defaults for the options are specified in brackets.
963
964Configuration:
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
974
a.rottmann84e63352003-03-24 09:42:16 +0000975_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000976
a.rottmann84e63352003-03-24 09:42:16 +0000977 cat <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000978Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
a.rottmann964dbb12004-02-26 19:47:42 +0000980 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +0000981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
a.rottmann964dbb12004-02-26 19:47:42 +0000982 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +0000983
984By default, \`make install' will install all the files in
985\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987for instance \`--prefix=\$HOME'.
988
989For better control, use the options below.
990
991Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
a.rottmann84e63352003-03-24 09:42:16 +00001004_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001005
a.rottmann84e63352003-03-24 09:42:16 +00001006 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001007
1008System types:
1009 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +00001010 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1011_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001012fi
1013
1014if test -n "$ac_init_help"; then
1015
a.rottmann84e63352003-03-24 09:42:16 +00001016 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001017
1018Optional Features:
1019 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1020 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001021 --enable-shared[=PKGS]
1022 build shared libraries [default=yes]
1023 --enable-static[=PKGS]
1024 build static libraries [default=yes]
1025 --enable-fast-install[=PKGS]
1026 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001027 --disable-libtool-lock avoid locking (might break parallel builds)
dougcurrie0f290bf2004-06-21 18:57:29 +00001028 --enable-threadsafe Support threadsafe operation
drh91636d52005-11-24 23:14:00 +00001029 --enable-cross-thread-connections Allow connection sharing across threads
drh8e2e2a12006-02-01 01:55:17 +00001030 --enable-threads-override-locks Threads can override each others locks
xdong28f79f72003-09-23 00:35:21 +00001031 --enable-releasemode Support libtool link to release mode
dougcurrie0f290bf2004-06-21 18:57:29 +00001032 --enable-tempstore Use an in-ram database for temporary tables (never,no,yes,always)
drh7b5717e2004-11-25 13:50:01 +00001033 --disable-tcl do not build TCL extension
tpoindex9d9f76c2005-01-03 21:28:56 +00001034 --enable-debug enable debugging & verbose explain
drh71eb93e2001-09-28 01:34:43 +00001035
1036Optional Packages:
1037 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1038 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001039 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1040 --with-pic try to use only PIC/non-PIC objects [default=use
1041 both]
1042 --with-tags[=TAGS]
1043 include additional configurations [automatic]
drh71eb93e2001-09-28 01:34:43 +00001044 --with-hints=FILE Read configuration options from FILE
drhb571b452004-12-10 02:20:27 +00001045 --with-tcl=DIR directory containing tcl configuration (tclConfig.sh)
drh71eb93e2001-09-28 01:34:43 +00001046
1047Some influential environment variables:
1048 CC C compiler command
1049 CFLAGS C compiler flags
1050 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1051 nonstandard directory <lib dir>
1052 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1053 headers in a nonstandard directory <include dir>
1054 CPP C preprocessor
a.rottmann9bc8b932004-02-29 15:18:31 +00001055 CXX C++ compiler command
1056 CXXFLAGS C++ compiler flags
1057 CXXCPP C++ preprocessor
1058 F77 Fortran 77 compiler command
1059 FFLAGS Fortran 77 compiler flags
drh71eb93e2001-09-28 01:34:43 +00001060
1061Use these variables to override the choices made by `configure' or to help
1062it to find libraries and programs with nonstandard names/locations.
1063
a.rottmann84e63352003-03-24 09:42:16 +00001064_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001065fi
1066
1067if test "$ac_init_help" = "recursive"; then
1068 # If there are subdirs, report their specific --help.
1069 ac_popdir=`pwd`
a.rottmann84e63352003-03-24 09:42:16 +00001070 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1071 test -d $ac_dir || continue
1072 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001073
a.rottmann84e63352003-03-24 09:42:16 +00001074if test "$ac_dir" != .; then
1075 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1076 # A "../" for each directory in $ac_dir_suffix.
1077 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1078else
1079 ac_dir_suffix= ac_top_builddir=
1080fi
drh71eb93e2001-09-28 01:34:43 +00001081
a.rottmann84e63352003-03-24 09:42:16 +00001082case $srcdir in
1083 .) # No --srcdir option. We are building in place.
1084 ac_srcdir=.
1085 if test -z "$ac_top_builddir"; then
1086 ac_top_srcdir=.
1087 else
1088 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1089 fi ;;
1090 [\\/]* | ?:[\\/]* ) # Absolute path.
1091 ac_srcdir=$srcdir$ac_dir_suffix;
1092 ac_top_srcdir=$srcdir ;;
1093 *) # Relative path.
1094 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1095 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1096esac
a.rottmann964dbb12004-02-26 19:47:42 +00001097
1098# Do not use `cd foo && pwd` to compute absolute paths, because
1099# the directories may not exist.
1100case `pwd` in
1101.) ac_abs_builddir="$ac_dir";;
1102*)
1103 case "$ac_dir" in
1104 .) ac_abs_builddir=`pwd`;;
1105 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1106 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1107 esac;;
1108esac
1109case $ac_abs_builddir in
1110.) ac_abs_top_builddir=${ac_top_builddir}.;;
1111*)
1112 case ${ac_top_builddir}. in
1113 .) ac_abs_top_builddir=$ac_abs_builddir;;
1114 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1115 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1116 esac;;
1117esac
1118case $ac_abs_builddir in
1119.) ac_abs_srcdir=$ac_srcdir;;
1120*)
1121 case $ac_srcdir in
1122 .) ac_abs_srcdir=$ac_abs_builddir;;
1123 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1124 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1125 esac;;
1126esac
1127case $ac_abs_builddir in
1128.) ac_abs_top_srcdir=$ac_top_srcdir;;
1129*)
1130 case $ac_top_srcdir in
1131 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1132 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1133 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1134 esac;;
1135esac
a.rottmann84e63352003-03-24 09:42:16 +00001136
1137 cd $ac_dir
drh71eb93e2001-09-28 01:34:43 +00001138 # Check for guested configure; otherwise get Cygnus style configure.
a.rottmann84e63352003-03-24 09:42:16 +00001139 if test -f $ac_srcdir/configure.gnu; then
drh71eb93e2001-09-28 01:34:43 +00001140 echo
a.rottmann84e63352003-03-24 09:42:16 +00001141 $SHELL $ac_srcdir/configure.gnu --help=recursive
1142 elif test -f $ac_srcdir/configure; then
drh71eb93e2001-09-28 01:34:43 +00001143 echo
a.rottmann84e63352003-03-24 09:42:16 +00001144 $SHELL $ac_srcdir/configure --help=recursive
1145 elif test -f $ac_srcdir/configure.ac ||
a.rottmann964dbb12004-02-26 19:47:42 +00001146 test -f $ac_srcdir/configure.in; then
drh71eb93e2001-09-28 01:34:43 +00001147 echo
1148 $ac_configure --help
1149 else
a.rottmann84e63352003-03-24 09:42:16 +00001150 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
drh71eb93e2001-09-28 01:34:43 +00001151 fi
dougcurrie0f290bf2004-06-21 18:57:29 +00001152 cd $ac_popdir
drh71eb93e2001-09-28 01:34:43 +00001153 done
1154fi
1155
1156test -n "$ac_init_help" && exit 0
1157if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001158 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001159
a.rottmann964dbb12004-02-26 19:47:42 +00001160Copyright (C) 2003 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001161This configure script is free software; the Free Software Foundation
1162gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001163_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001164 exit 0
1165fi
1166exec 5>config.log
a.rottmann84e63352003-03-24 09:42:16 +00001167cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001168This file contains any messages produced by compilers while
1169running configure, to aid debugging if configure makes a mistake.
1170
1171It was created by $as_me, which was
a.rottmann964dbb12004-02-26 19:47:42 +00001172generated by GNU Autoconf 2.59. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00001173
1174 $ $0 $@
1175
a.rottmann84e63352003-03-24 09:42:16 +00001176_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001177{
1178cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001179## --------- ##
1180## Platform. ##
1181## --------- ##
drh71eb93e2001-09-28 01:34:43 +00001182
1183hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1184uname -m = `(uname -m) 2>/dev/null || echo unknown`
1185uname -r = `(uname -r) 2>/dev/null || echo unknown`
1186uname -s = `(uname -s) 2>/dev/null || echo unknown`
1187uname -v = `(uname -v) 2>/dev/null || echo unknown`
1188
1189/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1190/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1191
1192/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1193/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1194/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1195hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1196/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1197/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1198/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1199
drh71eb93e2001-09-28 01:34:43 +00001200_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001201
1202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1203for as_dir in $PATH
1204do
1205 IFS=$as_save_IFS
1206 test -z "$as_dir" && as_dir=.
1207 echo "PATH: $as_dir"
1208done
1209
drh71eb93e2001-09-28 01:34:43 +00001210} >&5
1211
a.rottmann84e63352003-03-24 09:42:16 +00001212cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001213
a.rottmann84e63352003-03-24 09:42:16 +00001214
1215## ----------- ##
1216## Core tests. ##
1217## ----------- ##
1218
1219_ACEOF
1220
drh71eb93e2001-09-28 01:34:43 +00001221
1222# Keep a trace of the command line.
1223# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00001224# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00001225# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00001226# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00001227ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00001228ac_configure_args0=
1229ac_configure_args1=
drh71eb93e2001-09-28 01:34:43 +00001230ac_sep=
a.rottmann84e63352003-03-24 09:42:16 +00001231ac_must_keep_next=false
1232for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00001233do
a.rottmann84e63352003-03-24 09:42:16 +00001234 for ac_arg
1235 do
1236 case $ac_arg in
1237 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1238 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1239 | -silent | --silent | --silen | --sile | --sil)
1240 continue ;;
1241 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1242 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1243 esac
1244 case $ac_pass in
1245 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1246 2)
1247 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1248 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00001249 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00001250 else
a.rottmann964dbb12004-02-26 19:47:42 +00001251 case $ac_arg in
1252 *=* | --config-cache | -C | -disable-* | --disable-* \
1253 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1254 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1255 | -with-* | --with-* | -without-* | --without-* | --x)
1256 case "$ac_configure_args0 " in
1257 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1258 esac
1259 ;;
1260 -* ) ac_must_keep_next=true ;;
1261 esac
a.rottmann84e63352003-03-24 09:42:16 +00001262 fi
1263 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1264 # Get rid of the leading space.
1265 ac_sep=" "
1266 ;;
1267 esac
1268 done
drh71eb93e2001-09-28 01:34:43 +00001269done
a.rottmann84e63352003-03-24 09:42:16 +00001270$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1271$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
drh71eb93e2001-09-28 01:34:43 +00001272
1273# When interrupted or exit'd, cleanup temporary files, and complete
1274# config.log. We remove comments because anyway the quotes in there
1275# would cause problems or look ugly.
a.rottmann84e63352003-03-24 09:42:16 +00001276# WARNING: Be sure not to use single quotes in there, as some shells,
1277# such as our DU 5.0 friend, will then `close' the trap.
drh71eb93e2001-09-28 01:34:43 +00001278trap 'exit_status=$?
1279 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00001280 {
1281 echo
1282
1283 cat <<\_ASBOX
1284## ---------------- ##
1285## Cache variables. ##
1286## ---------------- ##
1287_ASBOX
1288 echo
1289 # The following way of writing the cache mishandles newlines in values,
drh71eb93e2001-09-28 01:34:43 +00001290{
1291 (set) 2>&1 |
1292 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1293 *ac_space=\ *)
1294 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +00001295 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1296 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
drh71eb93e2001-09-28 01:34:43 +00001297 ;;
1298 *)
1299 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +00001300 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
drh71eb93e2001-09-28 01:34:43 +00001301 ;;
1302 esac;
a.rottmann84e63352003-03-24 09:42:16 +00001303}
1304 echo
1305
1306 cat <<\_ASBOX
1307## ----------------- ##
1308## Output variables. ##
1309## ----------------- ##
1310_ASBOX
1311 echo
1312 for ac_var in $ac_subst_vars
1313 do
1314 eval ac_val=$`echo $ac_var`
1315 echo "$ac_var='"'"'$ac_val'"'"'"
1316 done | sort
1317 echo
1318
1319 if test -n "$ac_subst_files"; then
1320 cat <<\_ASBOX
1321## ------------- ##
1322## Output files. ##
1323## ------------- ##
1324_ASBOX
1325 echo
1326 for ac_var in $ac_subst_files
1327 do
1328 eval ac_val=$`echo $ac_var`
a.rottmann964dbb12004-02-26 19:47:42 +00001329 echo "$ac_var='"'"'$ac_val'"'"'"
a.rottmann84e63352003-03-24 09:42:16 +00001330 done | sort
1331 echo
1332 fi
1333
1334 if test -s confdefs.h; then
1335 cat <<\_ASBOX
1336## ----------- ##
1337## confdefs.h. ##
1338## ----------- ##
1339_ASBOX
1340 echo
1341 sed "/^$/d" confdefs.h | sort
1342 echo
1343 fi
1344 test "$ac_signal" != 0 &&
1345 echo "$as_me: caught signal $ac_signal"
1346 echo "$as_me: exit $exit_status"
1347 } >&5
a.rottmann964dbb12004-02-26 19:47:42 +00001348 rm -f core *.core &&
a.rottmann84e63352003-03-24 09:42:16 +00001349 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00001350 exit $exit_status
1351 ' 0
1352for ac_signal in 1 2 13 15; do
1353 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1354done
1355ac_signal=0
1356
1357# confdefs.h avoids OS command line length limits that DEFS can exceed.
1358rm -rf conftest* confdefs.h
1359# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1360echo >confdefs.h
1361
a.rottmann84e63352003-03-24 09:42:16 +00001362# Predefined preprocessor variables.
1363
1364cat >>confdefs.h <<_ACEOF
1365#define PACKAGE_NAME "$PACKAGE_NAME"
1366_ACEOF
1367
1368
1369cat >>confdefs.h <<_ACEOF
1370#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1371_ACEOF
1372
1373
1374cat >>confdefs.h <<_ACEOF
1375#define PACKAGE_VERSION "$PACKAGE_VERSION"
1376_ACEOF
1377
1378
1379cat >>confdefs.h <<_ACEOF
1380#define PACKAGE_STRING "$PACKAGE_STRING"
1381_ACEOF
1382
1383
1384cat >>confdefs.h <<_ACEOF
1385#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1386_ACEOF
1387
1388
drh71eb93e2001-09-28 01:34:43 +00001389# Let the site file select an alternate cache file if it wants to.
drh75897232000-05-29 14:26:00 +00001390# Prefer explicitly selected file to automatically selected ones.
1391if test -z "$CONFIG_SITE"; then
1392 if test "x$prefix" != xNONE; then
1393 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1394 else
1395 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1396 fi
1397fi
1398for ac_site_file in $CONFIG_SITE; do
1399 if test -r "$ac_site_file"; then
a.rottmann84e63352003-03-24 09:42:16 +00001400 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001401echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00001402 sed 's/^/| /' "$ac_site_file" >&5
drh75897232000-05-29 14:26:00 +00001403 . "$ac_site_file"
1404 fi
1405done
1406
1407if test -r "$cache_file"; then
drh71eb93e2001-09-28 01:34:43 +00001408 # Some versions of bash will fail to source /dev/null (special
1409 # files actually), so we avoid doing that.
1410 if test -f "$cache_file"; then
a.rottmann84e63352003-03-24 09:42:16 +00001411 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001412echo "$as_me: loading cache $cache_file" >&6;}
1413 case $cache_file in
1414 [\\/]* | ?:[\\/]* ) . $cache_file;;
1415 *) . ./$cache_file;;
1416 esac
1417 fi
drh75897232000-05-29 14:26:00 +00001418else
a.rottmann84e63352003-03-24 09:42:16 +00001419 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001420echo "$as_me: creating cache $cache_file" >&6;}
1421 >$cache_file
1422fi
1423
1424# Check that the precious variables saved in the cache have kept the same
1425# value.
1426ac_cache_corrupted=false
1427for ac_var in `(set) 2>&1 |
a.rottmann964dbb12004-02-26 19:47:42 +00001428 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
drh71eb93e2001-09-28 01:34:43 +00001429 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1430 eval ac_new_set=\$ac_env_${ac_var}_set
1431 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1432 eval ac_new_val="\$ac_env_${ac_var}_value"
1433 case $ac_old_set,$ac_new_set in
1434 set,)
a.rottmann84e63352003-03-24 09:42:16 +00001435 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
drh71eb93e2001-09-28 01:34:43 +00001436echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1437 ac_cache_corrupted=: ;;
1438 ,set)
a.rottmann84e63352003-03-24 09:42:16 +00001439 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
drh71eb93e2001-09-28 01:34:43 +00001440echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1441 ac_cache_corrupted=: ;;
1442 ,);;
1443 *)
1444 if test "x$ac_old_val" != "x$ac_new_val"; then
a.rottmann964dbb12004-02-26 19:47:42 +00001445 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
drh71eb93e2001-09-28 01:34:43 +00001446echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001447 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
drh71eb93e2001-09-28 01:34:43 +00001448echo "$as_me: former value: $ac_old_val" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001449 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
drh71eb93e2001-09-28 01:34:43 +00001450echo "$as_me: current value: $ac_new_val" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001451 ac_cache_corrupted=:
drh71eb93e2001-09-28 01:34:43 +00001452 fi;;
1453 esac
a.rottmann84e63352003-03-24 09:42:16 +00001454 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00001455 if test "$ac_new_set" = set; then
1456 case $ac_new_val in
1457 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
a.rottmann84e63352003-03-24 09:42:16 +00001458 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1459 *) ac_arg=$ac_var=$ac_new_val ;;
1460 esac
1461 case " $ac_configure_args " in
1462 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1463 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00001464 esac
1465 fi
1466done
1467if $ac_cache_corrupted; then
a.rottmann84e63352003-03-24 09:42:16 +00001468 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
drh71eb93e2001-09-28 01:34:43 +00001469echo "$as_me: error: changes in the environment can compromise the build" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00001470 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
drh71eb93e2001-09-28 01:34:43 +00001471echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1472 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001473fi
1474
1475ac_ext=c
drh75897232000-05-29 14:26:00 +00001476ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00001477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1479ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00001480
a.rottmann84e63352003-03-24 09:42:16 +00001481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
drh75897232000-05-29 14:26:00 +00001499
1500# The following RCS revision string applies to configure.in
drh8e2e2a12006-02-01 01:55:17 +00001501# $Revision: 1.37 $
drh75897232000-05-29 14:26:00 +00001502
1503#########
drh71eb93e2001-09-28 01:34:43 +00001504# Programs needed
drh75897232000-05-29 14:26:00 +00001505#
drh71eb93e2001-09-28 01:34:43 +00001506# Check whether --enable-shared or --disable-shared was given.
1507if test "${enable_shared+set}" = set; then
1508 enableval="$enable_shared"
1509 p=${PACKAGE-default}
a.rottmann9bc8b932004-02-29 15:18:31 +00001510 case $enableval in
1511 yes) enable_shared=yes ;;
1512 no) enable_shared=no ;;
1513 *)
1514 enable_shared=no
1515 # Look at the argument we got. We use all the common list separators.
1516 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1517 for pkg in $enableval; do
1518 IFS="$lt_save_ifs"
1519 if test "X$pkg" = "X$p"; then
1520 enable_shared=yes
1521 fi
1522 done
1523 IFS="$lt_save_ifs"
1524 ;;
1525 esac
drh71eb93e2001-09-28 01:34:43 +00001526else
1527 enable_shared=yes
1528fi;
a.rottmann9bc8b932004-02-29 15:18:31 +00001529
drh71eb93e2001-09-28 01:34:43 +00001530# Check whether --enable-static or --disable-static was given.
1531if test "${enable_static+set}" = set; then
1532 enableval="$enable_static"
1533 p=${PACKAGE-default}
a.rottmann9bc8b932004-02-29 15:18:31 +00001534 case $enableval in
1535 yes) enable_static=yes ;;
1536 no) enable_static=no ;;
1537 *)
1538 enable_static=no
1539 # Look at the argument we got. We use all the common list separators.
1540 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1541 for pkg in $enableval; do
1542 IFS="$lt_save_ifs"
1543 if test "X$pkg" = "X$p"; then
1544 enable_static=yes
1545 fi
1546 done
1547 IFS="$lt_save_ifs"
1548 ;;
1549 esac
drh71eb93e2001-09-28 01:34:43 +00001550else
1551 enable_static=yes
1552fi;
a.rottmann9bc8b932004-02-29 15:18:31 +00001553
drh71eb93e2001-09-28 01:34:43 +00001554# Check whether --enable-fast-install or --disable-fast-install was given.
1555if test "${enable_fast_install+set}" = set; then
1556 enableval="$enable_fast_install"
1557 p=${PACKAGE-default}
a.rottmann9bc8b932004-02-29 15:18:31 +00001558 case $enableval in
1559 yes) enable_fast_install=yes ;;
1560 no) enable_fast_install=no ;;
1561 *)
1562 enable_fast_install=no
1563 # Look at the argument we got. We use all the common list separators.
1564 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1565 for pkg in $enableval; do
1566 IFS="$lt_save_ifs"
1567 if test "X$pkg" = "X$p"; then
1568 enable_fast_install=yes
1569 fi
1570 done
1571 IFS="$lt_save_ifs"
1572 ;;
1573 esac
drh71eb93e2001-09-28 01:34:43 +00001574else
1575 enable_fast_install=yes
1576fi;
a.rottmann9bc8b932004-02-29 15:18:31 +00001577
drh71eb93e2001-09-28 01:34:43 +00001578ac_aux_dir=
1579for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1580 if test -f $ac_dir/install-sh; then
1581 ac_aux_dir=$ac_dir
1582 ac_install_sh="$ac_aux_dir/install-sh -c"
1583 break
1584 elif test -f $ac_dir/install.sh; then
1585 ac_aux_dir=$ac_dir
1586 ac_install_sh="$ac_aux_dir/install.sh -c"
1587 break
1588 elif test -f $ac_dir/shtool; then
1589 ac_aux_dir=$ac_dir
1590 ac_install_sh="$ac_aux_dir/shtool install -c"
1591 break
1592 fi
1593done
1594if test -z "$ac_aux_dir"; then
a.rottmann84e63352003-03-24 09:42:16 +00001595 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
drh71eb93e2001-09-28 01:34:43 +00001596echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1597 { (exit 1); exit 1; }; }
1598fi
1599ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1600ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1601ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1602
1603# Make sure we can run config.sub.
1604$ac_config_sub sun4 >/dev/null 2>&1 ||
a.rottmann84e63352003-03-24 09:42:16 +00001605 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
drh71eb93e2001-09-28 01:34:43 +00001606echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1607 { (exit 1); exit 1; }; }
1608
a.rottmann84e63352003-03-24 09:42:16 +00001609echo "$as_me:$LINENO: checking build system type" >&5
drh71eb93e2001-09-28 01:34:43 +00001610echo $ECHO_N "checking build system type... $ECHO_C" >&6
1611if test "${ac_cv_build+set}" = set; then
1612 echo $ECHO_N "(cached) $ECHO_C" >&6
1613else
1614 ac_cv_build_alias=$build_alias
1615test -z "$ac_cv_build_alias" &&
1616 ac_cv_build_alias=`$ac_config_guess`
1617test -z "$ac_cv_build_alias" &&
a.rottmann84e63352003-03-24 09:42:16 +00001618 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
drh71eb93e2001-09-28 01:34:43 +00001619echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1620 { (exit 1); exit 1; }; }
1621ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
a.rottmann84e63352003-03-24 09:42:16 +00001622 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1623echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001624 { (exit 1); exit 1; }; }
1625
1626fi
a.rottmann84e63352003-03-24 09:42:16 +00001627echo "$as_me:$LINENO: result: $ac_cv_build" >&5
drh71eb93e2001-09-28 01:34:43 +00001628echo "${ECHO_T}$ac_cv_build" >&6
1629build=$ac_cv_build
1630build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1631build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1632build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1633
a.rottmann84e63352003-03-24 09:42:16 +00001634
1635echo "$as_me:$LINENO: checking host system type" >&5
drh71eb93e2001-09-28 01:34:43 +00001636echo $ECHO_N "checking host system type... $ECHO_C" >&6
1637if test "${ac_cv_host+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1639else
1640 ac_cv_host_alias=$host_alias
1641test -z "$ac_cv_host_alias" &&
1642 ac_cv_host_alias=$ac_cv_build_alias
1643ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
a.rottmann84e63352003-03-24 09:42:16 +00001644 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
drh71eb93e2001-09-28 01:34:43 +00001645echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1646 { (exit 1); exit 1; }; }
1647
1648fi
a.rottmann84e63352003-03-24 09:42:16 +00001649echo "$as_me:$LINENO: result: $ac_cv_host" >&5
drh71eb93e2001-09-28 01:34:43 +00001650echo "${ECHO_T}$ac_cv_host" >&6
1651host=$ac_cv_host
1652host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1653host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1654host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1655
a.rottmann84e63352003-03-24 09:42:16 +00001656
drh71eb93e2001-09-28 01:34:43 +00001657ac_ext=c
1658ac_cpp='$CPP $CPPFLAGS'
1659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1661ac_compiler_gnu=$ac_cv_c_compiler_gnu
1662if test -n "$ac_tool_prefix"; then
1663 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1664set dummy ${ac_tool_prefix}gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001665echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1667if test "${ac_cv_prog_CC+set}" = set; then
1668 echo $ECHO_N "(cached) $ECHO_C" >&6
1669else
1670 if test -n "$CC"; then
1671 ac_cv_prog_CC="$CC" # Let the user override the test.
1672else
a.rottmann84e63352003-03-24 09:42:16 +00001673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674for as_dir in $PATH
1675do
1676 IFS=$as_save_IFS
1677 test -z "$as_dir" && as_dir=.
1678 for ac_exec_ext in '' $ac_executable_extensions; do
1679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1680 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1682 break 2
1683 fi
1684done
drh71eb93e2001-09-28 01:34:43 +00001685done
1686
1687fi
1688fi
1689CC=$ac_cv_prog_CC
1690if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001691 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001692echo "${ECHO_T}$CC" >&6
1693else
a.rottmann84e63352003-03-24 09:42:16 +00001694 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001695echo "${ECHO_T}no" >&6
1696fi
1697
1698fi
1699if test -z "$ac_cv_prog_CC"; then
1700 ac_ct_CC=$CC
1701 # Extract the first word of "gcc", so it can be a program name with args.
1702set dummy gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001703echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1705if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1706 echo $ECHO_N "(cached) $ECHO_C" >&6
1707else
1708 if test -n "$ac_ct_CC"; then
1709 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1710else
a.rottmann84e63352003-03-24 09:42:16 +00001711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712for as_dir in $PATH
1713do
1714 IFS=$as_save_IFS
1715 test -z "$as_dir" && as_dir=.
1716 for ac_exec_ext in '' $ac_executable_extensions; do
1717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1718 ac_cv_prog_ac_ct_CC="gcc"
1719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1720 break 2
1721 fi
1722done
drh71eb93e2001-09-28 01:34:43 +00001723done
1724
1725fi
1726fi
1727ac_ct_CC=$ac_cv_prog_ac_ct_CC
1728if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001729 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001730echo "${ECHO_T}$ac_ct_CC" >&6
1731else
a.rottmann84e63352003-03-24 09:42:16 +00001732 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001733echo "${ECHO_T}no" >&6
1734fi
1735
1736 CC=$ac_ct_CC
1737else
1738 CC="$ac_cv_prog_CC"
1739fi
1740
1741if test -z "$CC"; then
1742 if test -n "$ac_tool_prefix"; then
1743 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1744set dummy ${ac_tool_prefix}cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001745echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1747if test "${ac_cv_prog_CC+set}" = set; then
1748 echo $ECHO_N "(cached) $ECHO_C" >&6
1749else
1750 if test -n "$CC"; then
1751 ac_cv_prog_CC="$CC" # Let the user override the test.
1752else
a.rottmann84e63352003-03-24 09:42:16 +00001753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1754for as_dir in $PATH
1755do
1756 IFS=$as_save_IFS
1757 test -z "$as_dir" && as_dir=.
1758 for ac_exec_ext in '' $ac_executable_extensions; do
1759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1760 ac_cv_prog_CC="${ac_tool_prefix}cc"
1761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1762 break 2
1763 fi
1764done
drh71eb93e2001-09-28 01:34:43 +00001765done
1766
1767fi
1768fi
1769CC=$ac_cv_prog_CC
1770if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001771 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001772echo "${ECHO_T}$CC" >&6
1773else
a.rottmann84e63352003-03-24 09:42:16 +00001774 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001775echo "${ECHO_T}no" >&6
1776fi
1777
1778fi
1779if test -z "$ac_cv_prog_CC"; then
1780 ac_ct_CC=$CC
1781 # Extract the first word of "cc", so it can be a program name with args.
1782set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001783echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1785if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1786 echo $ECHO_N "(cached) $ECHO_C" >&6
1787else
1788 if test -n "$ac_ct_CC"; then
1789 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1790else
a.rottmann84e63352003-03-24 09:42:16 +00001791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1792for as_dir in $PATH
1793do
1794 IFS=$as_save_IFS
1795 test -z "$as_dir" && as_dir=.
1796 for ac_exec_ext in '' $ac_executable_extensions; do
1797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1798 ac_cv_prog_ac_ct_CC="cc"
1799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1800 break 2
1801 fi
1802done
drh71eb93e2001-09-28 01:34:43 +00001803done
1804
1805fi
1806fi
1807ac_ct_CC=$ac_cv_prog_ac_ct_CC
1808if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001809 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001810echo "${ECHO_T}$ac_ct_CC" >&6
1811else
a.rottmann84e63352003-03-24 09:42:16 +00001812 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001813echo "${ECHO_T}no" >&6
1814fi
1815
1816 CC=$ac_ct_CC
1817else
1818 CC="$ac_cv_prog_CC"
1819fi
1820
1821fi
1822if test -z "$CC"; then
1823 # Extract the first word of "cc", so it can be a program name with args.
1824set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001825echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1827if test "${ac_cv_prog_CC+set}" = set; then
1828 echo $ECHO_N "(cached) $ECHO_C" >&6
1829else
1830 if test -n "$CC"; then
1831 ac_cv_prog_CC="$CC" # Let the user override the test.
1832else
1833 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00001834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835for as_dir in $PATH
1836do
1837 IFS=$as_save_IFS
1838 test -z "$as_dir" && as_dir=.
1839 for ac_exec_ext in '' $ac_executable_extensions; do
1840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1841 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1842 ac_prog_rejected=yes
1843 continue
1844 fi
1845 ac_cv_prog_CC="cc"
1846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847 break 2
1848 fi
1849done
drh71eb93e2001-09-28 01:34:43 +00001850done
1851
1852if test $ac_prog_rejected = yes; then
1853 # We found a bogon in the path, so make sure we never use it.
1854 set dummy $ac_cv_prog_CC
1855 shift
1856 if test $# != 0; then
1857 # We chose a different compiler from the bogus one.
1858 # However, it has the same basename, so the bogon will be chosen
1859 # first if we set CC to just the basename; use the full file name.
1860 shift
a.rottmann84e63352003-03-24 09:42:16 +00001861 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00001862 fi
1863fi
1864fi
1865fi
1866CC=$ac_cv_prog_CC
1867if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001868 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001869echo "${ECHO_T}$CC" >&6
1870else
a.rottmann84e63352003-03-24 09:42:16 +00001871 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001872echo "${ECHO_T}no" >&6
1873fi
1874
1875fi
1876if test -z "$CC"; then
1877 if test -n "$ac_tool_prefix"; then
1878 for ac_prog in cl
1879 do
1880 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1881set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001882echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1884if test "${ac_cv_prog_CC+set}" = set; then
1885 echo $ECHO_N "(cached) $ECHO_C" >&6
1886else
1887 if test -n "$CC"; then
1888 ac_cv_prog_CC="$CC" # Let the user override the test.
1889else
a.rottmann84e63352003-03-24 09:42:16 +00001890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891for as_dir in $PATH
1892do
1893 IFS=$as_save_IFS
1894 test -z "$as_dir" && as_dir=.
1895 for ac_exec_ext in '' $ac_executable_extensions; do
1896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899 break 2
1900 fi
1901done
drh71eb93e2001-09-28 01:34:43 +00001902done
1903
1904fi
1905fi
1906CC=$ac_cv_prog_CC
1907if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001908 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001909echo "${ECHO_T}$CC" >&6
1910else
a.rottmann84e63352003-03-24 09:42:16 +00001911 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001912echo "${ECHO_T}no" >&6
1913fi
1914
1915 test -n "$CC" && break
1916 done
1917fi
1918if test -z "$CC"; then
1919 ac_ct_CC=$CC
1920 for ac_prog in cl
1921do
1922 # Extract the first word of "$ac_prog", so it can be a program name with args.
1923set dummy $ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001924echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1926if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1928else
1929 if test -n "$ac_ct_CC"; then
1930 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1931else
a.rottmann84e63352003-03-24 09:42:16 +00001932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1933for as_dir in $PATH
1934do
1935 IFS=$as_save_IFS
1936 test -z "$as_dir" && as_dir=.
1937 for ac_exec_ext in '' $ac_executable_extensions; do
1938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1939 ac_cv_prog_ac_ct_CC="$ac_prog"
1940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941 break 2
1942 fi
1943done
drh71eb93e2001-09-28 01:34:43 +00001944done
1945
1946fi
1947fi
1948ac_ct_CC=$ac_cv_prog_ac_ct_CC
1949if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001950 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001951echo "${ECHO_T}$ac_ct_CC" >&6
1952else
a.rottmann84e63352003-03-24 09:42:16 +00001953 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001954echo "${ECHO_T}no" >&6
1955fi
1956
1957 test -n "$ac_ct_CC" && break
1958done
1959
1960 CC=$ac_ct_CC
1961fi
1962
1963fi
1964
a.rottmann84e63352003-03-24 09:42:16 +00001965
1966test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1967See \`config.log' for more details." >&5
1968echo "$as_me: error: no acceptable C compiler found in \$PATH
1969See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00001970 { (exit 1); exit 1; }; }
1971
1972# Provide some information about the compiler.
a.rottmann84e63352003-03-24 09:42:16 +00001973echo "$as_me:$LINENO:" \
drh71eb93e2001-09-28 01:34:43 +00001974 "checking for C compiler version" >&5
1975ac_compiler=`set X $ac_compile; echo $2`
a.rottmann84e63352003-03-24 09:42:16 +00001976{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00001977 (eval $ac_compiler --version </dev/null >&5) 2>&5
1978 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001980 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +00001981{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00001982 (eval $ac_compiler -v </dev/null >&5) 2>&5
1983 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001985 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +00001986{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00001987 (eval $ac_compiler -V </dev/null >&5) 2>&5
1988 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001990 (exit $ac_status); }
1991
1992cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00001993/* confdefs.h. */
1994_ACEOF
1995cat confdefs.h >>conftest.$ac_ext
1996cat >>conftest.$ac_ext <<_ACEOF
1997/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00001998
1999int
2000main ()
2001{
2002
2003 ;
2004 return 0;
2005}
2006_ACEOF
2007ac_clean_files_save=$ac_clean_files
a.rottmann84e63352003-03-24 09:42:16 +00002008ac_clean_files="$ac_clean_files a.out a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002009# Try to create an executable without -o first, disregard a.out.
2010# It will help us diagnose broken compilers, and finding out an intuition
2011# of exeext.
a.rottmann964dbb12004-02-26 19:47:42 +00002012echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2013echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002014ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
a.rottmann84e63352003-03-24 09:42:16 +00002015if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002016 (eval $ac_link_default) 2>&5
2017 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002019 (exit $ac_status); }; then
2020 # Find the output, starting from the most likely. This scheme is
2021# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2022# resort.
a.rottmann84e63352003-03-24 09:42:16 +00002023
2024# Be careful to initialize this variable, since it used to be cached.
2025# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2026ac_cv_exeext=
2027# b.out is created by i960 compilers.
2028for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2029do
2030 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002031 case $ac_file in
a.rottmann84e63352003-03-24 09:42:16 +00002032 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002033 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002034 conftest.$ac_ext )
a.rottmann964dbb12004-02-26 19:47:42 +00002035 # This is the source file.
2036 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002037 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002038 # We found the default executable, but exeext='' is most
2039 # certainly right.
2040 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002041 *.* )
a.rottmann964dbb12004-02-26 19:47:42 +00002042 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2043 # FIXME: I believe we export ac_cv_exeext for Libtool,
2044 # but it would be cool to find out if it's true. Does anybody
2045 # maintain Libtool? --akim.
2046 export ac_cv_exeext
2047 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002048 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002049 break;;
drh71eb93e2001-09-28 01:34:43 +00002050 esac
2051done
2052else
2053 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002054sed 's/^/| /' conftest.$ac_ext >&5
2055
2056{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2057See \`config.log' for more details." >&5
2058echo "$as_me: error: C compiler cannot create executables
2059See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002060 { (exit 77); exit 77; }; }
2061fi
2062
2063ac_exeext=$ac_cv_exeext
a.rottmann84e63352003-03-24 09:42:16 +00002064echo "$as_me:$LINENO: result: $ac_file" >&5
drh71eb93e2001-09-28 01:34:43 +00002065echo "${ECHO_T}$ac_file" >&6
2066
2067# Check the compiler produces executables we can run. If not, either
2068# the compiler is broken, or we cross compile.
a.rottmann84e63352003-03-24 09:42:16 +00002069echo "$as_me:$LINENO: checking whether the C compiler works" >&5
drh71eb93e2001-09-28 01:34:43 +00002070echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2071# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2072# If not cross compiling, check that we can run a simple program.
2073if test "$cross_compiling" != yes; then
2074 if { ac_try='./$ac_file'
a.rottmann84e63352003-03-24 09:42:16 +00002075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002076 (eval $ac_try) 2>&5
2077 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002079 (exit $ac_status); }; }; then
2080 cross_compiling=no
2081 else
2082 if test "$cross_compiling" = maybe; then
2083 cross_compiling=yes
2084 else
a.rottmann84e63352003-03-24 09:42:16 +00002085 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2086If you meant to cross compile, use \`--host'.
2087See \`config.log' for more details." >&5
drh71eb93e2001-09-28 01:34:43 +00002088echo "$as_me: error: cannot run C compiled programs.
a.rottmann84e63352003-03-24 09:42:16 +00002089If you meant to cross compile, use \`--host'.
2090See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002091 { (exit 1); exit 1; }; }
2092 fi
2093 fi
2094fi
a.rottmann84e63352003-03-24 09:42:16 +00002095echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +00002096echo "${ECHO_T}yes" >&6
2097
a.rottmann84e63352003-03-24 09:42:16 +00002098rm -f a.out a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002099ac_clean_files=$ac_clean_files_save
2100# Check the compiler produces executables we can run. If not, either
2101# the compiler is broken, or we cross compile.
a.rottmann84e63352003-03-24 09:42:16 +00002102echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
drh71eb93e2001-09-28 01:34:43 +00002103echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00002104echo "$as_me:$LINENO: result: $cross_compiling" >&5
drh71eb93e2001-09-28 01:34:43 +00002105echo "${ECHO_T}$cross_compiling" >&6
2106
a.rottmann84e63352003-03-24 09:42:16 +00002107echo "$as_me:$LINENO: checking for suffix of executables" >&5
2108echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002110 (eval $ac_link) 2>&5
2111 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002113 (exit $ac_status); }; then
2114 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2115# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2116# work properly (i.e., refer to `conftest.exe'), while it won't with
2117# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00002118for ac_file in conftest.exe conftest conftest.*; do
2119 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002120 case $ac_file in
a.rottmann84e63352003-03-24 09:42:16 +00002121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00002122 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00002123 export ac_cv_exeext
2124 break;;
drh71eb93e2001-09-28 01:34:43 +00002125 * ) break;;
2126 esac
2127done
2128else
a.rottmann84e63352003-03-24 09:42:16 +00002129 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2130See \`config.log' for more details." >&5
2131echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2132See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002133 { (exit 1); exit 1; }; }
2134fi
2135
2136rm -f conftest$ac_cv_exeext
a.rottmann84e63352003-03-24 09:42:16 +00002137echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
drh71eb93e2001-09-28 01:34:43 +00002138echo "${ECHO_T}$ac_cv_exeext" >&6
2139
2140rm -f conftest.$ac_ext
2141EXEEXT=$ac_cv_exeext
2142ac_exeext=$EXEEXT
a.rottmann84e63352003-03-24 09:42:16 +00002143echo "$as_me:$LINENO: checking for suffix of object files" >&5
2144echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002145if test "${ac_cv_objext+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2147else
2148 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002149/* confdefs.h. */
2150_ACEOF
2151cat confdefs.h >>conftest.$ac_ext
2152cat >>conftest.$ac_ext <<_ACEOF
2153/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002154
2155int
2156main ()
2157{
2158
2159 ;
2160 return 0;
2161}
2162_ACEOF
2163rm -f conftest.o conftest.obj
a.rottmann84e63352003-03-24 09:42:16 +00002164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002165 (eval $ac_compile) 2>&5
2166 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002168 (exit $ac_status); }; then
2169 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2170 case $ac_file in
a.rottmann84e63352003-03-24 09:42:16 +00002171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
drh71eb93e2001-09-28 01:34:43 +00002172 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2173 break;;
2174 esac
2175done
2176else
2177 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002178sed 's/^/| /' conftest.$ac_ext >&5
2179
2180{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2181See \`config.log' for more details." >&5
2182echo "$as_me: error: cannot compute suffix of object files: cannot compile
2183See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002184 { (exit 1); exit 1; }; }
2185fi
2186
2187rm -f conftest.$ac_cv_objext conftest.$ac_ext
2188fi
a.rottmann84e63352003-03-24 09:42:16 +00002189echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
drh71eb93e2001-09-28 01:34:43 +00002190echo "${ECHO_T}$ac_cv_objext" >&6
2191OBJEXT=$ac_cv_objext
2192ac_objext=$OBJEXT
a.rottmann84e63352003-03-24 09:42:16 +00002193echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
drh71eb93e2001-09-28 01:34:43 +00002194echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2195if test "${ac_cv_c_compiler_gnu+set}" = set; then
2196 echo $ECHO_N "(cached) $ECHO_C" >&6
2197else
2198 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002199/* confdefs.h. */
2200_ACEOF
2201cat confdefs.h >>conftest.$ac_ext
2202cat >>conftest.$ac_ext <<_ACEOF
2203/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002204
2205int
2206main ()
2207{
2208#ifndef __GNUC__
2209 choke me
2210#endif
2211
2212 ;
2213 return 0;
2214}
2215_ACEOF
2216rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002218 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002219 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002220 grep -v '^ *+' conftest.er1 >conftest.err
2221 rm -f conftest.er1
2222 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002224 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00002225 { ac_try='test -z "$ac_c_werror_flag"
2226 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00002227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228 (eval $ac_try) 2>&5
2229 ac_status=$?
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }; } &&
2232 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002234 (eval $ac_try) 2>&5
2235 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002237 (exit $ac_status); }; }; then
2238 ac_compiler_gnu=yes
2239else
2240 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002241sed 's/^/| /' conftest.$ac_ext >&5
2242
drh71eb93e2001-09-28 01:34:43 +00002243ac_compiler_gnu=no
2244fi
a.rottmann964dbb12004-02-26 19:47:42 +00002245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002246ac_cv_c_compiler_gnu=$ac_compiler_gnu
2247
2248fi
a.rottmann84e63352003-03-24 09:42:16 +00002249echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
drh71eb93e2001-09-28 01:34:43 +00002250echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2251GCC=`test $ac_compiler_gnu = yes && echo yes`
2252ac_test_CFLAGS=${CFLAGS+set}
2253ac_save_CFLAGS=$CFLAGS
2254CFLAGS="-g"
a.rottmann84e63352003-03-24 09:42:16 +00002255echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
drh71eb93e2001-09-28 01:34:43 +00002256echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2257if test "${ac_cv_prog_cc_g+set}" = set; then
2258 echo $ECHO_N "(cached) $ECHO_C" >&6
2259else
2260 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002261/* confdefs.h. */
2262_ACEOF
2263cat confdefs.h >>conftest.$ac_ext
2264cat >>conftest.$ac_ext <<_ACEOF
2265/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002266
2267int
2268main ()
2269{
2270
2271 ;
2272 return 0;
2273}
2274_ACEOF
2275rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002277 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002278 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002279 grep -v '^ *+' conftest.er1 >conftest.err
2280 rm -f conftest.er1
2281 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002283 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00002284 { ac_try='test -z "$ac_c_werror_flag"
2285 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00002286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287 (eval $ac_try) 2>&5
2288 ac_status=$?
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }; } &&
2291 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002293 (eval $ac_try) 2>&5
2294 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002296 (exit $ac_status); }; }; then
2297 ac_cv_prog_cc_g=yes
2298else
2299 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002300sed 's/^/| /' conftest.$ac_ext >&5
2301
drh71eb93e2001-09-28 01:34:43 +00002302ac_cv_prog_cc_g=no
2303fi
a.rottmann964dbb12004-02-26 19:47:42 +00002304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002305fi
a.rottmann84e63352003-03-24 09:42:16 +00002306echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
drh71eb93e2001-09-28 01:34:43 +00002307echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2308if test "$ac_test_CFLAGS" = set; then
2309 CFLAGS=$ac_save_CFLAGS
2310elif test $ac_cv_prog_cc_g = yes; then
2311 if test "$GCC" = yes; then
2312 CFLAGS="-g -O2"
2313 else
2314 CFLAGS="-g"
2315 fi
2316else
2317 if test "$GCC" = yes; then
2318 CFLAGS="-O2"
2319 else
2320 CFLAGS=
2321 fi
2322fi
a.rottmann84e63352003-03-24 09:42:16 +00002323echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2324echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2325if test "${ac_cv_prog_cc_stdc+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2327else
2328 ac_cv_prog_cc_stdc=no
2329ac_save_CC=$CC
2330cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002331/* confdefs.h. */
2332_ACEOF
2333cat confdefs.h >>conftest.$ac_ext
2334cat >>conftest.$ac_ext <<_ACEOF
2335/* end confdefs.h. */
2336#include <stdarg.h>
2337#include <stdio.h>
2338#include <sys/types.h>
2339#include <sys/stat.h>
2340/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2341struct buf { int x; };
2342FILE * (*rcsopen) (struct buf *, struct stat *, int);
2343static char *e (p, i)
2344 char **p;
2345 int i;
2346{
2347 return p[i];
2348}
2349static char *f (char * (*g) (char **, int), char **p, ...)
2350{
2351 char *s;
2352 va_list v;
2353 va_start (v,p);
2354 s = g (p, va_arg (v,int));
2355 va_end (v);
2356 return s;
2357}
a.rottmann964dbb12004-02-26 19:47:42 +00002358
2359/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2360 function prototypes and stuff, but not '\xHH' hex character constants.
2361 These don't provoke an error unfortunately, instead are silently treated
2362 as 'x'. The following induces an error, until -std1 is added to get
2363 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2364 array size at least. It's necessary to write '\x00'==0 to get something
2365 that's true only with -std1. */
2366int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2367
a.rottmann84e63352003-03-24 09:42:16 +00002368int test (int i, double x);
2369struct s1 {int (*f) (int a);};
2370struct s2 {int (*f) (double a);};
2371int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2372int argc;
2373char **argv;
2374int
2375main ()
2376{
2377return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2378 ;
2379 return 0;
2380}
2381_ACEOF
2382# Don't try gcc -ansi; that turns off useful extensions and
2383# breaks some systems' header files.
2384# AIX -qlanglvl=ansi
2385# Ultrix and OSF/1 -std1
2386# HP-UX 10.20 and later -Ae
2387# HP-UX older versions -Aa -D_HPUX_SOURCE
2388# SVR4 -Xc -D__EXTENSIONS__
2389for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2390do
2391 CC="$ac_save_CC $ac_arg"
2392 rm -f conftest.$ac_objext
2393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002394 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00002395 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002396 grep -v '^ *+' conftest.er1 >conftest.err
2397 rm -f conftest.er1
2398 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00002401 { ac_try='test -z "$ac_c_werror_flag"
2402 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00002403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404 (eval $ac_try) 2>&5
2405 ac_status=$?
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }; } &&
2408 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 (eval $ac_try) 2>&5
2411 ac_status=$?
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; }; then
2414 ac_cv_prog_cc_stdc=$ac_arg
2415break
2416else
2417 echo "$as_me: failed program was:" >&5
2418sed 's/^/| /' conftest.$ac_ext >&5
2419
2420fi
a.rottmann964dbb12004-02-26 19:47:42 +00002421rm -f conftest.err conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002422done
2423rm -f conftest.$ac_ext conftest.$ac_objext
2424CC=$ac_save_CC
2425
2426fi
2427
2428case "x$ac_cv_prog_cc_stdc" in
2429 x|xno)
2430 echo "$as_me:$LINENO: result: none needed" >&5
2431echo "${ECHO_T}none needed" >&6 ;;
2432 *)
2433 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2434echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2435 CC="$CC $ac_cv_prog_cc_stdc" ;;
2436esac
2437
drh71eb93e2001-09-28 01:34:43 +00002438# Some people use a C++ compiler to compile C. Since we use `exit',
2439# in C++ we need to declare it. In case someone uses the same compiler
2440# for both compiling C and C++ we need to have the C++ compiler decide
2441# the declaration of exit, since it's the most demanding environment.
2442cat >conftest.$ac_ext <<_ACEOF
2443#ifndef __cplusplus
2444 choke me
2445#endif
2446_ACEOF
2447rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002449 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002450 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002451 grep -v '^ *+' conftest.er1 >conftest.err
2452 rm -f conftest.er1
2453 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002455 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00002456 { ac_try='test -z "$ac_c_werror_flag"
2457 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00002458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459 (eval $ac_try) 2>&5
2460 ac_status=$?
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }; } &&
2463 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002465 (eval $ac_try) 2>&5
2466 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002468 (exit $ac_status); }; }; then
2469 for ac_declaration in \
a.rottmann964dbb12004-02-26 19:47:42 +00002470 '' \
drh71eb93e2001-09-28 01:34:43 +00002471 'extern "C" void std::exit (int) throw (); using std::exit;' \
2472 'extern "C" void std::exit (int); using std::exit;' \
2473 'extern "C" void exit (int) throw ();' \
2474 'extern "C" void exit (int);' \
2475 'void exit (int);'
2476do
2477 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002478/* confdefs.h. */
2479_ACEOF
2480cat confdefs.h >>conftest.$ac_ext
2481cat >>conftest.$ac_ext <<_ACEOF
2482/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002483$ac_declaration
a.rottmann964dbb12004-02-26 19:47:42 +00002484#include <stdlib.h>
drh71eb93e2001-09-28 01:34:43 +00002485int
2486main ()
2487{
2488exit (42);
2489 ;
2490 return 0;
2491}
2492_ACEOF
2493rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002495 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002496 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002497 grep -v '^ *+' conftest.er1 >conftest.err
2498 rm -f conftest.er1
2499 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002501 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00002502 { ac_try='test -z "$ac_c_werror_flag"
2503 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00002504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505 (eval $ac_try) 2>&5
2506 ac_status=$?
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; } &&
2509 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002511 (eval $ac_try) 2>&5
2512 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002514 (exit $ac_status); }; }; then
2515 :
2516else
2517 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002518sed 's/^/| /' conftest.$ac_ext >&5
2519
drh71eb93e2001-09-28 01:34:43 +00002520continue
2521fi
a.rottmann964dbb12004-02-26 19:47:42 +00002522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002523 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002524/* confdefs.h. */
2525_ACEOF
2526cat confdefs.h >>conftest.$ac_ext
2527cat >>conftest.$ac_ext <<_ACEOF
2528/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002529$ac_declaration
2530int
2531main ()
2532{
2533exit (42);
2534 ;
2535 return 0;
2536}
2537_ACEOF
2538rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002540 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002541 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002542 grep -v '^ *+' conftest.er1 >conftest.err
2543 rm -f conftest.er1
2544 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002546 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00002547 { ac_try='test -z "$ac_c_werror_flag"
2548 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00002549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2550 (eval $ac_try) 2>&5
2551 ac_status=$?
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }; } &&
2554 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002556 (eval $ac_try) 2>&5
2557 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002559 (exit $ac_status); }; }; then
2560 break
2561else
2562 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002563sed 's/^/| /' conftest.$ac_ext >&5
2564
drh71eb93e2001-09-28 01:34:43 +00002565fi
a.rottmann964dbb12004-02-26 19:47:42 +00002566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002567done
2568rm -f conftest*
2569if test -n "$ac_declaration"; then
2570 echo '#ifdef __cplusplus' >>confdefs.h
2571 echo $ac_declaration >>confdefs.h
2572 echo '#endif' >>confdefs.h
2573fi
2574
2575else
2576 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002577sed 's/^/| /' conftest.$ac_ext >&5
2578
drh71eb93e2001-09-28 01:34:43 +00002579fi
a.rottmann964dbb12004-02-26 19:47:42 +00002580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002581ac_ext=c
2582ac_cpp='$CPP $CPPFLAGS'
2583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2585ac_compiler_gnu=$ac_cv_c_compiler_gnu
2586
a.rottmann9bc8b932004-02-29 15:18:31 +00002587echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2588echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2589if test "${lt_cv_path_SED+set}" = set; then
2590 echo $ECHO_N "(cached) $ECHO_C" >&6
2591else
2592 # Loop through the user's path and test for sed and gsed.
2593# Then use that list of sed's as ones to test for truncation.
2594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595for as_dir in $PATH
2596do
2597 IFS=$as_save_IFS
2598 test -z "$as_dir" && as_dir=.
2599 for lt_ac_prog in sed gsed; do
2600 for ac_exec_ext in '' $ac_executable_extensions; do
2601 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2602 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2603 fi
2604 done
2605 done
2606done
2607lt_ac_max=0
2608lt_ac_count=0
2609# Add /usr/xpg4/bin/sed as it is typically found on Solaris
2610# along with /bin/sed that truncates output.
2611for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2612 test ! -f $lt_ac_sed && break
2613 cat /dev/null > conftest.in
2614 lt_ac_count=0
2615 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2616 # Check for GNU sed and select it if it is found.
2617 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2618 lt_cv_path_SED=$lt_ac_sed
2619 break
2620 fi
2621 while true; do
2622 cat conftest.in conftest.in >conftest.tmp
2623 mv conftest.tmp conftest.in
2624 cp conftest.in conftest.nl
2625 echo >>conftest.nl
2626 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2627 cmp -s conftest.out conftest.nl || break
2628 # 10000 chars as input seems more than enough
2629 test $lt_ac_count -gt 10 && break
2630 lt_ac_count=`expr $lt_ac_count + 1`
2631 if test $lt_ac_count -gt $lt_ac_max; then
2632 lt_ac_max=$lt_ac_count
2633 lt_cv_path_SED=$lt_ac_sed
2634 fi
2635 done
2636done
2637SED=$lt_cv_path_SED
2638
a.rottmann84e63352003-03-24 09:42:16 +00002639fi
2640
a.rottmann9bc8b932004-02-29 15:18:31 +00002641echo "$as_me:$LINENO: result: $SED" >&5
2642echo "${ECHO_T}$SED" >&6
2643
2644echo "$as_me:$LINENO: checking for egrep" >&5
2645echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2646if test "${ac_cv_prog_egrep+set}" = set; then
2647 echo $ECHO_N "(cached) $ECHO_C" >&6
2648else
2649 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2650 then ac_cv_prog_egrep='grep -E'
2651 else ac_cv_prog_egrep='egrep'
2652 fi
2653fi
2654echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2655echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2656 EGREP=$ac_cv_prog_egrep
2657
2658
a.rottmann84e63352003-03-24 09:42:16 +00002659
drh71eb93e2001-09-28 01:34:43 +00002660# Check whether --with-gnu-ld or --without-gnu-ld was given.
2661if test "${with_gnu_ld+set}" = set; then
2662 withval="$with_gnu_ld"
2663 test "$withval" = no || with_gnu_ld=yes
2664else
2665 with_gnu_ld=no
2666fi;
2667ac_prog=ld
2668if test "$GCC" = yes; then
2669 # Check if gcc -print-prog-name=ld gives a path.
a.rottmann9bc8b932004-02-29 15:18:31 +00002670 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2671echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002672 case $host in
2673 *-*-mingw*)
2674 # gcc leaves a trailing carriage return which upsets mingw
2675 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2676 *)
2677 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2678 esac
2679 case $ac_prog in
2680 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00002681 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00002682 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00002683 # Canonicalize the pathname of ld
2684 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
drh71eb93e2001-09-28 01:34:43 +00002685 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
a.rottmann9bc8b932004-02-29 15:18:31 +00002686 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00002687 done
2688 test -z "$LD" && LD="$ac_prog"
2689 ;;
2690 "")
2691 # If it fails, then pretend we aren't using GCC.
2692 ac_prog=ld
2693 ;;
2694 *)
2695 # If it is relative, then search for the first ld in PATH.
2696 with_gnu_ld=unknown
2697 ;;
2698 esac
2699elif test "$with_gnu_ld" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00002700 echo "$as_me:$LINENO: checking for GNU ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002701echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2702else
a.rottmann84e63352003-03-24 09:42:16 +00002703 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002704echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2705fi
2706if test "${lt_cv_path_LD+set}" = set; then
2707 echo $ECHO_N "(cached) $ECHO_C" >&6
2708else
2709 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00002710 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00002711 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00002712 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002713 test -z "$ac_dir" && ac_dir=.
2714 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2715 lt_cv_path_LD="$ac_dir/$ac_prog"
2716 # Check to see if the program is GNU ld. I'd rather use --version,
2717 # but apparently some GNU ld's only accept -v.
2718 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00002719 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2720 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00002721 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00002722 ;;
2723 *)
drh71eb93e2001-09-28 01:34:43 +00002724 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00002725 ;;
2726 esac
drh71eb93e2001-09-28 01:34:43 +00002727 fi
2728 done
a.rottmann9bc8b932004-02-29 15:18:31 +00002729 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002730else
2731 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2732fi
2733fi
2734
2735LD="$lt_cv_path_LD"
2736if test -n "$LD"; then
a.rottmann84e63352003-03-24 09:42:16 +00002737 echo "$as_me:$LINENO: result: $LD" >&5
drh71eb93e2001-09-28 01:34:43 +00002738echo "${ECHO_T}$LD" >&6
2739else
a.rottmann84e63352003-03-24 09:42:16 +00002740 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00002741echo "${ECHO_T}no" >&6
2742fi
a.rottmann84e63352003-03-24 09:42:16 +00002743test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
drh71eb93e2001-09-28 01:34:43 +00002744echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2745 { (exit 1); exit 1; }; }
a.rottmann84e63352003-03-24 09:42:16 +00002746echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002747echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2748if test "${lt_cv_prog_gnu_ld+set}" = set; then
2749 echo $ECHO_N "(cached) $ECHO_C" >&6
2750else
2751 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00002752case `$LD -v 2>&1 </dev/null` in
2753*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00002754 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00002755 ;;
2756*)
drh71eb93e2001-09-28 01:34:43 +00002757 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00002758 ;;
2759esac
drh71eb93e2001-09-28 01:34:43 +00002760fi
a.rottmann84e63352003-03-24 09:42:16 +00002761echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002762echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2763with_gnu_ld=$lt_cv_prog_gnu_ld
2764
a.rottmann84e63352003-03-24 09:42:16 +00002765
2766echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
drh71eb93e2001-09-28 01:34:43 +00002767echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2768if test "${lt_cv_ld_reload_flag+set}" = set; then
2769 echo $ECHO_N "(cached) $ECHO_C" >&6
2770else
2771 lt_cv_ld_reload_flag='-r'
2772fi
a.rottmann84e63352003-03-24 09:42:16 +00002773echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
drh71eb93e2001-09-28 01:34:43 +00002774echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2775reload_flag=$lt_cv_ld_reload_flag
a.rottmann9bc8b932004-02-29 15:18:31 +00002776case $reload_flag in
2777"" | " "*) ;;
2778*) reload_flag=" $reload_flag" ;;
2779esac
2780reload_cmds='$LD$reload_flag -o $output$reload_objs'
drh71eb93e2001-09-28 01:34:43 +00002781
a.rottmann84e63352003-03-24 09:42:16 +00002782echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
drh71eb93e2001-09-28 01:34:43 +00002783echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2784if test "${lt_cv_path_NM+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2786else
2787 if test -n "$NM"; then
2788 # Let the user override the test.
2789 lt_cv_path_NM="$NM"
2790else
a.rottmann9bc8b932004-02-29 15:18:31 +00002791 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00002792 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
a.rottmann9bc8b932004-02-29 15:18:31 +00002793 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002794 test -z "$ac_dir" && ac_dir=.
a.rottmann9bc8b932004-02-29 15:18:31 +00002795 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2796 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
drh71eb93e2001-09-28 01:34:43 +00002797 # Check to see if the nm accepts a BSD-compat flag.
2798 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2799 # nm: unknown option "B" ignored
2800 # Tru64's nm complains that /dev/null is an invalid object file
a.rottmann9bc8b932004-02-29 15:18:31 +00002801 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2802 */dev/null* | *'Invalid file or object type'*)
drh71eb93e2001-09-28 01:34:43 +00002803 lt_cv_path_NM="$tmp_nm -B"
2804 break
a.rottmann9bc8b932004-02-29 15:18:31 +00002805 ;;
2806 *)
2807 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2808 */dev/null*)
2809 lt_cv_path_NM="$tmp_nm -p"
2810 break
2811 ;;
2812 *)
2813 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2814 continue # so that we can try to find one that supports BSD flags
2815 ;;
2816 esac
2817 esac
drh71eb93e2001-09-28 01:34:43 +00002818 fi
2819 done
a.rottmann9bc8b932004-02-29 15:18:31 +00002820 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002821 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2822fi
2823fi
a.rottmann9bc8b932004-02-29 15:18:31 +00002824echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
2825echo "${ECHO_T}$lt_cv_path_NM" >&6
a.rottmann84e63352003-03-24 09:42:16 +00002826NM="$lt_cv_path_NM"
a.rottmann84e63352003-03-24 09:42:16 +00002827
2828echo "$as_me:$LINENO: checking whether ln -s works" >&5
drh71eb93e2001-09-28 01:34:43 +00002829echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2830LN_S=$as_ln_s
2831if test "$LN_S" = "ln -s"; then
a.rottmann84e63352003-03-24 09:42:16 +00002832 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +00002833echo "${ECHO_T}yes" >&6
2834else
a.rottmann84e63352003-03-24 09:42:16 +00002835 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
drh71eb93e2001-09-28 01:34:43 +00002836echo "${ECHO_T}no, using $LN_S" >&6
2837fi
2838
a.rottmann84e63352003-03-24 09:42:16 +00002839echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
2840echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002841if test "${lt_cv_deplibs_check_method+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2843else
2844 lt_cv_file_magic_cmd='$MAGIC_CMD'
2845lt_cv_file_magic_test_file=
2846lt_cv_deplibs_check_method='unknown'
2847# Need to set the preceding variable on all platforms that support
2848# interlibrary dependencies.
2849# 'none' -- dependencies not supported.
2850# `unknown' -- same as none, but documents that we really don't know.
2851# 'pass_all' -- all dependencies passed with no checks.
2852# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00002853# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00002854# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00002855# If you have `file' or equivalent on your system and you're not sure
2856# whether `pass_all' will *always* work, you probably want this one.
2857
2858case $host_os in
2859aix4* | aix5*)
2860 lt_cv_deplibs_check_method=pass_all
2861 ;;
2862
2863beos*)
2864 lt_cv_deplibs_check_method=pass_all
2865 ;;
2866
2867bsdi4*)
2868 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2869 lt_cv_file_magic_cmd='/usr/bin/file -L'
2870 lt_cv_file_magic_test_file=/shlib/libc.so
2871 ;;
2872
a.rottmann9bc8b932004-02-29 15:18:31 +00002873cygwin*)
2874 # win32_libid is a shell function defined in ltmain.sh
2875 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2876 lt_cv_file_magic_cmd='win32_libid'
2877 ;;
2878
2879mingw* | pw32*)
2880 # Base MSYS/MinGW do not provide the 'file' command needed by
2881 # win32_libid shell function, so use a weaker test based on 'objdump'.
drh71eb93e2001-09-28 01:34:43 +00002882 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2883 lt_cv_file_magic_cmd='$OBJDUMP -f'
2884 ;;
2885
2886darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00002887 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00002888 ;;
2889
a.rottmann9bc8b932004-02-29 15:18:31 +00002890freebsd* | kfreebsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00002891 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2892 case $host_cpu in
2893 i*86 )
2894 # Not sure whether the presence of OpenBSD here was a mistake.
2895 # Let's accept both of them until this is cleared up.
2896 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2897 lt_cv_file_magic_cmd=/usr/bin/file
2898 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2899 ;;
2900 esac
2901 else
2902 lt_cv_deplibs_check_method=pass_all
2903 fi
2904 ;;
2905
2906gnu*)
2907 lt_cv_deplibs_check_method=pass_all
2908 ;;
2909
a.rottmann9bc8b932004-02-29 15:18:31 +00002910hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00002911 lt_cv_file_magic_cmd=/usr/bin/file
a.rottmann9bc8b932004-02-29 15:18:31 +00002912 case "$host_cpu" in
2913 ia64*)
2914 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2915 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2916 ;;
2917 hppa*64*)
2918 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]'
2919 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2920 ;;
2921 *)
2922 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2923 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2924 ;;
2925 esac
drh71eb93e2001-09-28 01:34:43 +00002926 ;;
2927
a.rottmann84e63352003-03-24 09:42:16 +00002928irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00002929 case $LD in
2930 *-32|*"-32 ") libmagic=32-bit;;
2931 *-n32|*"-n32 ") libmagic=N32;;
2932 *-64|*"-64 ") libmagic=64-bit;;
2933 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00002934 esac
drh71eb93e2001-09-28 01:34:43 +00002935 lt_cv_deplibs_check_method=pass_all
2936 ;;
2937
2938# This must be Linux ELF.
a.rottmann9bc8b932004-02-29 15:18:31 +00002939linux*)
2940 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00002941 ;;
2942
a.rottmann9bc8b932004-02-29 15:18:31 +00002943netbsd* | knetbsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00002944 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00002945 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00002946 else
a.rottmann9bc8b932004-02-29 15:18:31 +00002947 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00002948 fi
2949 ;;
2950
2951newos6*)
2952 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2953 lt_cv_file_magic_cmd=/usr/bin/file
2954 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2955 ;;
2956
a.rottmann9bc8b932004-02-29 15:18:31 +00002957nto-qnx*)
2958 lt_cv_deplibs_check_method=unknown
2959 ;;
2960
a.rottmann84e63352003-03-24 09:42:16 +00002961openbsd*)
2962 lt_cv_file_magic_cmd=/usr/bin/file
2963 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2964 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2965 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2966 else
2967 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2968 fi
drh71eb93e2001-09-28 01:34:43 +00002969 ;;
2970
2971osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00002972 lt_cv_deplibs_check_method=pass_all
2973 ;;
2974
2975sco3.2v5*)
2976 lt_cv_deplibs_check_method=pass_all
2977 ;;
2978
2979solaris*)
2980 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00002981 ;;
2982
drh71eb93e2001-09-28 01:34:43 +00002983sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2984 case $host_vendor in
2985 motorola)
2986 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]'
2987 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2988 ;;
2989 ncr)
2990 lt_cv_deplibs_check_method=pass_all
2991 ;;
2992 sequent)
2993 lt_cv_file_magic_cmd='/bin/file'
2994 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2995 ;;
2996 sni)
2997 lt_cv_file_magic_cmd='/bin/file'
2998 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2999 lt_cv_file_magic_test_file=/lib/libc.so
3000 ;;
a.rottmann84e63352003-03-24 09:42:16 +00003001 siemens)
3002 lt_cv_deplibs_check_method=pass_all
3003 ;;
drh71eb93e2001-09-28 01:34:43 +00003004 esac
3005 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00003006
3007sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3008 lt_cv_deplibs_check_method=pass_all
3009 ;;
drh71eb93e2001-09-28 01:34:43 +00003010esac
3011
3012fi
a.rottmann84e63352003-03-24 09:42:16 +00003013echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
drh71eb93e2001-09-28 01:34:43 +00003014echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3015file_magic_cmd=$lt_cv_file_magic_cmd
3016deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00003017test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00003018
drh71eb93e2001-09-28 01:34:43 +00003019
drh71eb93e2001-09-28 01:34:43 +00003020
drh71eb93e2001-09-28 01:34:43 +00003021
a.rottmann9bc8b932004-02-29 15:18:31 +00003022# If no C compiler was specified, use CC.
3023LTCC=${LTCC-"$CC"}
3024
3025# Allow CC to be a program name with arguments.
3026compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00003027
drh71eb93e2001-09-28 01:34:43 +00003028
a.rottmann9bc8b932004-02-29 15:18:31 +00003029# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3030if test "${enable_libtool_lock+set}" = set; then
3031 enableval="$enable_libtool_lock"
drh71eb93e2001-09-28 01:34:43 +00003032
a.rottmann9bc8b932004-02-29 15:18:31 +00003033fi;
3034test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00003035
a.rottmann9bc8b932004-02-29 15:18:31 +00003036# Some flags need to be propagated to the compiler or linker for good
3037# libtool support.
3038case $host in
3039ia64-*-hpux*)
3040 # Find out which ABI we are using.
3041 echo 'int i;' > conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00003043 (eval $ac_compile) 2>&5
3044 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00003046 (exit $ac_status); }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003047 case `/usr/bin/file conftest.$ac_objext` in
3048 *ELF-32*)
3049 HPUX_IA64_MODE="32"
3050 ;;
3051 *ELF-64*)
3052 HPUX_IA64_MODE="64"
3053 ;;
3054 esac
3055 fi
3056 rm -rf conftest*
3057 ;;
3058*-*-irix6*)
3059 # Find out which ABI we are using.
drh8e2e2a12006-02-01 01:55:17 +00003060 echo '#line 3060 "configure"' > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00003061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3062 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00003063 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00003065 (exit $ac_status); }; then
3066 if test "$lt_cv_prog_gnu_ld" = yes; then
3067 case `/usr/bin/file conftest.$ac_objext` in
3068 *32-bit*)
3069 LD="${LD-ld} -melf32bsmip"
3070 ;;
3071 *N32*)
3072 LD="${LD-ld} -melf32bmipn32"
3073 ;;
3074 *64-bit*)
3075 LD="${LD-ld} -melf64bmip"
3076 ;;
3077 esac
3078 else
3079 case `/usr/bin/file conftest.$ac_objext` in
3080 *32-bit*)
3081 LD="${LD-ld} -32"
3082 ;;
3083 *N32*)
3084 LD="${LD-ld} -n32"
3085 ;;
3086 *64-bit*)
3087 LD="${LD-ld} -64"
3088 ;;
3089 esac
3090 fi
3091 fi
3092 rm -rf conftest*
3093 ;;
drh71eb93e2001-09-28 01:34:43 +00003094
a.rottmann9bc8b932004-02-29 15:18:31 +00003095x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3096 # Find out which ABI we are using.
3097 echo 'int i;' > conftest.$ac_ext
3098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3099 (eval $ac_compile) 2>&5
3100 ac_status=$?
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; then
3103 case "`/usr/bin/file conftest.o`" in
3104 *32-bit*)
3105 case $host in
3106 x86_64-*linux*)
3107 LD="${LD-ld} -m elf_i386"
3108 ;;
3109 ppc64-*linux*|powerpc64-*linux*)
3110 LD="${LD-ld} -m elf32ppclinux"
3111 ;;
3112 s390x-*linux*)
3113 LD="${LD-ld} -m elf_s390"
3114 ;;
3115 sparc64-*linux*)
3116 LD="${LD-ld} -m elf32_sparc"
3117 ;;
3118 esac
3119 ;;
3120 *64-bit*)
3121 case $host in
3122 x86_64-*linux*)
3123 LD="${LD-ld} -m elf_x86_64"
3124 ;;
3125 ppc*-*linux*|powerpc*-*linux*)
3126 LD="${LD-ld} -m elf64ppc"
3127 ;;
3128 s390*-*linux*)
3129 LD="${LD-ld} -m elf64_s390"
3130 ;;
3131 sparc*-*linux*)
3132 LD="${LD-ld} -m elf64_sparc"
3133 ;;
3134 esac
3135 ;;
3136 esac
3137 fi
3138 rm -rf conftest*
3139 ;;
drh71eb93e2001-09-28 01:34:43 +00003140
a.rottmann9bc8b932004-02-29 15:18:31 +00003141*-*-sco3.2v5*)
3142 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3143 SAVE_CFLAGS="$CFLAGS"
3144 CFLAGS="$CFLAGS -belf"
3145 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3146echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3147if test "${lt_cv_cc_needs_belf+set}" = set; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3149else
3150 ac_ext=c
3151ac_cpp='$CPP $CPPFLAGS'
3152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3154ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00003155
a.rottmann9bc8b932004-02-29 15:18:31 +00003156 cat >conftest.$ac_ext <<_ACEOF
3157/* confdefs.h. */
3158_ACEOF
3159cat confdefs.h >>conftest.$ac_ext
3160cat >>conftest.$ac_ext <<_ACEOF
3161/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003162
a.rottmann9bc8b932004-02-29 15:18:31 +00003163int
3164main ()
drh71eb93e2001-09-28 01:34:43 +00003165{
drh71eb93e2001-09-28 01:34:43 +00003166
a.rottmann9bc8b932004-02-29 15:18:31 +00003167 ;
3168 return 0;
drh71eb93e2001-09-28 01:34:43 +00003169}
a.rottmann9bc8b932004-02-29 15:18:31 +00003170_ACEOF
3171rm -f conftest.$ac_objext conftest$ac_exeext
3172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3173 (eval $ac_link) 2>conftest.er1
3174 ac_status=$?
3175 grep -v '^ *+' conftest.er1 >conftest.err
3176 rm -f conftest.er1
3177 cat conftest.err >&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00003180 { ac_try='test -z "$ac_c_werror_flag"
3181 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00003182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3183 (eval $ac_try) 2>&5
drh71eb93e2001-09-28 01:34:43 +00003184 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00003186 (exit $ac_status); }; } &&
3187 { ac_try='test -s conftest$ac_exeext'
3188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3189 (eval $ac_try) 2>&5
3190 ac_status=$?
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); }; }; then
3193 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00003194else
a.rottmann9bc8b932004-02-29 15:18:31 +00003195 echo "$as_me: failed program was:" >&5
3196sed 's/^/| /' conftest.$ac_ext >&5
3197
3198lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00003199fi
a.rottmann9bc8b932004-02-29 15:18:31 +00003200rm -f conftest.err conftest.$ac_objext \
3201 conftest$ac_exeext conftest.$ac_ext
3202 ac_ext=c
3203ac_cpp='$CPP $CPPFLAGS'
3204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3206ac_compiler_gnu=$ac_cv_c_compiler_gnu
3207
drh71eb93e2001-09-28 01:34:43 +00003208fi
a.rottmann9bc8b932004-02-29 15:18:31 +00003209echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3210echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3211 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3212 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3213 CFLAGS="$SAVE_CFLAGS"
3214 fi
3215 ;;
3216
3217esac
3218
3219need_locks="$enable_libtool_lock"
3220
drh71eb93e2001-09-28 01:34:43 +00003221
a.rottmann84e63352003-03-24 09:42:16 +00003222ac_ext=c
3223ac_cpp='$CPP $CPPFLAGS'
3224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226ac_compiler_gnu=$ac_cv_c_compiler_gnu
3227echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3228echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3229# On Suns, sometimes $CPP names a directory.
3230if test -n "$CPP" && test -d "$CPP"; then
3231 CPP=
3232fi
3233if test -z "$CPP"; then
3234 if test "${ac_cv_prog_CPP+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00003235 echo $ECHO_N "(cached) $ECHO_C" >&6
3236else
a.rottmann84e63352003-03-24 09:42:16 +00003237 # Double quotes because CPP needs to be expanded
3238 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3239 do
3240 ac_preproc_ok=false
3241for ac_c_preproc_warn_flag in '' yes
3242do
3243 # Use a header file that comes with gcc, so configuring glibc
3244 # with a fresh cross-compiler works.
3245 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3246 # <limits.h> exists even on freestanding compilers.
3247 # On the NeXT, cc -E runs the code through the compiler's parser,
3248 # not just through cpp. "Syntax error" is here to catch this case.
3249 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003250/* confdefs.h. */
3251_ACEOF
3252cat confdefs.h >>conftest.$ac_ext
3253cat >>conftest.$ac_ext <<_ACEOF
3254/* end confdefs.h. */
3255#ifdef __STDC__
3256# include <limits.h>
3257#else
3258# include <assert.h>
3259#endif
a.rottmann964dbb12004-02-26 19:47:42 +00003260 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00003261_ACEOF
3262if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3264 ac_status=$?
3265 grep -v '^ *+' conftest.er1 >conftest.err
3266 rm -f conftest.er1
3267 cat conftest.err >&5
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); } >/dev/null; then
3270 if test -s conftest.err; then
3271 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003273 else
3274 ac_cpp_err=
drh71eb93e2001-09-28 01:34:43 +00003275 fi
a.rottmann84e63352003-03-24 09:42:16 +00003276else
3277 ac_cpp_err=yes
3278fi
3279if test -z "$ac_cpp_err"; then
3280 :
3281else
3282 echo "$as_me: failed program was:" >&5
3283sed 's/^/| /' conftest.$ac_ext >&5
3284
3285 # Broken: fails on valid input.
3286continue
3287fi
3288rm -f conftest.err conftest.$ac_ext
3289
3290 # OK, works on sane cases. Now check whether non-existent headers
3291 # can be detected and how.
3292 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003293/* confdefs.h. */
3294_ACEOF
3295cat confdefs.h >>conftest.$ac_ext
3296cat >>conftest.$ac_ext <<_ACEOF
3297/* end confdefs.h. */
3298#include <ac_nonexistent.h>
3299_ACEOF
3300if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3302 ac_status=$?
3303 grep -v '^ *+' conftest.er1 >conftest.err
3304 rm -f conftest.er1
3305 cat conftest.err >&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); } >/dev/null; then
3308 if test -s conftest.err; then
3309 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003311 else
3312 ac_cpp_err=
3313 fi
3314else
3315 ac_cpp_err=yes
3316fi
3317if test -z "$ac_cpp_err"; then
3318 # Broken: success on invalid input.
3319continue
3320else
3321 echo "$as_me: failed program was:" >&5
3322sed 's/^/| /' conftest.$ac_ext >&5
3323
3324 # Passes both tests.
3325ac_preproc_ok=:
3326break
3327fi
3328rm -f conftest.err conftest.$ac_ext
3329
3330done
3331# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3332rm -f conftest.err conftest.$ac_ext
3333if $ac_preproc_ok; then
3334 break
3335fi
3336
3337 done
3338 ac_cv_prog_CPP=$CPP
3339
3340fi
3341 CPP=$ac_cv_prog_CPP
3342else
3343 ac_cv_prog_CPP=$CPP
3344fi
3345echo "$as_me:$LINENO: result: $CPP" >&5
3346echo "${ECHO_T}$CPP" >&6
3347ac_preproc_ok=false
3348for ac_c_preproc_warn_flag in '' yes
3349do
3350 # Use a header file that comes with gcc, so configuring glibc
3351 # with a fresh cross-compiler works.
3352 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3353 # <limits.h> exists even on freestanding compilers.
3354 # On the NeXT, cc -E runs the code through the compiler's parser,
3355 # not just through cpp. "Syntax error" is here to catch this case.
3356 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003357/* confdefs.h. */
3358_ACEOF
3359cat confdefs.h >>conftest.$ac_ext
3360cat >>conftest.$ac_ext <<_ACEOF
3361/* end confdefs.h. */
3362#ifdef __STDC__
3363# include <limits.h>
3364#else
3365# include <assert.h>
3366#endif
a.rottmann964dbb12004-02-26 19:47:42 +00003367 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00003368_ACEOF
3369if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3371 ac_status=$?
3372 grep -v '^ *+' conftest.er1 >conftest.err
3373 rm -f conftest.er1
3374 cat conftest.err >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } >/dev/null; then
3377 if test -s conftest.err; then
3378 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003380 else
3381 ac_cpp_err=
3382 fi
3383else
3384 ac_cpp_err=yes
3385fi
3386if test -z "$ac_cpp_err"; then
3387 :
3388else
3389 echo "$as_me: failed program was:" >&5
3390sed 's/^/| /' conftest.$ac_ext >&5
3391
3392 # Broken: fails on valid input.
3393continue
3394fi
3395rm -f conftest.err conftest.$ac_ext
3396
3397 # OK, works on sane cases. Now check whether non-existent headers
3398 # can be detected and how.
3399 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003400/* confdefs.h. */
3401_ACEOF
3402cat confdefs.h >>conftest.$ac_ext
3403cat >>conftest.$ac_ext <<_ACEOF
3404/* end confdefs.h. */
3405#include <ac_nonexistent.h>
3406_ACEOF
3407if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3409 ac_status=$?
3410 grep -v '^ *+' conftest.er1 >conftest.err
3411 rm -f conftest.er1
3412 cat conftest.err >&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); } >/dev/null; then
3415 if test -s conftest.err; then
3416 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003418 else
3419 ac_cpp_err=
3420 fi
3421else
3422 ac_cpp_err=yes
3423fi
3424if test -z "$ac_cpp_err"; then
3425 # Broken: success on invalid input.
3426continue
3427else
3428 echo "$as_me: failed program was:" >&5
3429sed 's/^/| /' conftest.$ac_ext >&5
3430
3431 # Passes both tests.
3432ac_preproc_ok=:
3433break
3434fi
3435rm -f conftest.err conftest.$ac_ext
3436
3437done
3438# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3439rm -f conftest.err conftest.$ac_ext
3440if $ac_preproc_ok; then
3441 :
3442else
3443 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3444See \`config.log' for more details." >&5
3445echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3446See \`config.log' for more details." >&2;}
3447 { (exit 1); exit 1; }; }
3448fi
3449
3450ac_ext=c
3451ac_cpp='$CPP $CPPFLAGS'
3452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454ac_compiler_gnu=$ac_cv_c_compiler_gnu
3455
3456
a.rottmann84e63352003-03-24 09:42:16 +00003457echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3458echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3459if test "${ac_cv_header_stdc+set}" = set; then
3460 echo $ECHO_N "(cached) $ECHO_C" >&6
3461else
3462 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003463/* confdefs.h. */
3464_ACEOF
3465cat confdefs.h >>conftest.$ac_ext
3466cat >>conftest.$ac_ext <<_ACEOF
3467/* end confdefs.h. */
3468#include <stdlib.h>
3469#include <stdarg.h>
3470#include <string.h>
3471#include <float.h>
3472
3473int
3474main ()
3475{
3476
3477 ;
3478 return 0;
3479}
3480_ACEOF
3481rm -f conftest.$ac_objext
3482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00003483 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003484 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003485 grep -v '^ *+' conftest.er1 >conftest.err
3486 rm -f conftest.er1
3487 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00003488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00003490 { ac_try='test -z "$ac_c_werror_flag"
3491 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00003492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3493 (eval $ac_try) 2>&5
3494 ac_status=$?
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); }; } &&
3497 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00003498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3499 (eval $ac_try) 2>&5
3500 ac_status=$?
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); }; }; then
3503 ac_cv_header_stdc=yes
3504else
3505 echo "$as_me: failed program was:" >&5
3506sed 's/^/| /' conftest.$ac_ext >&5
3507
3508ac_cv_header_stdc=no
3509fi
a.rottmann964dbb12004-02-26 19:47:42 +00003510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003511
3512if test $ac_cv_header_stdc = yes; then
3513 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3514 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003515/* confdefs.h. */
3516_ACEOF
3517cat confdefs.h >>conftest.$ac_ext
3518cat >>conftest.$ac_ext <<_ACEOF
3519/* end confdefs.h. */
3520#include <string.h>
3521
3522_ACEOF
3523if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3524 $EGREP "memchr" >/dev/null 2>&1; then
3525 :
3526else
3527 ac_cv_header_stdc=no
3528fi
3529rm -f conftest*
3530
3531fi
3532
3533if test $ac_cv_header_stdc = yes; then
3534 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3535 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003536/* confdefs.h. */
3537_ACEOF
3538cat confdefs.h >>conftest.$ac_ext
3539cat >>conftest.$ac_ext <<_ACEOF
3540/* end confdefs.h. */
3541#include <stdlib.h>
3542
3543_ACEOF
3544if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3545 $EGREP "free" >/dev/null 2>&1; then
3546 :
3547else
3548 ac_cv_header_stdc=no
3549fi
3550rm -f conftest*
3551
3552fi
3553
3554if test $ac_cv_header_stdc = yes; then
3555 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3556 if test "$cross_compiling" = yes; then
3557 :
3558else
3559 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003560/* confdefs.h. */
3561_ACEOF
3562cat confdefs.h >>conftest.$ac_ext
3563cat >>conftest.$ac_ext <<_ACEOF
3564/* end confdefs.h. */
3565#include <ctype.h>
3566#if ((' ' & 0x0FF) == 0x020)
3567# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3568# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3569#else
3570# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00003571 (('a' <= (c) && (c) <= 'i') \
3572 || ('j' <= (c) && (c) <= 'r') \
3573 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00003574# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3575#endif
3576
3577#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3578int
3579main ()
3580{
3581 int i;
3582 for (i = 0; i < 256; i++)
3583 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00003584 || toupper (i) != TOUPPER (i))
a.rottmann84e63352003-03-24 09:42:16 +00003585 exit(2);
3586 exit (0);
3587}
3588_ACEOF
3589rm -f conftest$ac_exeext
3590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3591 (eval $ac_link) 2>&5
3592 ac_status=$?
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3596 (eval $ac_try) 2>&5
3597 ac_status=$?
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }; }; then
3600 :
3601else
3602 echo "$as_me: program exited with status $ac_status" >&5
3603echo "$as_me: failed program was:" >&5
3604sed 's/^/| /' conftest.$ac_ext >&5
3605
3606( exit $ac_status )
3607ac_cv_header_stdc=no
3608fi
a.rottmann964dbb12004-02-26 19:47:42 +00003609rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003610fi
3611fi
3612fi
3613echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3614echo "${ECHO_T}$ac_cv_header_stdc" >&6
3615if test $ac_cv_header_stdc = yes; then
3616
3617cat >>confdefs.h <<\_ACEOF
3618#define STDC_HEADERS 1
3619_ACEOF
3620
3621fi
3622
3623# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00003634 inttypes.h stdint.h unistd.h
a.rottmann84e63352003-03-24 09:42:16 +00003635do
3636as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3637echo "$as_me:$LINENO: checking for $ac_header" >&5
3638echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3639if eval "test \"\${$as_ac_Header+set}\" = set"; then
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3641else
3642 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003643/* confdefs.h. */
3644_ACEOF
3645cat confdefs.h >>conftest.$ac_ext
3646cat >>conftest.$ac_ext <<_ACEOF
3647/* end confdefs.h. */
3648$ac_includes_default
3649
3650#include <$ac_header>
3651_ACEOF
3652rm -f conftest.$ac_objext
3653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00003654 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003655 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003656 grep -v '^ *+' conftest.er1 >conftest.err
3657 rm -f conftest.er1
3658 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00003659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00003661 { ac_try='test -z "$ac_c_werror_flag"
3662 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00003663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664 (eval $ac_try) 2>&5
3665 ac_status=$?
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); }; } &&
3668 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00003669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670 (eval $ac_try) 2>&5
3671 ac_status=$?
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }; }; then
3674 eval "$as_ac_Header=yes"
3675else
3676 echo "$as_me: failed program was:" >&5
3677sed 's/^/| /' conftest.$ac_ext >&5
3678
3679eval "$as_ac_Header=no"
3680fi
a.rottmann964dbb12004-02-26 19:47:42 +00003681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003682fi
3683echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3684echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3685if test `eval echo '${'$as_ac_Header'}'` = yes; then
3686 cat >>confdefs.h <<_ACEOF
3687#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3688_ACEOF
3689
3690fi
3691
3692done
3693
3694
3695
3696for ac_header in dlfcn.h
3697do
3698as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3699if eval "test \"\${$as_ac_Header+set}\" = set"; then
3700 echo "$as_me:$LINENO: checking for $ac_header" >&5
3701echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3702if eval "test \"\${$as_ac_Header+set}\" = set"; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3704fi
3705echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3706echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3707else
3708 # Is the header compilable?
3709echo "$as_me:$LINENO: checking $ac_header usability" >&5
3710echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3711cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003712/* confdefs.h. */
3713_ACEOF
3714cat confdefs.h >>conftest.$ac_ext
3715cat >>conftest.$ac_ext <<_ACEOF
3716/* end confdefs.h. */
3717$ac_includes_default
3718#include <$ac_header>
3719_ACEOF
3720rm -f conftest.$ac_objext
3721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00003722 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003723 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003724 grep -v '^ *+' conftest.er1 >conftest.err
3725 rm -f conftest.er1
3726 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00003727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00003729 { ac_try='test -z "$ac_c_werror_flag"
3730 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00003731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732 (eval $ac_try) 2>&5
3733 ac_status=$?
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); }; } &&
3736 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00003737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738 (eval $ac_try) 2>&5
3739 ac_status=$?
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; }; then
3742 ac_header_compiler=yes
3743else
3744 echo "$as_me: failed program was:" >&5
3745sed 's/^/| /' conftest.$ac_ext >&5
3746
3747ac_header_compiler=no
3748fi
a.rottmann964dbb12004-02-26 19:47:42 +00003749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003750echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3751echo "${ECHO_T}$ac_header_compiler" >&6
3752
3753# Is the header present?
3754echo "$as_me:$LINENO: checking $ac_header presence" >&5
3755echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3756cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003757/* confdefs.h. */
3758_ACEOF
3759cat confdefs.h >>conftest.$ac_ext
3760cat >>conftest.$ac_ext <<_ACEOF
3761/* end confdefs.h. */
3762#include <$ac_header>
3763_ACEOF
3764if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3765 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3766 ac_status=$?
3767 grep -v '^ *+' conftest.er1 >conftest.err
3768 rm -f conftest.er1
3769 cat conftest.err >&5
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); } >/dev/null; then
3772 if test -s conftest.err; then
3773 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003774 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003775 else
3776 ac_cpp_err=
3777 fi
3778else
3779 ac_cpp_err=yes
3780fi
3781if test -z "$ac_cpp_err"; then
3782 ac_header_preproc=yes
3783else
3784 echo "$as_me: failed program was:" >&5
3785sed 's/^/| /' conftest.$ac_ext >&5
3786
3787 ac_header_preproc=no
3788fi
3789rm -f conftest.err conftest.$ac_ext
3790echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3791echo "${ECHO_T}$ac_header_preproc" >&6
3792
3793# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +00003794case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3795 yes:no: )
a.rottmann84e63352003-03-24 09:42:16 +00003796 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3797echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00003798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3799echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3800 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +00003801 ;;
a.rottmann964dbb12004-02-26 19:47:42 +00003802 no:yes:* )
a.rottmann84e63352003-03-24 09:42:16 +00003803 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3804echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00003805 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3806echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3807 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3808echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3809 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3810echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00003811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3812echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00003813 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3814echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00003815 (
3816 cat <<\_ASBOX
a.rottmann964dbb12004-02-26 19:47:42 +00003817## ------------------------------------------ ##
3818## Report this to the AC_PACKAGE_NAME lists. ##
3819## ------------------------------------------ ##
a.rottmann84e63352003-03-24 09:42:16 +00003820_ASBOX
3821 ) |
3822 sed "s/^/$as_me: WARNING: /" >&2
3823 ;;
drh71eb93e2001-09-28 01:34:43 +00003824esac
a.rottmann84e63352003-03-24 09:42:16 +00003825echo "$as_me:$LINENO: checking for $ac_header" >&5
3826echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3827if eval "test \"\${$as_ac_Header+set}\" = set"; then
drh71eb93e2001-09-28 01:34:43 +00003828 echo $ECHO_N "(cached) $ECHO_C" >&6
3829else
a.rottmann964dbb12004-02-26 19:47:42 +00003830 eval "$as_ac_Header=\$ac_header_preproc"
a.rottmann84e63352003-03-24 09:42:16 +00003831fi
3832echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3833echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3834
3835fi
3836if test `eval echo '${'$as_ac_Header'}'` = yes; then
3837 cat >>confdefs.h <<_ACEOF
3838#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3839_ACEOF
3840
3841fi
3842
drh71eb93e2001-09-28 01:34:43 +00003843done
3844
a.rottmann9bc8b932004-02-29 15:18:31 +00003845ac_ext=cc
3846ac_cpp='$CXXCPP $CPPFLAGS'
3847ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3848ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3849ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3850if test -n "$ac_tool_prefix"; then
3851 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3852 do
3853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3854set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3855echo "$as_me:$LINENO: checking for $ac_word" >&5
3856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3857if test "${ac_cv_prog_CXX+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00003858 echo $ECHO_N "(cached) $ECHO_C" >&6
3859else
a.rottmann9bc8b932004-02-29 15:18:31 +00003860 if test -n "$CXX"; then
3861 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3862else
3863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864for as_dir in $PATH
3865do
3866 IFS=$as_save_IFS
3867 test -z "$as_dir" && as_dir=.
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3870 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3872 break 2
3873 fi
3874done
3875done
drh71eb93e2001-09-28 01:34:43 +00003876
drh71eb93e2001-09-28 01:34:43 +00003877fi
a.rottmann9bc8b932004-02-29 15:18:31 +00003878fi
3879CXX=$ac_cv_prog_CXX
3880if test -n "$CXX"; then
3881 echo "$as_me:$LINENO: result: $CXX" >&5
3882echo "${ECHO_T}$CXX" >&6
drh71eb93e2001-09-28 01:34:43 +00003883else
a.rottmann84e63352003-03-24 09:42:16 +00003884 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00003885echo "${ECHO_T}no" >&6
3886fi
3887
a.rottmann9bc8b932004-02-29 15:18:31 +00003888 test -n "$CXX" && break
3889 done
3890fi
3891if test -z "$CXX"; then
3892 ac_ct_CXX=$CXX
3893 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3894do
3895 # Extract the first word of "$ac_prog", so it can be a program name with args.
3896set dummy $ac_prog; ac_word=$2
3897echo "$as_me:$LINENO: checking for $ac_word" >&5
3898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3899if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00003900 echo $ECHO_N "(cached) $ECHO_C" >&6
3901else
a.rottmann9bc8b932004-02-29 15:18:31 +00003902 if test -n "$ac_ct_CXX"; then
3903 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3904else
3905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906for as_dir in $PATH
3907do
3908 IFS=$as_save_IFS
3909 test -z "$as_dir" && as_dir=.
3910 for ac_exec_ext in '' $ac_executable_extensions; do
3911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3912 ac_cv_prog_ac_ct_CXX="$ac_prog"
3913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3914 break 2
3915 fi
3916done
3917done
drh71eb93e2001-09-28 01:34:43 +00003918
drh71eb93e2001-09-28 01:34:43 +00003919fi
a.rottmann9bc8b932004-02-29 15:18:31 +00003920fi
3921ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3922if test -n "$ac_ct_CXX"; then
3923 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3924echo "${ECHO_T}$ac_ct_CXX" >&6
drh71eb93e2001-09-28 01:34:43 +00003925else
a.rottmann84e63352003-03-24 09:42:16 +00003926 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00003927echo "${ECHO_T}no" >&6
3928fi
3929
a.rottmann9bc8b932004-02-29 15:18:31 +00003930 test -n "$ac_ct_CXX" && break
3931done
3932test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3933
3934 CXX=$ac_ct_CXX
3935fi
3936
3937
3938# Provide some information about the compiler.
3939echo "$as_me:$LINENO:" \
3940 "checking for C++ compiler version" >&5
3941ac_compiler=`set X $ac_compile; echo $2`
3942{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3943 (eval $ac_compiler --version </dev/null >&5) 2>&5
3944 ac_status=$?
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }
3947{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3948 (eval $ac_compiler -v </dev/null >&5) 2>&5
3949 ac_status=$?
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); }
3952{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3953 (eval $ac_compiler -V </dev/null >&5) 2>&5
3954 ac_status=$?
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); }
3957
3958echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3959echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3960if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3962else
3963 cat >conftest.$ac_ext <<_ACEOF
3964/* confdefs.h. */
3965_ACEOF
3966cat confdefs.h >>conftest.$ac_ext
3967cat >>conftest.$ac_ext <<_ACEOF
3968/* end confdefs.h. */
3969
3970int
3971main ()
3972{
3973#ifndef __GNUC__
3974 choke me
3975#endif
3976
3977 ;
3978 return 0;
3979}
3980_ACEOF
3981rm -f conftest.$ac_objext
3982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3983 (eval $ac_compile) 2>conftest.er1
3984 ac_status=$?
3985 grep -v '^ *+' conftest.er1 >conftest.err
3986 rm -f conftest.er1
3987 cat conftest.err >&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00003990 { ac_try='test -z "$ac_cxx_werror_flag"
3991 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00003992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3993 (eval $ac_try) 2>&5
3994 ac_status=$?
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); }; } &&
3997 { ac_try='test -s conftest.$ac_objext'
3998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999 (eval $ac_try) 2>&5
4000 ac_status=$?
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); }; }; then
4003 ac_compiler_gnu=yes
4004else
4005 echo "$as_me: failed program was:" >&5
4006sed 's/^/| /' conftest.$ac_ext >&5
4007
4008ac_compiler_gnu=no
4009fi
4010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4011ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4012
4013fi
4014echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4015echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4016GXX=`test $ac_compiler_gnu = yes && echo yes`
4017ac_test_CXXFLAGS=${CXXFLAGS+set}
4018ac_save_CXXFLAGS=$CXXFLAGS
4019CXXFLAGS="-g"
4020echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4021echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4022if test "${ac_cv_prog_cxx_g+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4024else
4025 cat >conftest.$ac_ext <<_ACEOF
4026/* confdefs.h. */
4027_ACEOF
4028cat confdefs.h >>conftest.$ac_ext
4029cat >>conftest.$ac_ext <<_ACEOF
4030/* end confdefs.h. */
4031
4032int
4033main ()
4034{
4035
4036 ;
4037 return 0;
4038}
4039_ACEOF
4040rm -f conftest.$ac_objext
4041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4042 (eval $ac_compile) 2>conftest.er1
4043 ac_status=$?
4044 grep -v '^ *+' conftest.er1 >conftest.err
4045 rm -f conftest.er1
4046 cat conftest.err >&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00004049 { ac_try='test -z "$ac_cxx_werror_flag"
4050 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00004051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4052 (eval $ac_try) 2>&5
4053 ac_status=$?
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); }; } &&
4056 { ac_try='test -s conftest.$ac_objext'
4057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058 (eval $ac_try) 2>&5
4059 ac_status=$?
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; }; then
4062 ac_cv_prog_cxx_g=yes
4063else
4064 echo "$as_me: failed program was:" >&5
4065sed 's/^/| /' conftest.$ac_ext >&5
4066
4067ac_cv_prog_cxx_g=no
4068fi
4069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4070fi
4071echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4072echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4073if test "$ac_test_CXXFLAGS" = set; then
4074 CXXFLAGS=$ac_save_CXXFLAGS
4075elif test $ac_cv_prog_cxx_g = yes; then
4076 if test "$GXX" = yes; then
4077 CXXFLAGS="-g -O2"
drh71eb93e2001-09-28 01:34:43 +00004078 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004079 CXXFLAGS="-g"
4080 fi
4081else
4082 if test "$GXX" = yes; then
4083 CXXFLAGS="-O2"
4084 else
4085 CXXFLAGS=
4086 fi
4087fi
4088for ac_declaration in \
4089 '' \
4090 'extern "C" void std::exit (int) throw (); using std::exit;' \
4091 'extern "C" void std::exit (int); using std::exit;' \
4092 'extern "C" void exit (int) throw ();' \
4093 'extern "C" void exit (int);' \
4094 'void exit (int);'
4095do
4096 cat >conftest.$ac_ext <<_ACEOF
4097/* confdefs.h. */
4098_ACEOF
4099cat confdefs.h >>conftest.$ac_ext
4100cat >>conftest.$ac_ext <<_ACEOF
4101/* end confdefs.h. */
4102$ac_declaration
4103#include <stdlib.h>
4104int
4105main ()
4106{
4107exit (42);
4108 ;
4109 return 0;
4110}
4111_ACEOF
4112rm -f conftest.$ac_objext
4113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4114 (eval $ac_compile) 2>conftest.er1
4115 ac_status=$?
4116 grep -v '^ *+' conftest.er1 >conftest.err
4117 rm -f conftest.er1
4118 cat conftest.err >&5
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00004121 { ac_try='test -z "$ac_cxx_werror_flag"
4122 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00004123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124 (eval $ac_try) 2>&5
4125 ac_status=$?
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; } &&
4128 { ac_try='test -s conftest.$ac_objext'
4129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4130 (eval $ac_try) 2>&5
4131 ac_status=$?
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); }; }; then
4134 :
4135else
4136 echo "$as_me: failed program was:" >&5
4137sed 's/^/| /' conftest.$ac_ext >&5
4138
4139continue
4140fi
4141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4142 cat >conftest.$ac_ext <<_ACEOF
4143/* confdefs.h. */
4144_ACEOF
4145cat confdefs.h >>conftest.$ac_ext
4146cat >>conftest.$ac_ext <<_ACEOF
4147/* end confdefs.h. */
4148$ac_declaration
4149int
4150main ()
4151{
4152exit (42);
4153 ;
4154 return 0;
4155}
4156_ACEOF
4157rm -f conftest.$ac_objext
4158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4159 (eval $ac_compile) 2>conftest.er1
4160 ac_status=$?
4161 grep -v '^ *+' conftest.er1 >conftest.err
4162 rm -f conftest.er1
4163 cat conftest.err >&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00004166 { ac_try='test -z "$ac_cxx_werror_flag"
4167 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00004168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169 (eval $ac_try) 2>&5
4170 ac_status=$?
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; } &&
4173 { ac_try='test -s conftest.$ac_objext'
4174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4175 (eval $ac_try) 2>&5
4176 ac_status=$?
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; }; then
4179 break
4180else
4181 echo "$as_me: failed program was:" >&5
4182sed 's/^/| /' conftest.$ac_ext >&5
4183
4184fi
4185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4186done
4187rm -f conftest*
4188if test -n "$ac_declaration"; then
4189 echo '#ifdef __cplusplus' >>confdefs.h
4190 echo $ac_declaration >>confdefs.h
4191 echo '#endif' >>confdefs.h
4192fi
4193
4194ac_ext=cc
4195ac_cpp='$CXXCPP $CPPFLAGS'
4196ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4197ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4198ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4199
4200ac_ext=cc
4201ac_cpp='$CXXCPP $CPPFLAGS'
4202ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4203ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4204ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4205echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4206echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4207if test -z "$CXXCPP"; then
4208 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
4210else
4211 # Double quotes because CXXCPP needs to be expanded
4212 for CXXCPP in "$CXX -E" "/lib/cpp"
4213 do
4214 ac_preproc_ok=false
4215for ac_cxx_preproc_warn_flag in '' yes
4216do
4217 # Use a header file that comes with gcc, so configuring glibc
4218 # with a fresh cross-compiler works.
4219 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4220 # <limits.h> exists even on freestanding compilers.
4221 # On the NeXT, cc -E runs the code through the compiler's parser,
4222 # not just through cpp. "Syntax error" is here to catch this case.
4223 cat >conftest.$ac_ext <<_ACEOF
4224/* confdefs.h. */
4225_ACEOF
4226cat confdefs.h >>conftest.$ac_ext
4227cat >>conftest.$ac_ext <<_ACEOF
4228/* end confdefs.h. */
4229#ifdef __STDC__
4230# include <limits.h>
4231#else
4232# include <assert.h>
4233#endif
4234 Syntax error
4235_ACEOF
4236if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4238 ac_status=$?
4239 grep -v '^ *+' conftest.er1 >conftest.err
4240 rm -f conftest.er1
4241 cat conftest.err >&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); } >/dev/null; then
4244 if test -s conftest.err; then
4245 ac_cpp_err=$ac_cxx_preproc_warn_flag
4246 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4247 else
4248 ac_cpp_err=
4249 fi
4250else
4251 ac_cpp_err=yes
4252fi
4253if test -z "$ac_cpp_err"; then
4254 :
4255else
4256 echo "$as_me: failed program was:" >&5
4257sed 's/^/| /' conftest.$ac_ext >&5
4258
4259 # Broken: fails on valid input.
4260continue
4261fi
4262rm -f conftest.err conftest.$ac_ext
4263
4264 # OK, works on sane cases. Now check whether non-existent headers
4265 # can be detected and how.
4266 cat >conftest.$ac_ext <<_ACEOF
4267/* confdefs.h. */
4268_ACEOF
4269cat confdefs.h >>conftest.$ac_ext
4270cat >>conftest.$ac_ext <<_ACEOF
4271/* end confdefs.h. */
4272#include <ac_nonexistent.h>
4273_ACEOF
4274if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4275 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4276 ac_status=$?
4277 grep -v '^ *+' conftest.er1 >conftest.err
4278 rm -f conftest.er1
4279 cat conftest.err >&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } >/dev/null; then
4282 if test -s conftest.err; then
4283 ac_cpp_err=$ac_cxx_preproc_warn_flag
4284 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4285 else
4286 ac_cpp_err=
4287 fi
4288else
4289 ac_cpp_err=yes
4290fi
4291if test -z "$ac_cpp_err"; then
4292 # Broken: success on invalid input.
4293continue
4294else
4295 echo "$as_me: failed program was:" >&5
4296sed 's/^/| /' conftest.$ac_ext >&5
4297
4298 # Passes both tests.
4299ac_preproc_ok=:
4300break
4301fi
4302rm -f conftest.err conftest.$ac_ext
4303
4304done
4305# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4306rm -f conftest.err conftest.$ac_ext
4307if $ac_preproc_ok; then
4308 break
4309fi
4310
4311 done
4312 ac_cv_prog_CXXCPP=$CXXCPP
4313
4314fi
4315 CXXCPP=$ac_cv_prog_CXXCPP
4316else
4317 ac_cv_prog_CXXCPP=$CXXCPP
4318fi
4319echo "$as_me:$LINENO: result: $CXXCPP" >&5
4320echo "${ECHO_T}$CXXCPP" >&6
4321ac_preproc_ok=false
4322for ac_cxx_preproc_warn_flag in '' yes
4323do
4324 # Use a header file that comes with gcc, so configuring glibc
4325 # with a fresh cross-compiler works.
4326 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4327 # <limits.h> exists even on freestanding compilers.
4328 # On the NeXT, cc -E runs the code through the compiler's parser,
4329 # not just through cpp. "Syntax error" is here to catch this case.
4330 cat >conftest.$ac_ext <<_ACEOF
4331/* confdefs.h. */
4332_ACEOF
4333cat confdefs.h >>conftest.$ac_ext
4334cat >>conftest.$ac_ext <<_ACEOF
4335/* end confdefs.h. */
4336#ifdef __STDC__
4337# include <limits.h>
4338#else
4339# include <assert.h>
4340#endif
4341 Syntax error
4342_ACEOF
4343if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4345 ac_status=$?
4346 grep -v '^ *+' conftest.er1 >conftest.err
4347 rm -f conftest.er1
4348 cat conftest.err >&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); } >/dev/null; then
4351 if test -s conftest.err; then
4352 ac_cpp_err=$ac_cxx_preproc_warn_flag
4353 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4354 else
4355 ac_cpp_err=
4356 fi
4357else
4358 ac_cpp_err=yes
4359fi
4360if test -z "$ac_cpp_err"; then
4361 :
4362else
4363 echo "$as_me: failed program was:" >&5
4364sed 's/^/| /' conftest.$ac_ext >&5
4365
4366 # Broken: fails on valid input.
4367continue
4368fi
4369rm -f conftest.err conftest.$ac_ext
4370
4371 # OK, works on sane cases. Now check whether non-existent headers
4372 # can be detected and how.
4373 cat >conftest.$ac_ext <<_ACEOF
4374/* confdefs.h. */
4375_ACEOF
4376cat confdefs.h >>conftest.$ac_ext
4377cat >>conftest.$ac_ext <<_ACEOF
4378/* end confdefs.h. */
4379#include <ac_nonexistent.h>
4380_ACEOF
4381if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4383 ac_status=$?
4384 grep -v '^ *+' conftest.er1 >conftest.err
4385 rm -f conftest.er1
4386 cat conftest.err >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); } >/dev/null; then
4389 if test -s conftest.err; then
4390 ac_cpp_err=$ac_cxx_preproc_warn_flag
4391 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4392 else
4393 ac_cpp_err=
4394 fi
4395else
4396 ac_cpp_err=yes
4397fi
4398if test -z "$ac_cpp_err"; then
4399 # Broken: success on invalid input.
4400continue
4401else
4402 echo "$as_me: failed program was:" >&5
4403sed 's/^/| /' conftest.$ac_ext >&5
4404
4405 # Passes both tests.
4406ac_preproc_ok=:
4407break
4408fi
4409rm -f conftest.err conftest.$ac_ext
4410
4411done
4412# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4413rm -f conftest.err conftest.$ac_ext
4414if $ac_preproc_ok; then
4415 :
4416else
4417 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4418See \`config.log' for more details." >&5
4419echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4420See \`config.log' for more details." >&2;}
4421 { (exit 1); exit 1; }; }
4422fi
4423
4424ac_ext=cc
4425ac_cpp='$CXXCPP $CPPFLAGS'
4426ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4427ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4428ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4429
4430
4431ac_ext=f
4432ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4433ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4434ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4435if test -n "$ac_tool_prefix"; then
4436 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4437 do
4438 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4439set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4440echo "$as_me:$LINENO: checking for $ac_word" >&5
4441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4442if test "${ac_cv_prog_F77+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4444else
4445 if test -n "$F77"; then
4446 ac_cv_prog_F77="$F77" # Let the user override the test.
4447else
4448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449for as_dir in $PATH
4450do
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4455 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 break 2
4458 fi
4459done
4460done
4461
4462fi
4463fi
4464F77=$ac_cv_prog_F77
4465if test -n "$F77"; then
4466 echo "$as_me:$LINENO: result: $F77" >&5
4467echo "${ECHO_T}$F77" >&6
4468else
4469 echo "$as_me:$LINENO: result: no" >&5
4470echo "${ECHO_T}no" >&6
4471fi
4472
4473 test -n "$F77" && break
4474 done
4475fi
4476if test -z "$F77"; then
4477 ac_ct_F77=$F77
4478 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4479do
4480 # Extract the first word of "$ac_prog", so it can be a program name with args.
4481set dummy $ac_prog; ac_word=$2
4482echo "$as_me:$LINENO: checking for $ac_word" >&5
4483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4484if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4485 echo $ECHO_N "(cached) $ECHO_C" >&6
4486else
4487 if test -n "$ac_ct_F77"; then
4488 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4489else
4490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491for as_dir in $PATH
4492do
4493 IFS=$as_save_IFS
4494 test -z "$as_dir" && as_dir=.
4495 for ac_exec_ext in '' $ac_executable_extensions; do
4496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4497 ac_cv_prog_ac_ct_F77="$ac_prog"
4498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4499 break 2
4500 fi
4501done
4502done
4503
4504fi
4505fi
4506ac_ct_F77=$ac_cv_prog_ac_ct_F77
4507if test -n "$ac_ct_F77"; then
4508 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4509echo "${ECHO_T}$ac_ct_F77" >&6
4510else
4511 echo "$as_me:$LINENO: result: no" >&5
4512echo "${ECHO_T}no" >&6
4513fi
4514
4515 test -n "$ac_ct_F77" && break
4516done
4517
4518 F77=$ac_ct_F77
4519fi
4520
4521
4522# Provide some information about the compiler.
drh8e2e2a12006-02-01 01:55:17 +00004523echo "$as_me:4523:" \
a.rottmann9bc8b932004-02-29 15:18:31 +00004524 "checking for Fortran 77 compiler version" >&5
4525ac_compiler=`set X $ac_compile; echo $2`
4526{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4527 (eval $ac_compiler --version </dev/null >&5) 2>&5
4528 ac_status=$?
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }
4531{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4532 (eval $ac_compiler -v </dev/null >&5) 2>&5
4533 ac_status=$?
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); }
4536{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4537 (eval $ac_compiler -V </dev/null >&5) 2>&5
4538 ac_status=$?
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }
4541rm -f a.out
4542
4543# If we don't use `.F' as extension, the preprocessor is not run on the
4544# input file. (Note that this only needs to work for GNU compilers.)
4545ac_save_ext=$ac_ext
4546ac_ext=F
4547echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4548echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4549if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
4551else
4552 cat >conftest.$ac_ext <<_ACEOF
4553 program main
4554#ifndef __GNUC__
4555 choke me
4556#endif
4557
4558 end
4559_ACEOF
4560rm -f conftest.$ac_objext
4561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4562 (eval $ac_compile) 2>conftest.er1
4563 ac_status=$?
4564 grep -v '^ *+' conftest.er1 >conftest.err
4565 rm -f conftest.er1
4566 cat conftest.err >&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00004569 { ac_try='test -z "$ac_f77_werror_flag"
4570 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00004571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4572 (eval $ac_try) 2>&5
4573 ac_status=$?
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; } &&
4576 { ac_try='test -s conftest.$ac_objext'
4577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4578 (eval $ac_try) 2>&5
4579 ac_status=$?
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); }; }; then
4582 ac_compiler_gnu=yes
4583else
4584 echo "$as_me: failed program was:" >&5
4585sed 's/^/| /' conftest.$ac_ext >&5
4586
4587ac_compiler_gnu=no
4588fi
4589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4590ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4591
4592fi
4593echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4594echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4595ac_ext=$ac_save_ext
4596ac_test_FFLAGS=${FFLAGS+set}
4597ac_save_FFLAGS=$FFLAGS
4598FFLAGS=
4599echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4600echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4601if test "${ac_cv_prog_f77_g+set}" = set; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4603else
4604 FFLAGS=-g
4605cat >conftest.$ac_ext <<_ACEOF
4606 program main
4607
4608 end
4609_ACEOF
4610rm -f conftest.$ac_objext
4611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4612 (eval $ac_compile) 2>conftest.er1
4613 ac_status=$?
4614 grep -v '^ *+' conftest.er1 >conftest.err
4615 rm -f conftest.er1
4616 cat conftest.err >&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00004619 { ac_try='test -z "$ac_f77_werror_flag"
4620 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00004621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4622 (eval $ac_try) 2>&5
4623 ac_status=$?
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }; } &&
4626 { ac_try='test -s conftest.$ac_objext'
4627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628 (eval $ac_try) 2>&5
4629 ac_status=$?
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; }; then
4632 ac_cv_prog_f77_g=yes
4633else
4634 echo "$as_me: failed program was:" >&5
4635sed 's/^/| /' conftest.$ac_ext >&5
4636
4637ac_cv_prog_f77_g=no
4638fi
4639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4640
4641fi
4642echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4643echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4644if test "$ac_test_FFLAGS" = set; then
4645 FFLAGS=$ac_save_FFLAGS
4646elif test $ac_cv_prog_f77_g = yes; then
4647 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4648 FFLAGS="-g -O2"
4649 else
4650 FFLAGS="-g"
4651 fi
4652else
4653 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4654 FFLAGS="-O2"
4655 else
4656 FFLAGS=
drh71eb93e2001-09-28 01:34:43 +00004657 fi
4658fi
4659
a.rottmann9bc8b932004-02-29 15:18:31 +00004660G77=`test $ac_compiler_gnu = yes && echo yes`
4661ac_ext=c
4662ac_cpp='$CPP $CPPFLAGS'
4663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4665ac_compiler_gnu=$ac_cv_c_compiler_gnu
4666
4667
4668
4669# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4670
4671# find the maximum length of command line arguments
4672echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4673echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4674if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4676else
4677 i=0
4678 testring="ABCD"
4679
4680 case $build_os in
4681 msdosdjgpp*)
4682 # On DJGPP, this test can blow up pretty badly due to problems in libc
4683 # (any single argument exceeding 2000 bytes causes a buffer overrun
4684 # during glob expansion). Even if it were fixed, the result of this
4685 # check would be larger than it should be.
4686 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4687 ;;
4688
4689 gnu*)
4690 # Under GNU Hurd, this test is not required because there is
4691 # no limit to the length of command line arguments.
4692 # Libtool will interpret -1 as no limit whatsoever
4693 lt_cv_sys_max_cmd_len=-1;
4694 ;;
4695
4696 cygwin* | mingw*)
4697 # On Win9x/ME, this test blows up -- it succeeds, but takes
4698 # about 5 minutes as the teststring grows exponentially.
4699 # Worse, since 9x/ME are not pre-emptively multitasking,
4700 # you end up with a "frozen" computer, even though with patience
4701 # the test eventually succeeds (with a max line length of 256k).
4702 # Instead, let's just punt: use the minimum linelength reported by
4703 # all of the supported platforms: 8192 (on NT/2K/XP).
4704 lt_cv_sys_max_cmd_len=8192;
4705 ;;
4706
4707 amigaos*)
4708 # On AmigaOS with pdksh, this test takes hours, literally.
4709 # So we just punt and use a minimum line length of 8192.
4710 lt_cv_sys_max_cmd_len=8192;
4711 ;;
4712
4713 *)
4714 # If test is not a shell built-in, we'll probably end up computing a
4715 # maximum length that is only half of the actual maximum length, but
4716 # we can't tell.
4717 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
4718 = "XX$testring") >/dev/null 2>&1 &&
4719 new_result=`expr "X$testring" : ".*" 2>&1` &&
4720 lt_cv_sys_max_cmd_len=$new_result &&
4721 test $i != 17 # 1/2 MB should be enough
4722 do
4723 i=`expr $i + 1`
4724 testring=$testring$testring
4725 done
4726 testring=
4727 # Add a significant safety factor because C++ compilers can tack on massive
4728 # amounts of additional arguments before passing them to the linker.
4729 # It appears as though 1/2 is a usable value.
4730 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4731 ;;
4732 esac
4733
4734fi
4735
4736if test -n $lt_cv_sys_max_cmd_len ; then
4737 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4738echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4739else
4740 echo "$as_me:$LINENO: result: none" >&5
4741echo "${ECHO_T}none" >&6
4742fi
4743
4744
4745
4746
4747# Check for command to grab the raw symbol name followed by C symbol from nm.
4748echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4749echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4750if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4751 echo $ECHO_N "(cached) $ECHO_C" >&6
4752else
4753
4754# These are sane defaults that work on at least a few old systems.
4755# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4756
4757# Character class describing NM global symbol codes.
4758symcode='[BCDEGRST]'
4759
4760# Regexp to match symbols that can be accessed directly from C.
4761sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4762
4763# Transform the above into a raw symbol and a C symbol.
4764symxfrm='\1 \2\3 \3'
4765
4766# Transform an extracted symbol line into a proper C declaration
4767lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4768
4769# Transform an extracted symbol line into symbol name and symbol address
4770lt_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'"
4771
4772# Define system-specific variables.
4773case $host_os in
4774aix*)
4775 symcode='[BCDT]'
4776 ;;
4777cygwin* | mingw* | pw32*)
4778 symcode='[ABCDGISTW]'
4779 ;;
4780hpux*) # Its linker distinguishes data from code symbols
4781 if test "$host_cpu" = ia64; then
4782 symcode='[ABCDEGRST]'
4783 fi
4784 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4785 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'"
4786 ;;
4787irix* | nonstopux*)
4788 symcode='[BCDEGRST]'
4789 ;;
4790osf*)
4791 symcode='[BCDEGQRST]'
4792 ;;
4793solaris* | sysv5*)
4794 symcode='[BDRT]'
4795 ;;
4796sysv4)
4797 symcode='[DFNSTU]'
4798 ;;
4799esac
4800
4801# Handle CRLF in mingw tool chain
4802opt_cr=
4803case $build_os in
4804mingw*)
4805 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4806 ;;
4807esac
4808
4809# If we're using GNU nm, then use its standard symbol codes.
4810case `$NM -V 2>&1` in
4811*GNU* | *'with BFD'*)
4812 symcode='[ABCDGIRSTW]' ;;
4813esac
4814
4815# Try without a prefix undercore, then with it.
4816for ac_symprfx in "" "_"; do
4817
4818 # Write the raw and C identifiers.
4819 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4820
4821 # Check to see that the pipe works correctly.
4822 pipe_works=no
4823
4824 rm -f conftest*
4825 cat > conftest.$ac_ext <<EOF
4826#ifdef __cplusplus
4827extern "C" {
4828#endif
4829char nm_test_var;
4830void nm_test_func(){}
4831#ifdef __cplusplus
4832}
4833#endif
4834int main(){nm_test_var='a';nm_test_func();return(0);}
4835EOF
4836
4837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4838 (eval $ac_compile) 2>&5
4839 ac_status=$?
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); }; then
4842 # Now try to grab the symbols.
4843 nlist=conftest.nm
4844 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4845 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4846 ac_status=$?
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); } && test -s "$nlist"; then
4849 # Try sorting and uniquifying the output.
4850 if sort "$nlist" | uniq > "$nlist"T; then
4851 mv -f "$nlist"T "$nlist"
4852 else
4853 rm -f "$nlist"T
4854 fi
4855
4856 # Make sure that we snagged all the symbols we need.
4857 if grep ' nm_test_var$' "$nlist" >/dev/null; then
4858 if grep ' nm_test_func$' "$nlist" >/dev/null; then
4859 cat <<EOF > conftest.$ac_ext
4860#ifdef __cplusplus
4861extern "C" {
4862#endif
4863
4864EOF
4865 # Now generate the symbol file.
4866 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4867
4868 cat <<EOF >> conftest.$ac_ext
4869#if defined (__STDC__) && __STDC__
4870# define lt_ptr_t void *
4871#else
4872# define lt_ptr_t char *
4873# define const
4874#endif
4875
4876/* The mapping between symbol names and symbols. */
4877const struct {
4878 const char *name;
4879 lt_ptr_t address;
4880}
4881lt_preloaded_symbols[] =
4882{
4883EOF
4884 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4885 cat <<\EOF >> conftest.$ac_ext
4886 {0, (lt_ptr_t) 0}
4887};
4888
4889#ifdef __cplusplus
4890}
4891#endif
4892EOF
4893 # Now try linking the two files.
4894 mv conftest.$ac_objext conftstm.$ac_objext
4895 lt_save_LIBS="$LIBS"
4896 lt_save_CFLAGS="$CFLAGS"
4897 LIBS="conftstm.$ac_objext"
4898 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4900 (eval $ac_link) 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4904 pipe_works=yes
4905 fi
4906 LIBS="$lt_save_LIBS"
4907 CFLAGS="$lt_save_CFLAGS"
4908 else
4909 echo "cannot find nm_test_func in $nlist" >&5
4910 fi
4911 else
4912 echo "cannot find nm_test_var in $nlist" >&5
4913 fi
4914 else
4915 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4916 fi
4917 else
4918 echo "$progname: failed program was:" >&5
4919 cat conftest.$ac_ext >&5
4920 fi
4921 rm -f conftest* conftst*
4922
4923 # Do not use the global_symbol_pipe unless it works.
4924 if test "$pipe_works" = yes; then
4925 break
4926 else
4927 lt_cv_sys_global_symbol_pipe=
4928 fi
4929done
4930
4931fi
4932
4933if test -z "$lt_cv_sys_global_symbol_pipe"; then
4934 lt_cv_sys_global_symbol_to_cdecl=
4935fi
4936if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4937 echo "$as_me:$LINENO: result: failed" >&5
4938echo "${ECHO_T}failed" >&6
4939else
4940 echo "$as_me:$LINENO: result: ok" >&5
4941echo "${ECHO_T}ok" >&6
4942fi
4943
4944echo "$as_me:$LINENO: checking for objdir" >&5
4945echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4946if test "${lt_cv_objdir+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4948else
4949 rm -f .libs 2>/dev/null
4950mkdir .libs 2>/dev/null
4951if test -d .libs; then
4952 lt_cv_objdir=.libs
4953else
4954 # MS-DOS does not allow filenames that begin with a dot.
4955 lt_cv_objdir=_libs
4956fi
4957rmdir .libs 2>/dev/null
4958fi
4959echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
4960echo "${ECHO_T}$lt_cv_objdir" >&6
4961objdir=$lt_cv_objdir
4962
4963
4964
4965
4966
4967case $host_os in
4968aix3*)
4969 # AIX sometimes has problems with the GCC collect2 program. For some
4970 # reason, if we set the COLLECT_NAMES environment variable, the problems
4971 # vanish in a puff of smoke.
4972 if test "X${COLLECT_NAMES+set}" != Xset; then
4973 COLLECT_NAMES=
4974 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00004975 fi
4976 ;;
4977esac
4978
a.rottmann9bc8b932004-02-29 15:18:31 +00004979# Sed substitution that helps us do robust quoting. It backslashifies
4980# metacharacters that are still active within double-quoted strings.
4981Xsed='sed -e s/^X//'
4982sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4983
4984# Same as above, but do not quote variable references.
4985double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4986
4987# Sed substitution to delay expansion of an escaped shell variable in a
4988# double_quote_subst'ed string.
4989delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4990
4991# Sed substitution to avoid accidental globbing in evaled expressions
4992no_glob_subst='s/\*/\\\*/g'
4993
4994# Constants:
4995rm="rm -f"
4996
4997# Global variables:
4998default_ofile=libtool
4999can_build_shared=yes
5000
5001# All known linkers require a `.a' archive for static linking (except M$VC,
5002# which needs '.lib').
5003libext=a
5004ltmain="$ac_aux_dir/ltmain.sh"
5005ofile="$default_ofile"
5006with_gnu_ld="$lt_cv_prog_gnu_ld"
5007
5008if test -n "$ac_tool_prefix"; then
5009 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5010set dummy ${ac_tool_prefix}ar; ac_word=$2
5011echo "$as_me:$LINENO: checking for $ac_word" >&5
5012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5013if test "${ac_cv_prog_AR+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5015else
5016 if test -n "$AR"; then
5017 ac_cv_prog_AR="$AR" # Let the user override the test.
5018else
5019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020for as_dir in $PATH
5021do
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026 ac_cv_prog_AR="${ac_tool_prefix}ar"
5027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 break 2
5029 fi
5030done
5031done
5032
5033fi
5034fi
5035AR=$ac_cv_prog_AR
5036if test -n "$AR"; then
5037 echo "$as_me:$LINENO: result: $AR" >&5
5038echo "${ECHO_T}$AR" >&6
5039else
5040 echo "$as_me:$LINENO: result: no" >&5
5041echo "${ECHO_T}no" >&6
5042fi
5043
5044fi
5045if test -z "$ac_cv_prog_AR"; then
5046 ac_ct_AR=$AR
5047 # Extract the first word of "ar", so it can be a program name with args.
5048set dummy ar; ac_word=$2
5049echo "$as_me:$LINENO: checking for $ac_word" >&5
5050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5051if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5053else
5054 if test -n "$ac_ct_AR"; then
5055 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5056else
5057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058for as_dir in $PATH
5059do
5060 IFS=$as_save_IFS
5061 test -z "$as_dir" && as_dir=.
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5064 ac_cv_prog_ac_ct_AR="ar"
5065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 break 2
5067 fi
5068done
5069done
5070
5071 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5072fi
5073fi
5074ac_ct_AR=$ac_cv_prog_ac_ct_AR
5075if test -n "$ac_ct_AR"; then
5076 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5077echo "${ECHO_T}$ac_ct_AR" >&6
5078else
5079 echo "$as_me:$LINENO: result: no" >&5
5080echo "${ECHO_T}no" >&6
5081fi
5082
5083 AR=$ac_ct_AR
5084else
5085 AR="$ac_cv_prog_AR"
5086fi
5087
a.rottmann84e63352003-03-24 09:42:16 +00005088if test -n "$ac_tool_prefix"; then
5089 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5090set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5091echo "$as_me:$LINENO: checking for $ac_word" >&5
5092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5093if test "${ac_cv_prog_RANLIB+set}" = set; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5095else
5096 if test -n "$RANLIB"; then
5097 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5098else
5099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100for as_dir in $PATH
5101do
5102 IFS=$as_save_IFS
5103 test -z "$as_dir" && as_dir=.
5104 for ac_exec_ext in '' $ac_executable_extensions; do
5105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5106 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 break 2
5109 fi
5110done
5111done
5112
5113fi
5114fi
5115RANLIB=$ac_cv_prog_RANLIB
5116if test -n "$RANLIB"; then
5117 echo "$as_me:$LINENO: result: $RANLIB" >&5
5118echo "${ECHO_T}$RANLIB" >&6
5119else
5120 echo "$as_me:$LINENO: result: no" >&5
5121echo "${ECHO_T}no" >&6
5122fi
5123
5124fi
5125if test -z "$ac_cv_prog_RANLIB"; then
5126 ac_ct_RANLIB=$RANLIB
5127 # Extract the first word of "ranlib", so it can be a program name with args.
5128set dummy ranlib; ac_word=$2
5129echo "$as_me:$LINENO: checking for $ac_word" >&5
5130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5131if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5133else
5134 if test -n "$ac_ct_RANLIB"; then
5135 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5136else
5137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138for as_dir in $PATH
5139do
5140 IFS=$as_save_IFS
5141 test -z "$as_dir" && as_dir=.
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5144 ac_cv_prog_ac_ct_RANLIB="ranlib"
5145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5146 break 2
5147 fi
5148done
5149done
5150
5151 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5152fi
5153fi
5154ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5155if test -n "$ac_ct_RANLIB"; then
5156 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5157echo "${ECHO_T}$ac_ct_RANLIB" >&6
5158else
5159 echo "$as_me:$LINENO: result: no" >&5
5160echo "${ECHO_T}no" >&6
5161fi
5162
5163 RANLIB=$ac_ct_RANLIB
5164else
5165 RANLIB="$ac_cv_prog_RANLIB"
5166fi
5167
5168if test -n "$ac_tool_prefix"; then
5169 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5170set dummy ${ac_tool_prefix}strip; ac_word=$2
5171echo "$as_me:$LINENO: checking for $ac_word" >&5
5172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5173if test "${ac_cv_prog_STRIP+set}" = set; then
5174 echo $ECHO_N "(cached) $ECHO_C" >&6
5175else
5176 if test -n "$STRIP"; then
5177 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5178else
5179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180for as_dir in $PATH
5181do
5182 IFS=$as_save_IFS
5183 test -z "$as_dir" && as_dir=.
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5186 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5188 break 2
5189 fi
5190done
5191done
5192
5193fi
5194fi
5195STRIP=$ac_cv_prog_STRIP
5196if test -n "$STRIP"; then
5197 echo "$as_me:$LINENO: result: $STRIP" >&5
5198echo "${ECHO_T}$STRIP" >&6
5199else
5200 echo "$as_me:$LINENO: result: no" >&5
5201echo "${ECHO_T}no" >&6
5202fi
5203
5204fi
5205if test -z "$ac_cv_prog_STRIP"; then
5206 ac_ct_STRIP=$STRIP
5207 # Extract the first word of "strip", so it can be a program name with args.
5208set dummy strip; ac_word=$2
5209echo "$as_me:$LINENO: checking for $ac_word" >&5
5210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5211if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5213else
5214 if test -n "$ac_ct_STRIP"; then
5215 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5216else
5217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218for as_dir in $PATH
5219do
5220 IFS=$as_save_IFS
5221 test -z "$as_dir" && as_dir=.
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5224 ac_cv_prog_ac_ct_STRIP="strip"
5225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5226 break 2
5227 fi
5228done
5229done
5230
5231 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5232fi
5233fi
5234ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5235if test -n "$ac_ct_STRIP"; then
5236 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5237echo "${ECHO_T}$ac_ct_STRIP" >&6
5238else
5239 echo "$as_me:$LINENO: result: no" >&5
5240echo "${ECHO_T}no" >&6
5241fi
5242
5243 STRIP=$ac_ct_STRIP
5244else
5245 STRIP="$ac_cv_prog_STRIP"
5246fi
5247
5248
a.rottmann84e63352003-03-24 09:42:16 +00005249old_CC="$CC"
5250old_CFLAGS="$CFLAGS"
5251
5252# Set sane defaults for various variables
5253test -z "$AR" && AR=ar
5254test -z "$AR_FLAGS" && AR_FLAGS=cru
5255test -z "$AS" && AS=as
5256test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00005257test -z "$LTCC" && LTCC=$CC
a.rottmann84e63352003-03-24 09:42:16 +00005258test -z "$DLLTOOL" && DLLTOOL=dlltool
5259test -z "$LD" && LD=ld
5260test -z "$LN_S" && LN_S="ln -s"
5261test -z "$MAGIC_CMD" && MAGIC_CMD=file
5262test -z "$NM" && NM=nm
a.rottmann9bc8b932004-02-29 15:18:31 +00005263test -z "$SED" && SED=sed
a.rottmann84e63352003-03-24 09:42:16 +00005264test -z "$OBJDUMP" && OBJDUMP=objdump
5265test -z "$RANLIB" && RANLIB=:
5266test -z "$STRIP" && STRIP=:
5267test -z "$ac_objext" && ac_objext=o
5268
a.rottmann84e63352003-03-24 09:42:16 +00005269# Determine commands to create old-style static archives.
5270old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5271old_postinstall_cmds='chmod 644 $oldlib'
5272old_postuninstall_cmds=
5273
5274if test -n "$RANLIB"; then
5275 case $host_os in
5276 openbsd*)
5277 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5278 ;;
5279 *)
5280 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5281 ;;
5282 esac
5283 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5284fi
5285
a.rottmann9bc8b932004-02-29 15:18:31 +00005286# Only perform the check for file, if the check method requires it
5287case $deplibs_check_method in
5288file_magic*)
5289 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5290 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5291echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5292if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5293 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005294else
a.rottmann9bc8b932004-02-29 15:18:31 +00005295 case $MAGIC_CMD in
5296[\\/*] | ?:[\\/]*)
5297 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5298 ;;
5299*)
5300 lt_save_MAGIC_CMD="$MAGIC_CMD"
5301 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5302 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5303 for ac_dir in $ac_dummy; do
5304 IFS="$lt_save_ifs"
5305 test -z "$ac_dir" && ac_dir=.
5306 if test -f $ac_dir/${ac_tool_prefix}file; then
5307 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5308 if test -n "$file_magic_test_file"; then
5309 case $deplibs_check_method in
5310 "file_magic "*)
5311 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5312 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5313 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5314 $EGREP "$file_magic_regex" > /dev/null; then
5315 :
5316 else
5317 cat <<EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00005318
a.rottmann9bc8b932004-02-29 15:18:31 +00005319*** Warning: the command libtool uses to detect shared libraries,
5320*** $file_magic_cmd, produces output that libtool cannot recognize.
5321*** The result is that libtool may fail to recognize shared libraries
5322*** as such. This will affect the creation of libtool libraries that
5323*** depend on shared libraries, but programs linked with such libtool
5324*** libraries will work regardless of this problem. Nevertheless, you
5325*** may want to report the problem to your system manager and/or to
5326*** bug-libtool@gnu.org
5327
5328EOF
5329 fi ;;
5330 esac
5331 fi
5332 break
5333 fi
5334 done
5335 IFS="$lt_save_ifs"
5336 MAGIC_CMD="$lt_save_MAGIC_CMD"
5337 ;;
5338esac
5339fi
5340
5341MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5342if test -n "$MAGIC_CMD"; then
5343 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5344echo "${ECHO_T}$MAGIC_CMD" >&6
5345else
5346 echo "$as_me:$LINENO: result: no" >&5
5347echo "${ECHO_T}no" >&6
5348fi
5349
5350if test -z "$lt_cv_path_MAGIC_CMD"; then
5351 if test -n "$ac_tool_prefix"; then
5352 echo "$as_me:$LINENO: checking for file" >&5
5353echo $ECHO_N "checking for file... $ECHO_C" >&6
5354if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5355 echo $ECHO_N "(cached) $ECHO_C" >&6
5356else
5357 case $MAGIC_CMD in
5358[\\/*] | ?:[\\/]*)
5359 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5360 ;;
5361*)
5362 lt_save_MAGIC_CMD="$MAGIC_CMD"
5363 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5364 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5365 for ac_dir in $ac_dummy; do
5366 IFS="$lt_save_ifs"
5367 test -z "$ac_dir" && ac_dir=.
5368 if test -f $ac_dir/file; then
5369 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5370 if test -n "$file_magic_test_file"; then
5371 case $deplibs_check_method in
5372 "file_magic "*)
5373 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5374 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5375 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5376 $EGREP "$file_magic_regex" > /dev/null; then
5377 :
5378 else
5379 cat <<EOF 1>&2
5380
5381*** Warning: the command libtool uses to detect shared libraries,
5382*** $file_magic_cmd, produces output that libtool cannot recognize.
5383*** The result is that libtool may fail to recognize shared libraries
5384*** as such. This will affect the creation of libtool libraries that
5385*** depend on shared libraries, but programs linked with such libtool
5386*** libraries will work regardless of this problem. Nevertheless, you
5387*** may want to report the problem to your system manager and/or to
5388*** bug-libtool@gnu.org
5389
5390EOF
5391 fi ;;
5392 esac
5393 fi
5394 break
5395 fi
5396 done
5397 IFS="$lt_save_ifs"
5398 MAGIC_CMD="$lt_save_MAGIC_CMD"
5399 ;;
5400esac
5401fi
5402
5403MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5404if test -n "$MAGIC_CMD"; then
5405 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5406echo "${ECHO_T}$MAGIC_CMD" >&6
5407else
5408 echo "$as_me:$LINENO: result: no" >&5
5409echo "${ECHO_T}no" >&6
5410fi
5411
5412 else
5413 MAGIC_CMD=:
5414 fi
5415fi
5416
5417 fi
5418 ;;
5419esac
5420
5421enable_dlopen=no
5422enable_win32_dll=no
5423
5424# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5425if test "${enable_libtool_lock+set}" = set; then
5426 enableval="$enable_libtool_lock"
5427
5428fi;
5429test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
a.rottmann84e63352003-03-24 09:42:16 +00005430
5431
drh71eb93e2001-09-28 01:34:43 +00005432# Check whether --with-pic or --without-pic was given.
5433if test "${with_pic+set}" = set; then
5434 withval="$with_pic"
5435 pic_mode="$withval"
5436else
5437 pic_mode=default
5438fi;
5439test -z "$pic_mode" && pic_mode=default
5440
a.rottmann9bc8b932004-02-29 15:18:31 +00005441# Use C for the default configuration in the libtool script
5442tagname=
5443lt_save_CC="$CC"
5444ac_ext=c
5445ac_cpp='$CPP $CPPFLAGS'
5446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5448ac_compiler_gnu=$ac_cv_c_compiler_gnu
5449
5450
5451# Source file extension for C test sources.
5452ac_ext=c
5453
5454# Object file extension for compiled C test sources.
5455objext=o
5456objext=$objext
5457
5458# Code to be used in simple compile tests
5459lt_simple_compile_test_code="int some_variable = 0;\n"
5460
5461# Code to be used in simple link tests
5462lt_simple_link_test_code='int main(){return(0);}\n'
5463
5464
5465# If no C compiler was specified, use CC.
5466LTCC=${LTCC-"$CC"}
5467
5468# Allow CC to be a program name with arguments.
5469compiler=$CC
5470
5471
5472#
5473# Check for any special shared library compilation flags.
5474#
5475lt_prog_cc_shlib=
5476if test "$GCC" = no; then
5477 case $host_os in
5478 sco3.2v5*)
5479 lt_prog_cc_shlib='-belf'
5480 ;;
5481 esac
5482fi
5483if test -n "$lt_prog_cc_shlib"; then
5484 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5485echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5486 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5487 else
5488 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5489echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5490 lt_cv_prog_cc_can_build_shared=no
5491 fi
5492fi
5493
5494
5495#
5496# Check to make sure the static flag actually works.
5497#
5498echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5499echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5500if test "${lt_prog_compiler_static_works+set}" = set; then
a.rottmann84e63352003-03-24 09:42:16 +00005501 echo $ECHO_N "(cached) $ECHO_C" >&6
5502else
a.rottmann9bc8b932004-02-29 15:18:31 +00005503 lt_prog_compiler_static_works=no
5504 save_LDFLAGS="$LDFLAGS"
5505 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5506 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5507 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5508 # The compiler can only warn and ignore the option if not recognized
5509 # So say no if there are warnings
5510 if test -s conftest.err; then
5511 # Append any errors to the config.log.
5512 cat conftest.err 1>&5
5513 else
5514 lt_prog_compiler_static_works=yes
5515 fi
5516 fi
5517 $rm conftest*
5518 LDFLAGS="$save_LDFLAGS"
5519
5520fi
5521echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5522echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5523
5524if test x"$lt_prog_compiler_static_works" = xyes; then
5525 :
5526else
5527 lt_prog_compiler_static=
5528fi
5529
5530
5531
5532
5533lt_prog_compiler_no_builtin_flag=
5534
5535if test "$GCC" = yes; then
5536 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5537
5538
5539echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5540echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5541if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5543else
5544 lt_cv_prog_compiler_rtti_exceptions=no
5545 ac_outfile=conftest.$ac_objext
5546 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5547 lt_compiler_flag="-fno-rtti -fno-exceptions"
5548 # Insert the option either (1) after the last *FLAGS variable, or
5549 # (2) before a word containing "conftest.", or (3) at the end.
5550 # Note that $ac_compile itself does not contain backslashes and begins
5551 # with a dollar sign (not a hyphen), so the echo should work correctly.
5552 # The option is referenced via a variable to avoid confusing sed.
5553 lt_compile=`echo "$ac_compile" | $SED \
5554 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5555 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5556 -e 's:$: $lt_compiler_flag:'`
drh8e2e2a12006-02-01 01:55:17 +00005557 (eval echo "\"\$as_me:5557: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00005558 (eval "$lt_compile" 2>conftest.err)
5559 ac_status=$?
5560 cat conftest.err >&5
drh8e2e2a12006-02-01 01:55:17 +00005561 echo "$as_me:5561: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005562 if (exit $ac_status) && test -s "$ac_outfile"; then
5563 # The compiler can only warn and ignore the option if not recognized
5564 # So say no if there are warnings
5565 if test ! -s conftest.err; then
5566 lt_cv_prog_compiler_rtti_exceptions=yes
5567 fi
5568 fi
5569 $rm conftest*
5570
5571fi
5572echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5573echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5574
5575if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5576 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5577else
5578 :
5579fi
5580
5581fi
5582
5583lt_prog_compiler_wl=
5584lt_prog_compiler_pic=
5585lt_prog_compiler_static=
5586
5587echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5588echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005589
drh71eb93e2001-09-28 01:34:43 +00005590 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005591 lt_prog_compiler_wl='-Wl,'
5592 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00005593
5594 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00005595 aix*)
5596 # All AIX code is PIC.
5597 if test "$host_cpu" = ia64; then
5598 # AIX 5 now supports IA64 processor
5599 lt_prog_compiler_static='-Bstatic'
5600 fi
drh71eb93e2001-09-28 01:34:43 +00005601 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005602
drh71eb93e2001-09-28 01:34:43 +00005603 amigaos*)
5604 # FIXME: we need at least 68020 code to build shared libraries, but
5605 # adding the `-m68020' flag to GCC prevents building anything better,
5606 # like `-m68040'.
a.rottmann9bc8b932004-02-29 15:18:31 +00005607 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
drh71eb93e2001-09-28 01:34:43 +00005608 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005609
5610 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00005611 # PIC is the default for these OSes.
5612 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005613
5614 mingw* | pw32* | os2*)
5615 # This hack is so that the source file can tell whether it is being
5616 # built for inclusion in a dll (and should export symbols for example).
5617 lt_prog_compiler_pic='-DDLL_EXPORT'
5618 ;;
5619
drh71eb93e2001-09-28 01:34:43 +00005620 darwin* | rhapsody*)
5621 # PIC is the default on this platform
5622 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00005623 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00005624 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005625
5626 msdosdjgpp*)
5627 # Just because we use GCC doesn't mean we suddenly get shared libraries
5628 # on systems that don't support them.
5629 lt_prog_compiler_can_build_shared=no
5630 enable_shared=no
drh71eb93e2001-09-28 01:34:43 +00005631 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005632
drh71eb93e2001-09-28 01:34:43 +00005633 sysv4*MP*)
5634 if test -d /usr/nec; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005635 lt_prog_compiler_pic=-Kconform_pic
drh71eb93e2001-09-28 01:34:43 +00005636 fi
5637 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005638
5639 hpux*)
5640 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5641 # not for PA HP-UX.
5642 case "$host_cpu" in
5643 hppa*64*|ia64*)
5644 # +Z the default
5645 ;;
5646 *)
5647 lt_prog_compiler_pic='-fPIC'
5648 ;;
5649 esac
5650 ;;
5651
drh71eb93e2001-09-28 01:34:43 +00005652 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00005653 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00005654 ;;
5655 esac
5656 else
a.rottmann9bc8b932004-02-29 15:18:31 +00005657 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00005658 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00005659 aix*)
5660 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00005661 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00005662 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00005663 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005664 else
a.rottmann9bc8b932004-02-29 15:18:31 +00005665 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00005666 fi
5667 ;;
5668
a.rottmann9bc8b932004-02-29 15:18:31 +00005669 mingw* | pw32* | os2*)
5670 # This hack is so that the source file can tell whether it is being
5671 # built for inclusion in a dll (and should export symbols for example).
5672 lt_prog_compiler_pic='-DDLL_EXPORT'
5673 ;;
5674
a.rottmann84e63352003-03-24 09:42:16 +00005675 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005676 lt_prog_compiler_wl='-Wl,'
5677 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5678 # not for PA HP-UX.
5679 case "$host_cpu" in
5680 hppa*64*|ia64*)
5681 # +Z the default
5682 ;;
5683 *)
5684 lt_prog_compiler_pic='+Z'
5685 ;;
5686 esac
5687 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5688 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00005689 ;;
5690
5691 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005692 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00005693 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00005694 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00005695 ;;
5696
5697 newsos6)
a.rottmann9bc8b932004-02-29 15:18:31 +00005698 lt_prog_compiler_pic='-KPIC'
5699 lt_prog_compiler_static='-Bstatic'
5700 ;;
5701
5702 linux*)
5703 case $CC in
5704 icc* | ecc*)
5705 lt_prog_compiler_wl='-Wl,'
5706 lt_prog_compiler_pic='-KPIC'
5707 lt_prog_compiler_static='-static'
5708 ;;
5709 ccc*)
5710 lt_prog_compiler_wl='-Wl,'
5711 # All Alpha code is PIC.
5712 lt_prog_compiler_static='-non_shared'
5713 ;;
5714 esac
drh71eb93e2001-09-28 01:34:43 +00005715 ;;
5716
5717 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005718 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00005719 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00005720 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00005721 ;;
5722
5723 sco3.2v5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005724 lt_prog_compiler_pic='-Kpic'
5725 lt_prog_compiler_static='-dn'
drh71eb93e2001-09-28 01:34:43 +00005726 ;;
5727
5728 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005729 lt_prog_compiler_wl='-Wl,'
5730 lt_prog_compiler_pic='-KPIC'
5731 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005732 ;;
5733
5734 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005735 lt_prog_compiler_wl='-Qoption ld '
5736 lt_prog_compiler_pic='-PIC'
5737 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005738 ;;
5739
5740 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005741 lt_prog_compiler_wl='-Wl,'
5742 lt_prog_compiler_pic='-KPIC'
5743 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005744 ;;
5745
5746 sysv4*MP*)
5747 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00005748 lt_prog_compiler_pic='-Kconform_pic'
5749 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005750 fi
5751 ;;
5752
a.rottmann9bc8b932004-02-29 15:18:31 +00005753 uts4*)
5754 lt_prog_compiler_pic='-pic'
5755 lt_prog_compiler_static='-Bstatic'
5756 ;;
5757
drh71eb93e2001-09-28 01:34:43 +00005758 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00005759 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00005760 ;;
5761 esac
5762 fi
5763
a.rottmann9bc8b932004-02-29 15:18:31 +00005764echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5765echo "${ECHO_T}$lt_prog_compiler_pic" >&6
drh71eb93e2001-09-28 01:34:43 +00005766
a.rottmann9bc8b932004-02-29 15:18:31 +00005767#
5768# Check to make sure the PIC flag actually works.
5769#
5770if test -n "$lt_prog_compiler_pic"; then
a.rottmann84e63352003-03-24 09:42:16 +00005771
a.rottmann9bc8b932004-02-29 15:18:31 +00005772echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5773echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5774if test "${lt_prog_compiler_pic_works+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00005775 echo $ECHO_N "(cached) $ECHO_C" >&6
5776else
a.rottmann9bc8b932004-02-29 15:18:31 +00005777 lt_prog_compiler_pic_works=no
5778 ac_outfile=conftest.$ac_objext
5779 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5780 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5781 # Insert the option either (1) after the last *FLAGS variable, or
5782 # (2) before a word containing "conftest.", or (3) at the end.
5783 # Note that $ac_compile itself does not contain backslashes and begins
5784 # with a dollar sign (not a hyphen), so the echo should work correctly.
5785 # The option is referenced via a variable to avoid confusing sed.
5786 lt_compile=`echo "$ac_compile" | $SED \
5787 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5789 -e 's:$: $lt_compiler_flag:'`
drh8e2e2a12006-02-01 01:55:17 +00005790 (eval echo "\"\$as_me:5790: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00005791 (eval "$lt_compile" 2>conftest.err)
5792 ac_status=$?
5793 cat conftest.err >&5
drh8e2e2a12006-02-01 01:55:17 +00005794 echo "$as_me:5794: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005795 if (exit $ac_status) && test -s "$ac_outfile"; then
5796 # The compiler can only warn and ignore the option if not recognized
5797 # So say no if there are warnings
5798 if test ! -s conftest.err; then
5799 lt_prog_compiler_pic_works=yes
5800 fi
5801 fi
5802 $rm conftest*
drh71eb93e2001-09-28 01:34:43 +00005803
a.rottmann9bc8b932004-02-29 15:18:31 +00005804fi
5805echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5806echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
drh71eb93e2001-09-28 01:34:43 +00005807
a.rottmann9bc8b932004-02-29 15:18:31 +00005808if test x"$lt_prog_compiler_pic_works" = xyes; then
5809 case $lt_prog_compiler_pic in
5810 "" | " "*) ;;
5811 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5812 esac
drh71eb93e2001-09-28 01:34:43 +00005813else
a.rottmann9bc8b932004-02-29 15:18:31 +00005814 lt_prog_compiler_pic=
5815 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00005816fi
5817
a.rottmann84e63352003-03-24 09:42:16 +00005818fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005819case "$host_os" in
5820 # For platforms which do not support PIC, -DPIC is meaningless:
5821 *djgpp*)
5822 lt_prog_compiler_pic=
5823 ;;
5824 *)
5825 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5826 ;;
5827esac
a.rottmann84e63352003-03-24 09:42:16 +00005828
a.rottmann84e63352003-03-24 09:42:16 +00005829echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
drh71eb93e2001-09-28 01:34:43 +00005830echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005831if test "${lt_cv_prog_compiler_c_o+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00005832 echo $ECHO_N "(cached) $ECHO_C" >&6
5833else
a.rottmann9bc8b932004-02-29 15:18:31 +00005834 lt_cv_prog_compiler_c_o=no
5835 $rm -r conftest 2>/dev/null
5836 mkdir conftest
5837 cd conftest
5838 mkdir out
5839 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00005840
a.rottmann9bc8b932004-02-29 15:18:31 +00005841 lt_compiler_flag="-o out/conftest2.$ac_objext"
5842 # Insert the option either (1) after the last *FLAGS variable, or
5843 # (2) before a word containing "conftest.", or (3) at the end.
5844 # Note that $ac_compile itself does not contain backslashes and begins
5845 # with a dollar sign (not a hyphen), so the echo should work correctly.
5846 lt_compile=`echo "$ac_compile" | $SED \
5847 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5848 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5849 -e 's:$: $lt_compiler_flag:'`
drh8e2e2a12006-02-01 01:55:17 +00005850 (eval echo "\"\$as_me:5850: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00005851 (eval "$lt_compile" 2>out/conftest.err)
5852 ac_status=$?
5853 cat out/conftest.err >&5
drh8e2e2a12006-02-01 01:55:17 +00005854 echo "$as_me:5854: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005855 if (exit $ac_status) && test -s out/conftest2.$ac_objext
5856 then
5857 # The compiler can only warn and ignore the option if not recognized
5858 # So say no if there are warnings
5859 if test ! -s out/conftest.err; then
5860 lt_cv_prog_compiler_c_o=yes
5861 fi
5862 fi
5863 chmod u+w .
5864 $rm conftest*
5865 # SGI C++ compiler will create directory out/ii_files/ for
5866 # template instantiation
5867 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
5868 $rm out/* && rmdir out
5869 cd ..
5870 rmdir conftest
5871 $rm conftest*
drh71eb93e2001-09-28 01:34:43 +00005872
5873fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005874echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
5875echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
drh71eb93e2001-09-28 01:34:43 +00005876
a.rottmann84e63352003-03-24 09:42:16 +00005877
drh71eb93e2001-09-28 01:34:43 +00005878hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00005879if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00005880 # do not overwrite the value of need_locks provided by the user
a.rottmann84e63352003-03-24 09:42:16 +00005881 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
drh71eb93e2001-09-28 01:34:43 +00005882echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5883 hard_links=yes
5884 $rm conftest*
5885 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5886 touch conftest.a
5887 ln conftest.a conftest.b 2>&5 || hard_links=no
5888 ln conftest.a conftest.b 2>/dev/null && hard_links=no
a.rottmann84e63352003-03-24 09:42:16 +00005889 echo "$as_me:$LINENO: result: $hard_links" >&5
drh71eb93e2001-09-28 01:34:43 +00005890echo "${ECHO_T}$hard_links" >&6
5891 if test "$hard_links" = no; then
a.rottmann84e63352003-03-24 09:42:16 +00005892 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
drh71eb93e2001-09-28 01:34:43 +00005893echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5894 need_locks=warn
5895 fi
5896else
5897 need_locks=no
5898fi
5899
a.rottmann9bc8b932004-02-29 15:18:31 +00005900echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
5901echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
5902
5903 runpath_var=
5904 allow_undefined_flag=
5905 enable_shared_with_static_runtimes=no
5906 archive_cmds=
5907 archive_expsym_cmds=
5908 old_archive_From_new_cmds=
5909 old_archive_from_expsyms_cmds=
5910 export_dynamic_flag_spec=
5911 whole_archive_flag_spec=
5912 thread_safe_flag_spec=
5913 hardcode_libdir_flag_spec=
5914 hardcode_libdir_flag_spec_ld=
5915 hardcode_libdir_separator=
5916 hardcode_direct=no
5917 hardcode_minus_L=no
5918 hardcode_shlibpath_var=unsupported
5919 link_all_deplibs=unknown
5920 hardcode_automatic=no
5921 module_cmds=
5922 module_expsym_cmds=
5923 always_export_symbols=no
5924 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5925 # include_expsyms should be a list of space-separated symbols to be *always*
5926 # included in the symbol list
5927 include_expsyms=
5928 # exclude_expsyms can be an extended regexp of symbols to exclude
5929 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5930 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5931 # as well as any symbol that contains `d'.
5932 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5933 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5934 # platforms (ab)use it in PIC code, but their linkers get confused if
5935 # the symbol is explicitly referenced. Since portable code cannot
5936 # rely on this symbol name, it's probably fine to never include it in
5937 # preloaded symbol tables.
5938 extract_expsyms_cmds=
5939
5940 case $host_os in
5941 cygwin* | mingw* | pw32*)
5942 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5943 # When not using gcc, we currently assume that we are using
5944 # Microsoft Visual C++.
5945 if test "$GCC" != yes; then
5946 with_gnu_ld=no
5947 fi
5948 ;;
5949 openbsd*)
5950 with_gnu_ld=no
5951 ;;
5952 esac
5953
5954 ld_shlibs=yes
5955 if test "$with_gnu_ld" = yes; then
5956 # If archive_cmds runs LD, not CC, wlarc should be empty
5957 wlarc='${wl}'
5958
5959 # See if GNU ld supports shared libraries.
5960 case $host_os in
5961 aix3* | aix4* | aix5*)
5962 # On AIX/PPC, the GNU linker is very broken
5963 if test "$host_cpu" != ia64; then
5964 ld_shlibs=no
5965 cat <<EOF 1>&2
5966
5967*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5968*** to be unable to reliably create shared libraries on AIX.
5969*** Therefore, libtool is disabling shared libraries support. If you
5970*** really care for shared libraries, you may want to modify your PATH
5971*** so that a non-GNU linker is found, and then restart.
5972
5973EOF
5974 fi
5975 ;;
5976
5977 amigaos*)
5978 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)'
5979 hardcode_libdir_flag_spec='-L$libdir'
5980 hardcode_minus_L=yes
5981
5982 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5983 # that the semantics of dynamic libraries on AmigaOS, at least up
5984 # to version 4, is to share data among multiple programs linked
5985 # with the same dynamic library. Since this doesn't match the
5986 # behavior of shared libraries on other platforms, we can't use
5987 # them.
5988 ld_shlibs=no
5989 ;;
5990
5991 beos*)
5992 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5993 allow_undefined_flag=unsupported
5994 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5995 # support --undefined. This deserves some investigation. FIXME
5996 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5997 else
5998 ld_shlibs=no
5999 fi
6000 ;;
6001
6002 cygwin* | mingw* | pw32*)
6003 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6004 # as there is no search path for DLLs.
6005 hardcode_libdir_flag_spec='-L$libdir'
6006 allow_undefined_flag=unsupported
6007 always_export_symbols=no
6008 enable_shared_with_static_runtimes=yes
6009 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6010
6011 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6012 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6013 # If the export-symbols file already is a .def file (1st line
6014 # is EXPORTS), use it as is; otherwise, prepend...
6015 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6016 cp $export_symbols $output_objdir/$soname.def;
6017 else
6018 echo EXPORTS > $output_objdir/$soname.def;
6019 cat $export_symbols >> $output_objdir/$soname.def;
6020 fi~
6021 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6022 else
6023 ld_shlibs=no
6024 fi
6025 ;;
6026
6027 netbsd* | knetbsd*-gnu)
6028 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6029 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6030 wlarc=
6031 else
6032 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6033 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6034 fi
6035 ;;
6036
6037 solaris* | sysv5*)
6038 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6039 ld_shlibs=no
6040 cat <<EOF 1>&2
6041
6042*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6043*** create shared libraries on Solaris systems. Therefore, libtool
6044*** is disabling shared libraries support. We urge you to upgrade GNU
6045*** binutils to release 2.9.1 or newer. Another option is to modify
6046*** your PATH or compiler configuration so that the native linker is
6047*** used, and then restart.
6048
6049EOF
6050 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6051 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6052 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6053 else
6054 ld_shlibs=no
6055 fi
6056 ;;
6057
6058 sunos4*)
6059 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6060 wlarc=
6061 hardcode_direct=yes
6062 hardcode_shlibpath_var=no
6063 ;;
6064
6065 linux*)
6066 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6067 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6068 archive_cmds="$tmp_archive_cmds"
6069 supports_anon_versioning=no
6070 case `$LD -v 2>/dev/null` in
6071 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6072 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6073 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6074 *\ 2.11.*) ;; # other 2.11 versions
6075 *) supports_anon_versioning=yes ;;
6076 esac
6077 if test $supports_anon_versioning = yes; then
6078 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6079cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6080$echo "local: *; };" >> $output_objdir/$libname.ver~
6081 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6082 else
6083 archive_expsym_cmds="$tmp_archive_cmds"
6084 fi
6085 else
6086 ld_shlibs=no
6087 fi
6088 ;;
6089
6090 *)
6091 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6092 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6093 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6094 else
6095 ld_shlibs=no
6096 fi
6097 ;;
6098 esac
6099
6100 if test "$ld_shlibs" = yes; then
6101 runpath_var=LD_RUN_PATH
6102 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6103 export_dynamic_flag_spec='${wl}--export-dynamic'
6104 # ancient GNU ld didn't support --whole-archive et. al.
6105 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6106 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6107 else
6108 whole_archive_flag_spec=
6109 fi
6110 fi
6111 else
6112 # PORTME fill in a description of your system's linker (not GNU ld)
6113 case $host_os in
6114 aix3*)
6115 allow_undefined_flag=unsupported
6116 always_export_symbols=yes
6117 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'
6118 # Note: this linker hardcodes the directories in LIBPATH if there
6119 # are no directories specified by -L.
6120 hardcode_minus_L=yes
6121 if test "$GCC" = yes && test -z "$link_static_flag"; then
6122 # Neither direct hardcoding nor static linking is supported with a
6123 # broken collect2.
6124 hardcode_direct=unsupported
6125 fi
6126 ;;
6127
6128 aix4* | aix5*)
6129 if test "$host_cpu" = ia64; then
6130 # On IA64, the linker does run time linking by default, so we don't
6131 # have to do anything special.
6132 aix_use_runtimelinking=no
6133 exp_sym_flag='-Bexport'
6134 no_entry_flag=""
6135 else
6136 # If we're using GNU nm, then we don't want the "-C" option.
6137 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6138 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6139 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'
6140 else
6141 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'
6142 fi
6143 aix_use_runtimelinking=no
6144
6145 # Test if we are trying to use run time linking or normal
6146 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6147 # need to do runtime linking.
6148 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6149 for ld_flag in $LDFLAGS; do
6150 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6151 aix_use_runtimelinking=yes
6152 break
6153 fi
6154 done
6155 esac
6156
6157 exp_sym_flag='-bexport'
6158 no_entry_flag='-bnoentry'
6159 fi
6160
6161 # When large executables or shared objects are built, AIX ld can
6162 # have problems creating the table of contents. If linking a library
6163 # or program results in "error TOC overflow" add -mminimal-toc to
6164 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6165 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6166
6167 archive_cmds=''
6168 hardcode_direct=yes
6169 hardcode_libdir_separator=':'
6170 link_all_deplibs=yes
6171
6172 if test "$GCC" = yes; then
6173 case $host_os in aix4.012|aix4.012.*)
6174 # We only want to do this on AIX 4.2 and lower, the check
6175 # below for broken collect2 doesn't work under 4.3+
6176 collect2name=`${CC} -print-prog-name=collect2`
6177 if test -f "$collect2name" && \
6178 strings "$collect2name" | grep resolve_lib_name >/dev/null
6179 then
6180 # We have reworked collect2
6181 hardcode_direct=yes
6182 else
6183 # We have old collect2
6184 hardcode_direct=unsupported
6185 # It fails to find uninstalled libraries when the uninstalled
6186 # path is not listed in the libpath. Setting hardcode_minus_L
6187 # to unsupported forces relinking
6188 hardcode_minus_L=yes
6189 hardcode_libdir_flag_spec='-L$libdir'
6190 hardcode_libdir_separator=
6191 fi
6192 esac
6193 shared_flag='-shared'
6194 else
6195 # not using gcc
6196 if test "$host_cpu" = ia64; then
6197 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6198 # chokes on -Wl,-G. The following line is correct:
6199 shared_flag='-G'
6200 else
6201 if test "$aix_use_runtimelinking" = yes; then
6202 shared_flag='${wl}-G'
6203 else
6204 shared_flag='${wl}-bM:SRE'
6205 fi
6206 fi
6207 fi
6208
6209 # It seems that -bexpall does not export symbols beginning with
6210 # underscore (_), so it is better to generate a list of symbols to export.
6211 always_export_symbols=yes
6212 if test "$aix_use_runtimelinking" = yes; then
6213 # Warning - without using the other runtime loading flags (-brtl),
6214 # -berok will link without error, but may produce a broken library.
6215 allow_undefined_flag='-berok'
6216 # Determine the default libpath from the value encoded in an empty executable.
6217 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006218/* confdefs.h. */
6219_ACEOF
6220cat confdefs.h >>conftest.$ac_ext
6221cat >>conftest.$ac_ext <<_ACEOF
6222/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00006223
a.rottmann84e63352003-03-24 09:42:16 +00006224int
6225main ()
6226{
a.rottmann9bc8b932004-02-29 15:18:31 +00006227
a.rottmann84e63352003-03-24 09:42:16 +00006228 ;
6229 return 0;
6230}
6231_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006232rm -f conftest.$ac_objext conftest$ac_exeext
6233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6234 (eval $ac_link) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00006235 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00006236 grep -v '^ *+' conftest.er1 >conftest.err
6237 rm -f conftest.er1
6238 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00006239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00006241 { ac_try='test -z "$ac_c_werror_flag"
6242 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00006243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244 (eval $ac_try) 2>&5
6245 ac_status=$?
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }; } &&
a.rottmann9bc8b932004-02-29 15:18:31 +00006248 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00006249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250 (eval $ac_try) 2>&5
6251 ac_status=$?
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +00006254
a.rottmann9bc8b932004-02-29 15:18:31 +00006255aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6256}'`
6257# Check for a 64-bit object if we didn't find anything.
6258if 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; }
6259}'`; fi
a.rottmann84e63352003-03-24 09:42:16 +00006260else
6261 echo "$as_me: failed program was:" >&5
6262sed 's/^/| /' conftest.$ac_ext >&5
6263
6264fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006265rm -f conftest.err conftest.$ac_objext \
6266 conftest$ac_exeext conftest.$ac_ext
6267if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00006268
a.rottmann9bc8b932004-02-29 15:18:31 +00006269 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6270 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6271 else
6272 if test "$host_cpu" = ia64; then
6273 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6274 allow_undefined_flag="-z nodefs"
6275 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6276 else
6277 # Determine the default libpath from the value encoded in an empty executable.
6278 cat >conftest.$ac_ext <<_ACEOF
6279/* confdefs.h. */
6280_ACEOF
6281cat confdefs.h >>conftest.$ac_ext
6282cat >>conftest.$ac_ext <<_ACEOF
6283/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00006284
a.rottmann9bc8b932004-02-29 15:18:31 +00006285int
6286main ()
6287{
a.rottmann84e63352003-03-24 09:42:16 +00006288
a.rottmann9bc8b932004-02-29 15:18:31 +00006289 ;
6290 return 0;
6291}
6292_ACEOF
6293rm -f conftest.$ac_objext conftest$ac_exeext
6294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6295 (eval $ac_link) 2>conftest.er1
6296 ac_status=$?
6297 grep -v '^ *+' conftest.er1 >conftest.err
6298 rm -f conftest.er1
6299 cat conftest.err >&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00006302 { ac_try='test -z "$ac_c_werror_flag"
6303 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00006304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305 (eval $ac_try) 2>&5
6306 ac_status=$?
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }; } &&
6309 { ac_try='test -s conftest$ac_exeext'
6310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311 (eval $ac_try) 2>&5
6312 ac_status=$?
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +00006315
a.rottmann9bc8b932004-02-29 15:18:31 +00006316aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6317}'`
6318# Check for a 64-bit object if we didn't find anything.
6319if 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; }
6320}'`; fi
a.rottmann84e63352003-03-24 09:42:16 +00006321else
a.rottmann9bc8b932004-02-29 15:18:31 +00006322 echo "$as_me: failed program was:" >&5
6323sed 's/^/| /' conftest.$ac_ext >&5
a.rottmann84e63352003-03-24 09:42:16 +00006324
a.rottmann9bc8b932004-02-29 15:18:31 +00006325fi
6326rm -f conftest.err conftest.$ac_objext \
6327 conftest$ac_exeext conftest.$ac_ext
6328if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00006329
a.rottmann9bc8b932004-02-29 15:18:31 +00006330 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6331 # Warning - without using the other run time loading flags,
6332 # -berok will link without error, but may produce a broken library.
6333 no_undefined_flag=' ${wl}-bernotok'
6334 allow_undefined_flag=' ${wl}-berok'
6335 # -bexpall does not export symbols beginning with underscore (_)
6336 always_export_symbols=yes
6337 # Exported symbols can be pulled into shared objects from archives
6338 whole_archive_flag_spec=' '
6339 archive_cmds_need_lc=yes
6340 # This is similar to how AIX traditionally builds it's shared libraries.
6341 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
a.rottmann84e63352003-03-24 09:42:16 +00006342 fi
6343 fi
a.rottmann84e63352003-03-24 09:42:16 +00006344 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006345
6346 amigaos*)
6347 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)'
6348 hardcode_libdir_flag_spec='-L$libdir'
6349 hardcode_minus_L=yes
6350 # see comment about different semantics on the GNU ld section
6351 ld_shlibs=no
a.rottmann84e63352003-03-24 09:42:16 +00006352 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006353
a.rottmann9bc8b932004-02-29 15:18:31 +00006354 bsdi4*)
6355 export_dynamic_flag_spec=-rdynamic
6356 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006357
a.rottmann9bc8b932004-02-29 15:18:31 +00006358 cygwin* | mingw* | pw32*)
6359 # When not using gcc, we currently assume that we are using
6360 # Microsoft Visual C++.
6361 # hardcode_libdir_flag_spec is actually meaningless, as there is
6362 # no search path for DLLs.
6363 hardcode_libdir_flag_spec=' '
6364 allow_undefined_flag=unsupported
6365 # Tell ltmain to make .lib files, not .a files.
6366 libext=lib
6367 # Tell ltmain to make .dll files, not .so files.
6368 shrext=".dll"
6369 # FIXME: Setting linknames here is a bad hack.
6370 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6371 # The linker will automatically build a .lib file if we build a DLL.
6372 old_archive_From_new_cmds='true'
6373 # FIXME: Should let the user specify the lib program.
6374 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6375 fix_srcfile_path='`cygpath -w "$srcfile"`'
6376 enable_shared_with_static_runtimes=yes
6377 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006378
a.rottmann9bc8b932004-02-29 15:18:31 +00006379 darwin* | rhapsody*)
6380 if test "$GXX" = yes ; then
6381 archive_cmds_need_lc=no
a.rottmann84e63352003-03-24 09:42:16 +00006382 case "$host_os" in
a.rottmann9bc8b932004-02-29 15:18:31 +00006383 rhapsody* | darwin1.[012])
6384 allow_undefined_flag='-undefined suppress'
6385 ;;
6386 *) # Darwin 1.3 on
6387 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6388 allow_undefined_flag='-flat_namespace -undefined suppress'
6389 else
6390 case ${MACOSX_DEPLOYMENT_TARGET} in
6391 10.[012])
6392 allow_undefined_flag='-flat_namespace -undefined suppress'
6393 ;;
6394 10.*)
6395 allow_undefined_flag='-undefined dynamic_lookup'
6396 ;;
6397 esac
6398 fi
a.rottmann84e63352003-03-24 09:42:16 +00006399 ;;
6400 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006401 lt_int_apple_cc_single_mod=no
6402 output_verbose_link_cmd='echo'
6403 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6404 lt_int_apple_cc_single_mod=yes
6405 fi
6406 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6407 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6408 else
6409 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6410 fi
6411 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6412 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6413 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6414 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6415 else
6416 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6417 fi
6418 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}'
6419 hardcode_direct=no
6420 hardcode_automatic=yes
6421 hardcode_shlibpath_var=unsupported
6422 whole_archive_flag_spec='-all_load $convenience'
6423 link_all_deplibs=yes
a.rottmann84e63352003-03-24 09:42:16 +00006424 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006425 ld_shlibs=no
a.rottmann84e63352003-03-24 09:42:16 +00006426 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006427 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006428
a.rottmann9bc8b932004-02-29 15:18:31 +00006429 dgux*)
6430 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6431 hardcode_libdir_flag_spec='-L$libdir'
6432 hardcode_shlibpath_var=no
6433 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006434
a.rottmann9bc8b932004-02-29 15:18:31 +00006435 freebsd1*)
6436 ld_shlibs=no
6437 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006438
a.rottmann9bc8b932004-02-29 15:18:31 +00006439 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6440 # support. Future versions do this automatically, but an explicit c++rt0.o
6441 # does not break anything, and helps significantly (at the cost of a little
6442 # extra space).
6443 freebsd2.2*)
6444 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6445 hardcode_libdir_flag_spec='-R$libdir'
6446 hardcode_direct=yes
6447 hardcode_shlibpath_var=no
6448 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006449
a.rottmann9bc8b932004-02-29 15:18:31 +00006450 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6451 freebsd2*)
6452 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6453 hardcode_direct=yes
6454 hardcode_minus_L=yes
6455 hardcode_shlibpath_var=no
6456 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006457
a.rottmann9bc8b932004-02-29 15:18:31 +00006458 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6459 freebsd* | kfreebsd*-gnu)
6460 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6461 hardcode_libdir_flag_spec='-R$libdir'
6462 hardcode_direct=yes
6463 hardcode_shlibpath_var=no
6464 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006465
a.rottmann9bc8b932004-02-29 15:18:31 +00006466 hpux9*)
6467 if test "$GCC" = yes; then
6468 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'
6469 else
6470 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'
6471 fi
6472 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6473 hardcode_libdir_separator=:
6474 hardcode_direct=yes
6475
6476 # hardcode_minus_L: Not really in the search PATH,
6477 # but as the default location of the library.
6478 hardcode_minus_L=yes
6479 export_dynamic_flag_spec='${wl}-E'
6480 ;;
6481
6482 hpux10* | hpux11*)
6483 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6484 case "$host_cpu" in
6485 hppa*64*|ia64*)
6486 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6487 ;;
6488 *)
6489 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6490 ;;
6491 esac
6492 else
6493 case "$host_cpu" in
6494 hppa*64*|ia64*)
6495 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6496 ;;
6497 *)
6498 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6499 ;;
6500 esac
6501 fi
6502 if test "$with_gnu_ld" = no; then
6503 case "$host_cpu" in
6504 hppa*64*)
6505 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6506 hardcode_libdir_flag_spec_ld='+b $libdir'
6507 hardcode_libdir_separator=:
6508 hardcode_direct=no
6509 hardcode_shlibpath_var=no
6510 ;;
6511 ia64*)
6512 hardcode_libdir_flag_spec='-L$libdir'
6513 hardcode_direct=no
6514 hardcode_shlibpath_var=no
6515
6516 # hardcode_minus_L: Not really in the search PATH,
6517 # but as the default location of the library.
6518 hardcode_minus_L=yes
6519 ;;
6520 *)
6521 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6522 hardcode_libdir_separator=:
6523 hardcode_direct=yes
6524 export_dynamic_flag_spec='${wl}-E'
6525
6526 # hardcode_minus_L: Not really in the search PATH,
6527 # but as the default location of the library.
6528 hardcode_minus_L=yes
6529 ;;
6530 esac
6531 fi
6532 ;;
6533
6534 irix5* | irix6* | nonstopux*)
6535 if test "$GCC" = yes; then
6536 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'
6537 else
6538 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'
6539 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6540 fi
6541 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6542 hardcode_libdir_separator=:
6543 link_all_deplibs=yes
6544 ;;
6545
6546 netbsd* | knetbsd*-gnu)
6547 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6548 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6549 else
6550 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6551 fi
6552 hardcode_libdir_flag_spec='-R$libdir'
6553 hardcode_direct=yes
6554 hardcode_shlibpath_var=no
6555 ;;
6556
6557 newsos6)
6558 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6559 hardcode_direct=yes
6560 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6561 hardcode_libdir_separator=:
6562 hardcode_shlibpath_var=no
6563 ;;
6564
6565 openbsd*)
6566 hardcode_direct=yes
6567 hardcode_shlibpath_var=no
6568 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6569 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6570 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6571 export_dynamic_flag_spec='${wl}-E'
6572 else
6573 case $host_os in
6574 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6575 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6576 hardcode_libdir_flag_spec='-R$libdir'
6577 ;;
6578 *)
6579 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6580 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6581 ;;
6582 esac
6583 fi
6584 ;;
6585
6586 os2*)
6587 hardcode_libdir_flag_spec='-L$libdir'
6588 hardcode_minus_L=yes
6589 allow_undefined_flag=unsupported
6590 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'
6591 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6592 ;;
6593
6594 osf3*)
6595 if test "$GCC" = yes; then
6596 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6597 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'
6598 else
6599 allow_undefined_flag=' -expect_unresolved \*'
6600 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'
6601 fi
6602 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6603 hardcode_libdir_separator=:
6604 ;;
6605
6606 osf4* | osf5*) # as osf3* with the addition of -msym flag
6607 if test "$GCC" = yes; then
6608 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6609 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'
6610 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6611 else
6612 allow_undefined_flag=' -expect_unresolved \*'
6613 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'
6614 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6615 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6616
6617 # Both c and cxx compiler support -rpath directly
6618 hardcode_libdir_flag_spec='-rpath $libdir'
6619 fi
6620 hardcode_libdir_separator=:
6621 ;;
6622
6623 sco3.2v5*)
a.rottmann84e63352003-03-24 09:42:16 +00006624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6625 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006626 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann84e63352003-03-24 09:42:16 +00006627 runpath_var=LD_RUN_PATH
6628 hardcode_runpath_var=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006629 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006630
a.rottmann9bc8b932004-02-29 15:18:31 +00006631 solaris*)
6632 no_undefined_flag=' -z text'
6633 if test "$GCC" = yes; then
6634 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6635 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6636 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6637 else
6638 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6639 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6640 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6641 fi
6642 hardcode_libdir_flag_spec='-R$libdir'
6643 hardcode_shlibpath_var=no
6644 case $host_os in
6645 solaris2.[0-5] | solaris2.[0-5].*) ;;
6646 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6647 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6648 esac
6649 link_all_deplibs=yes
6650 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006651
a.rottmann9bc8b932004-02-29 15:18:31 +00006652 sunos4*)
6653 if test "x$host_vendor" = xsequent; then
6654 # Use $CC to link under sequent, because it throws in some extra .o
6655 # files that make .init and .fini sections work.
6656 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6657 else
6658 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6659 fi
6660 hardcode_libdir_flag_spec='-L$libdir'
6661 hardcode_direct=yes
6662 hardcode_minus_L=yes
6663 hardcode_shlibpath_var=no
6664 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006665
a.rottmann9bc8b932004-02-29 15:18:31 +00006666 sysv4)
6667 case $host_vendor in
6668 sni)
6669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6670 hardcode_direct=yes # is this really true???
6671 ;;
6672 siemens)
6673 ## LD is ld it makes a PLAMLIB
6674 ## CC just makes a GrossModule.
6675 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6676 reload_cmds='$CC -r -o $output$reload_objs'
6677 hardcode_direct=no
6678 ;;
6679 motorola)
6680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6681 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6682 ;;
6683 esac
6684 runpath_var='LD_RUN_PATH'
6685 hardcode_shlibpath_var=no
6686 ;;
6687
6688 sysv4.3*)
6689 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6690 hardcode_shlibpath_var=no
6691 export_dynamic_flag_spec='-Bexport'
6692 ;;
6693
6694 sysv4*MP*)
6695 if test -d /usr/nec; then
6696 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6697 hardcode_shlibpath_var=no
6698 runpath_var=LD_RUN_PATH
6699 hardcode_runpath_var=yes
6700 ld_shlibs=yes
6701 fi
6702 ;;
6703
6704 sysv4.2uw2*)
6705 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6706 hardcode_direct=yes
6707 hardcode_minus_L=no
6708 hardcode_shlibpath_var=no
6709 hardcode_runpath_var=yes
6710 runpath_var=LD_RUN_PATH
6711 ;;
6712
6713 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6714 no_undefined_flag='${wl}-z ${wl}text'
6715 if test "$GCC" = yes; then
6716 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6717 else
6718 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6719 fi
6720 runpath_var='LD_RUN_PATH'
6721 hardcode_shlibpath_var=no
6722 ;;
6723
6724 sysv5*)
6725 no_undefined_flag=' -z text'
6726 # $CC -shared without GNU ld will not create a library from C++
6727 # object files and a static libstdc++, better avoid it by now
6728 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6729 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6730 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6731 hardcode_libdir_flag_spec=
6732 hardcode_shlibpath_var=no
6733 runpath_var='LD_RUN_PATH'
6734 ;;
6735
6736 uts4*)
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 ;;
6741
6742 *)
6743 ld_shlibs=no
6744 ;;
6745 esac
6746 fi
6747
a.rottmann84e63352003-03-24 09:42:16 +00006748echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6749echo "${ECHO_T}$ld_shlibs" >&6
6750test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00006751
a.rottmann9bc8b932004-02-29 15:18:31 +00006752variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6753if test "$GCC" = yes; then
6754 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6755fi
drh71eb93e2001-09-28 01:34:43 +00006756
a.rottmann9bc8b932004-02-29 15:18:31 +00006757#
6758# Do we need to explicitly link libc?
6759#
6760case "x$archive_cmds_need_lc" in
6761x|xyes)
6762 # Assume -lc should be added
6763 archive_cmds_need_lc=yes
6764
6765 if test "$enable_shared" = yes && test "$GCC" = yes; then
6766 case $archive_cmds in
6767 *'~'*)
6768 # FIXME: we may have to deal with multi-command sequences.
6769 ;;
6770 '$CC '*)
6771 # Test whether the compiler implicitly links with -lc since on some
6772 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6773 # to ld, don't add -lc before -lgcc.
6774 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6775echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6776 $rm conftest*
6777 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6778
6779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6780 (eval $ac_compile) 2>&5
6781 ac_status=$?
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); } 2>conftest.err; then
6784 soname=conftest
6785 lib=conftest
6786 libobjs=conftest.$ac_objext
6787 deplibs=
6788 wl=$lt_prog_compiler_wl
6789 compiler_flags=-v
6790 linker_flags=-v
6791 verstring=
6792 output_objdir=.
6793 libname=conftest
6794 lt_save_allow_undefined_flag=$allow_undefined_flag
6795 allow_undefined_flag=
6796 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6797 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6798 ac_status=$?
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); }
6801 then
6802 archive_cmds_need_lc=no
6803 else
6804 archive_cmds_need_lc=yes
6805 fi
6806 allow_undefined_flag=$lt_save_allow_undefined_flag
6807 else
6808 cat conftest.err 1>&5
6809 fi
6810 $rm conftest*
6811 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6812echo "${ECHO_T}$archive_cmds_need_lc" >&6
6813 ;;
6814 esac
drh71eb93e2001-09-28 01:34:43 +00006815 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006816 ;;
6817esac
drh71eb93e2001-09-28 01:34:43 +00006818
a.rottmann84e63352003-03-24 09:42:16 +00006819echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
drh71eb93e2001-09-28 01:34:43 +00006820echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6821library_names_spec=
6822libname_spec='lib$name'
6823soname_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00006824shrext=".so"
drh71eb93e2001-09-28 01:34:43 +00006825postinstall_cmds=
6826postuninstall_cmds=
6827finish_cmds=
6828finish_eval=
6829shlibpath_var=
6830shlibpath_overrides_runpath=unknown
6831version_type=none
6832dynamic_linker="$host_os ld.so"
6833sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00006834if test "$GCC" = yes; then
6835 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6836 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6837 # if the path contains ";" then we assume it to be the separator
6838 # otherwise default to the standard path separator (i.e. ":") - it is
6839 # assumed that no part of a normal pathname contains ";" but that should
6840 # okay in the real world where ";" in dirpaths is itself problematic.
6841 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6842 else
6843 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6844 fi
6845else
6846 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6847fi
6848need_lib_prefix=unknown
6849hardcode_into_libs=no
6850
6851# when you set need_version to no, make sure it does not cause -set_version
6852# flags to be left without arguments
6853need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00006854
6855case $host_os in
6856aix3*)
6857 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00006858 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00006859 shlibpath_var=LIBPATH
6860
a.rottmann9bc8b932004-02-29 15:18:31 +00006861 # AIX 3 has no versioning support, so we append a major version to the name.
6862 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00006863 ;;
6864
6865aix4* | aix5*)
6866 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00006867 need_lib_prefix=no
6868 need_version=no
6869 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00006870 if test "$host_cpu" = ia64; then
6871 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00006872 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00006873 shlibpath_var=LD_LIBRARY_PATH
6874 else
6875 # With GCC up to 2.95.x, collect2 would create an import file
6876 # for dependence libraries. The import file would start with
6877 # the line `#! .'. This would cause the generated library to
6878 # depend on `.', always an invalid library. This was fixed in
6879 # development snapshots of GCC prior to 3.0.
6880 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00006881 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006882 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6883 echo ' yes '
6884 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6885 :
6886 else
6887 can_build_shared=no
6888 fi
6889 ;;
drh71eb93e2001-09-28 01:34:43 +00006890 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006891 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6892 # soname into executable. Probably we can add versioning support to
6893 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00006894 if test "$aix_use_runtimelinking" = yes; then
6895 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6896 # instead of lib<name>.a to let people know that these are not
6897 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00006898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00006899 else
6900 # We preserve .a as extension for shared libraries through AIX4.2
6901 # and later when we are not doing run time linking.
6902 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00006903 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00006904 fi
6905 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00006906 fi
6907 ;;
6908
6909amigaos*)
6910 library_names_spec='$libname.ixlibrary $libname.a'
6911 # Create ${libname}_ixlibrary.a entries in /sys/libs.
a.rottmann9bc8b932004-02-29 15:18:31 +00006912 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 +00006913 ;;
6914
6915beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006916 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00006917 dynamic_linker="$host_os ld.so"
6918 shlibpath_var=LIBRARY_PATH
6919 ;;
6920
6921bsdi4*)
6922 version_type=linux
6923 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6925 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00006926 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6927 shlibpath_var=LD_LIBRARY_PATH
6928 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6929 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6930 # the default ld.so.conf also contains /usr/contrib/lib and
6931 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6932 # libtool to hard-code these into programs
6933 ;;
6934
6935cygwin* | mingw* | pw32*)
6936 version_type=windows
a.rottmann9bc8b932004-02-29 15:18:31 +00006937 shrext=".dll"
drh71eb93e2001-09-28 01:34:43 +00006938 need_version=no
6939 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006940
drh71eb93e2001-09-28 01:34:43 +00006941 case $GCC,$host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006942 yes,cygwin* | yes,mingw* | yes,pw32*)
drh71eb93e2001-09-28 01:34:43 +00006943 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00006944 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6945 postinstall_cmds='base_file=`basename \${file}`~
6946 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00006947 dldir=$destdir/`dirname \$dlpath`~
6948 test -d \$dldir || mkdir -p \$dldir~
a.rottmann9bc8b932004-02-29 15:18:31 +00006949 $install_prog $dir/$dlname \$dldir/$dlname'
6950 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00006951 dlpath=$dir/\$dldll~
6952 $rm \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00006953 shlibpath_overrides_runpath=yes
6954
6955 case $host_os in
6956 cygwin*)
6957 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6958 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6959 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6960 ;;
6961 mingw*)
6962 # MinGW DLLs use traditional 'lib' prefix
6963 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6964 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6965 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6966 # It is most probably a Windows format PATH printed by
6967 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6968 # path with ; separators, and with drive letters. We can handle the
6969 # drive letters (cygwin fileutils understands them), so leave them,
6970 # especially as we might pass files found there to a mingw objdump,
6971 # which wouldn't understand a cygwinified path. Ahh.
6972 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6973 else
6974 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6975 fi
6976 ;;
6977 pw32*)
6978 # pw32 DLLs use 'pw' prefix rather than 'lib'
6979 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6980 ;;
6981 esac
drh71eb93e2001-09-28 01:34:43 +00006982 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006983
drh71eb93e2001-09-28 01:34:43 +00006984 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006985 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00006986 ;;
6987 esac
6988 dynamic_linker='Win32 ld.exe'
6989 # FIXME: first we should search . and the directory the executable is in
6990 shlibpath_var=PATH
6991 ;;
6992
6993darwin* | rhapsody*)
6994 dynamic_linker="$host_os dyld"
6995 version_type=darwin
6996 need_lib_prefix=no
6997 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006998 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6999 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00007000 shlibpath_overrides_runpath=yes
7001 shlibpath_var=DYLD_LIBRARY_PATH
a.rottmann9bc8b932004-02-29 15:18:31 +00007002 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7003 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7004 if test "$GCC" = yes; then
7005 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"`
7006 else
7007 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7008 fi
7009 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7010 ;;
7011
7012dgux*)
7013 version_type=linux
7014 need_lib_prefix=no
7015 need_version=no
7016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7017 soname_spec='${libname}${release}${shared_ext}$major'
7018 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00007019 ;;
7020
a.rottmann84e63352003-03-24 09:42:16 +00007021freebsd1*)
7022 dynamic_linker=no
7023 ;;
7024
a.rottmann9bc8b932004-02-29 15:18:31 +00007025kfreebsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00007026 version_type=linux
7027 need_lib_prefix=no
7028 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7030 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007031 shlibpath_var=LD_LIBRARY_PATH
a.rottmann84e63352003-03-24 09:42:16 +00007032 shlibpath_overrides_runpath=no
7033 hardcode_into_libs=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007034 dynamic_linker='GNU ld.so'
drh71eb93e2001-09-28 01:34:43 +00007035 ;;
7036
7037freebsd*)
7038 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7039 version_type=freebsd-$objformat
7040 case $version_type in
7041 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007043 need_version=no
7044 need_lib_prefix=no
7045 ;;
7046 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007047 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00007048 need_version=yes
7049 ;;
7050 esac
7051 shlibpath_var=LD_LIBRARY_PATH
7052 case $host_os in
7053 freebsd2*)
7054 shlibpath_overrides_runpath=yes
7055 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007056 freebsd3.01* | freebsdelf3.01*)
7057 shlibpath_overrides_runpath=yes
7058 hardcode_into_libs=yes
7059 ;;
7060 *) # from 3.2 on
drh71eb93e2001-09-28 01:34:43 +00007061 shlibpath_overrides_runpath=no
7062 hardcode_into_libs=yes
7063 ;;
7064 esac
7065 ;;
7066
7067gnu*)
7068 version_type=linux
7069 need_lib_prefix=no
7070 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7072 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007073 shlibpath_var=LD_LIBRARY_PATH
7074 hardcode_into_libs=yes
7075 ;;
7076
7077hpux9* | hpux10* | hpux11*)
7078 # Give a soname corresponding to the major version so that dld.sl refuses to
7079 # link against other versions.
7080 version_type=sunos
7081 need_lib_prefix=no
7082 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007083 case "$host_cpu" in
7084 ia64*)
7085 shrext='.so'
7086 hardcode_into_libs=yes
7087 dynamic_linker="$host_os dld.so"
7088 shlibpath_var=LD_LIBRARY_PATH
7089 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7091 soname_spec='${libname}${release}${shared_ext}$major'
7092 if test "X$HPUX_IA64_MODE" = X32; then
7093 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7094 else
7095 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7096 fi
7097 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7098 ;;
7099 hppa*64*)
7100 shrext='.sl'
7101 hardcode_into_libs=yes
7102 dynamic_linker="$host_os dld.sl"
7103 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7104 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7106 soname_spec='${libname}${release}${shared_ext}$major'
7107 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7108 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7109 ;;
7110 *)
7111 shrext='.sl'
7112 dynamic_linker="$host_os dld.sl"
7113 shlibpath_var=SHLIB_PATH
7114 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7116 soname_spec='${libname}${release}${shared_ext}$major'
7117 ;;
7118 esac
drh71eb93e2001-09-28 01:34:43 +00007119 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7120 postinstall_cmds='chmod 555 $lib'
7121 ;;
7122
a.rottmann84e63352003-03-24 09:42:16 +00007123irix5* | irix6* | nonstopux*)
7124 case $host_os in
7125 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007126 *)
7127 if test "$lt_cv_prog_gnu_ld" = yes; then
7128 version_type=linux
7129 else
7130 version_type=irix
7131 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00007132 esac
drh71eb93e2001-09-28 01:34:43 +00007133 need_lib_prefix=no
7134 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007135 soname_spec='${libname}${release}${shared_ext}$major'
7136 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 +00007137 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00007138 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00007139 libsuff= shlibsuff=
7140 ;;
7141 *)
7142 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00007143 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7144 libsuff= shlibsuff= libmagic=32-bit;;
7145 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7146 libsuff=32 shlibsuff=N32 libmagic=N32;;
7147 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7148 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00007149 *) libsuff= shlibsuff= libmagic=never-match;;
7150 esac
7151 ;;
7152 esac
7153 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7154 shlibpath_overrides_runpath=no
7155 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7156 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00007157 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00007158 ;;
7159
7160# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00007161linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00007162 dynamic_linker=no
7163 ;;
7164
7165# This must be Linux ELF.
a.rottmann9bc8b932004-02-29 15:18:31 +00007166linux*)
drh71eb93e2001-09-28 01:34:43 +00007167 version_type=linux
7168 need_lib_prefix=no
7169 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7171 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007172 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7173 shlibpath_var=LD_LIBRARY_PATH
7174 shlibpath_overrides_runpath=no
7175 # This implies no fast_install, which is unacceptable.
7176 # Some rework will be needed to allow for fast_install
7177 # before this can be enabled.
7178 hardcode_into_libs=yes
7179
a.rottmann9bc8b932004-02-29 15:18:31 +00007180 # Append ld.so.conf contents to the search path
7181 if test -f /etc/ld.so.conf; then
7182 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
7183 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
7184 fi
7185
drh71eb93e2001-09-28 01:34:43 +00007186 # We used to test for /lib/ld.so.1 and disable shared libraries on
7187 # powerpc, because MkLinux only supported shared libraries with the
7188 # GNU dynamic linker. Since this was broken with cross compilers,
7189 # most powerpc-linux boxes support dynamic linking these days and
7190 # people can always --disable-shared, the test was removed, and we
7191 # assume the GNU/Linux dynamic linker is in use.
7192 dynamic_linker='GNU/Linux ld.so'
7193 ;;
7194
a.rottmann9bc8b932004-02-29 15:18:31 +00007195knetbsd*-gnu)
7196 version_type=linux
7197 need_lib_prefix=no
7198 need_version=no
7199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7200 soname_spec='${libname}${release}${shared_ext}$major'
7201 shlibpath_var=LD_LIBRARY_PATH
7202 shlibpath_overrides_runpath=no
7203 hardcode_into_libs=yes
7204 dynamic_linker='GNU ld.so'
7205 ;;
7206
drh71eb93e2001-09-28 01:34:43 +00007207netbsd*)
7208 version_type=sunos
7209 need_lib_prefix=no
7210 need_version=no
7211 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00007213 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7214 dynamic_linker='NetBSD (a.out) ld.so'
7215 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7217 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007218 dynamic_linker='NetBSD ld.elf_so'
7219 fi
7220 shlibpath_var=LD_LIBRARY_PATH
7221 shlibpath_overrides_runpath=yes
7222 hardcode_into_libs=yes
7223 ;;
7224
7225newsos6)
7226 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00007227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7228 shlibpath_var=LD_LIBRARY_PATH
7229 shlibpath_overrides_runpath=yes
7230 ;;
7231
7232nto-qnx*)
7233 version_type=linux
7234 need_lib_prefix=no
7235 need_version=no
7236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7237 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007238 shlibpath_var=LD_LIBRARY_PATH
7239 shlibpath_overrides_runpath=yes
7240 ;;
7241
drh71eb93e2001-09-28 01:34:43 +00007242openbsd*)
7243 version_type=sunos
a.rottmann84e63352003-03-24 09:42:16 +00007244 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007245 need_version=yes
7246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7247 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7248 shlibpath_var=LD_LIBRARY_PATH
a.rottmann84e63352003-03-24 09:42:16 +00007249 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 +00007250 case $host_os in
7251 openbsd2.[89] | openbsd2.[89].*)
7252 shlibpath_overrides_runpath=no
7253 ;;
7254 *)
7255 shlibpath_overrides_runpath=yes
7256 ;;
7257 esac
a.rottmann84e63352003-03-24 09:42:16 +00007258 else
7259 shlibpath_overrides_runpath=yes
7260 fi
drh71eb93e2001-09-28 01:34:43 +00007261 ;;
7262
7263os2*)
7264 libname_spec='$name'
a.rottmann9bc8b932004-02-29 15:18:31 +00007265 shrext=".dll"
drh71eb93e2001-09-28 01:34:43 +00007266 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007267 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00007268 dynamic_linker='OS/2 ld.exe'
7269 shlibpath_var=LIBPATH
7270 ;;
7271
7272osf3* | osf4* | osf5*)
7273 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00007274 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007275 need_version=no
7276 soname_spec='${libname}${release}${shared_ext}$major'
7277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007278 shlibpath_var=LD_LIBRARY_PATH
7279 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7280 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7281 ;;
7282
7283sco3.2v5*)
7284 version_type=osf
a.rottmann9bc8b932004-02-29 15:18:31 +00007285 soname_spec='${libname}${release}${shared_ext}$major'
7286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007287 shlibpath_var=LD_LIBRARY_PATH
7288 ;;
7289
7290solaris*)
7291 version_type=linux
7292 need_lib_prefix=no
7293 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7295 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007296 shlibpath_var=LD_LIBRARY_PATH
7297 shlibpath_overrides_runpath=yes
7298 hardcode_into_libs=yes
7299 # ldd complains unless libraries are executable
7300 postinstall_cmds='chmod +x $lib'
7301 ;;
7302
7303sunos4*)
7304 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00007305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00007306 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7307 shlibpath_var=LD_LIBRARY_PATH
7308 shlibpath_overrides_runpath=yes
7309 if test "$with_gnu_ld" = yes; then
7310 need_lib_prefix=no
7311 fi
7312 need_version=yes
7313 ;;
7314
7315sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7316 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00007317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7318 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007319 shlibpath_var=LD_LIBRARY_PATH
7320 case $host_vendor in
7321 sni)
7322 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00007323 need_lib_prefix=no
7324 export_dynamic_flag_spec='${wl}-Blargedynsym'
7325 runpath_var=LD_RUN_PATH
7326 ;;
7327 siemens)
7328 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00007329 ;;
7330 motorola)
7331 need_lib_prefix=no
7332 need_version=no
7333 shlibpath_overrides_runpath=no
7334 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7335 ;;
7336 esac
7337 ;;
7338
7339sysv4*MP*)
7340 if test -d /usr/nec ;then
7341 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00007342 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7343 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00007344 shlibpath_var=LD_LIBRARY_PATH
7345 fi
7346 ;;
7347
a.rottmann9bc8b932004-02-29 15:18:31 +00007348uts4*)
7349 version_type=linux
7350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7351 soname_spec='${libname}${release}${shared_ext}$major'
7352 shlibpath_var=LD_LIBRARY_PATH
7353 ;;
7354
drh71eb93e2001-09-28 01:34:43 +00007355*)
7356 dynamic_linker=no
7357 ;;
7358esac
a.rottmann84e63352003-03-24 09:42:16 +00007359echo "$as_me:$LINENO: result: $dynamic_linker" >&5
drh71eb93e2001-09-28 01:34:43 +00007360echo "${ECHO_T}$dynamic_linker" >&6
7361test "$dynamic_linker" = no && can_build_shared=no
7362
a.rottmann9bc8b932004-02-29 15:18:31 +00007363echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7364echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7365hardcode_action=
7366if test -n "$hardcode_libdir_flag_spec" || \
7367 test -n "$runpath_var " || \
7368 test "X$hardcode_automatic"="Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00007369
a.rottmann9bc8b932004-02-29 15:18:31 +00007370 # We can hardcode non-existant directories.
7371 if test "$hardcode_direct" != no &&
7372 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7373 # have to relink, otherwise we might link with an installed library
7374 # when we should be linking with a yet-to-be-installed one
7375 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7376 test "$hardcode_minus_L" != no; then
7377 # Linking always hardcodes the temporary library directory.
7378 hardcode_action=relink
7379 else
7380 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7381 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00007382 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007383else
7384 # We cannot hardcode anything, or else we can only hardcode existing
7385 # directories.
7386 hardcode_action=unsupported
7387fi
7388echo "$as_me:$LINENO: result: $hardcode_action" >&5
7389echo "${ECHO_T}$hardcode_action" >&6
a.rottmann84e63352003-03-24 09:42:16 +00007390
7391if test "$hardcode_action" = relink; then
7392 # Fast installation is not supported
7393 enable_fast_install=no
7394elif test "$shlibpath_overrides_runpath" = yes ||
7395 test "$enable_shared" = no; then
7396 # Fast installation is not necessary
7397 enable_fast_install=needless
7398fi
7399
a.rottmann9bc8b932004-02-29 15:18:31 +00007400striplib=
7401old_striplib=
7402echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7403echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7404if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7405 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7406 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7407 echo "$as_me:$LINENO: result: yes" >&5
7408echo "${ECHO_T}yes" >&6
7409else
7410# FIXME - insert some real tests, host_os isn't really good enough
7411 case $host_os in
7412 darwin*)
7413 if test -n "$STRIP" ; then
7414 striplib="$STRIP -x"
7415 echo "$as_me:$LINENO: result: yes" >&5
7416echo "${ECHO_T}yes" >&6
7417 else
7418 echo "$as_me:$LINENO: result: no" >&5
7419echo "${ECHO_T}no" >&6
7420fi
7421 ;;
7422 *)
7423 echo "$as_me:$LINENO: result: no" >&5
7424echo "${ECHO_T}no" >&6
7425 ;;
7426 esac
a.rottmann84e63352003-03-24 09:42:16 +00007427fi
7428
drh71eb93e2001-09-28 01:34:43 +00007429if test "x$enable_dlopen" != xyes; then
7430 enable_dlopen=unknown
7431 enable_dlopen_self=unknown
7432 enable_dlopen_self_static=unknown
7433else
7434 lt_cv_dlopen=no
7435 lt_cv_dlopen_libs=
7436
7437 case $host_os in
7438 beos*)
7439 lt_cv_dlopen="load_add_on"
7440 lt_cv_dlopen_libs=
7441 lt_cv_dlopen_self=yes
7442 ;;
7443
a.rottmann9bc8b932004-02-29 15:18:31 +00007444 mingw* | pw32*)
drh71eb93e2001-09-28 01:34:43 +00007445 lt_cv_dlopen="LoadLibrary"
7446 lt_cv_dlopen_libs=
7447 ;;
7448
a.rottmann9bc8b932004-02-29 15:18:31 +00007449 cygwin*)
7450 lt_cv_dlopen="dlopen"
7451 lt_cv_dlopen_libs=
7452 ;;
7453
7454 darwin*)
7455 # if libdl is installed we need to link against it
7456 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7457echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7458if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7459 echo $ECHO_N "(cached) $ECHO_C" >&6
7460else
7461 ac_check_lib_save_LIBS=$LIBS
7462LIBS="-ldl $LIBS"
7463cat >conftest.$ac_ext <<_ACEOF
7464/* confdefs.h. */
7465_ACEOF
7466cat confdefs.h >>conftest.$ac_ext
7467cat >>conftest.$ac_ext <<_ACEOF
7468/* end confdefs.h. */
7469
7470/* Override any gcc2 internal prototype to avoid an error. */
7471#ifdef __cplusplus
7472extern "C"
7473#endif
7474/* We use char because int might match the return type of a gcc2
7475 builtin and then its argument prototype would still apply. */
7476char dlopen ();
7477int
7478main ()
7479{
7480dlopen ();
7481 ;
7482 return 0;
7483}
7484_ACEOF
7485rm -f conftest.$ac_objext conftest$ac_exeext
7486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7487 (eval $ac_link) 2>conftest.er1
7488 ac_status=$?
7489 grep -v '^ *+' conftest.er1 >conftest.err
7490 rm -f conftest.er1
7491 cat conftest.err >&5
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007494 { ac_try='test -z "$ac_c_werror_flag"
7495 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00007496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7497 (eval $ac_try) 2>&5
7498 ac_status=$?
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); }; } &&
7501 { ac_try='test -s conftest$ac_exeext'
7502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7503 (eval $ac_try) 2>&5
7504 ac_status=$?
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); }; }; then
7507 ac_cv_lib_dl_dlopen=yes
7508else
7509 echo "$as_me: failed program was:" >&5
7510sed 's/^/| /' conftest.$ac_ext >&5
7511
7512ac_cv_lib_dl_dlopen=no
7513fi
7514rm -f conftest.err conftest.$ac_objext \
7515 conftest$ac_exeext conftest.$ac_ext
7516LIBS=$ac_check_lib_save_LIBS
7517fi
7518echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7519echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7520if test $ac_cv_lib_dl_dlopen = yes; then
7521 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7522else
7523
7524 lt_cv_dlopen="dyld"
7525 lt_cv_dlopen_libs=
7526 lt_cv_dlopen_self=yes
7527
7528fi
7529
7530 ;;
7531
drh71eb93e2001-09-28 01:34:43 +00007532 *)
a.rottmann84e63352003-03-24 09:42:16 +00007533 echo "$as_me:$LINENO: checking for shl_load" >&5
drh71eb93e2001-09-28 01:34:43 +00007534echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7535if test "${ac_cv_func_shl_load+set}" = set; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
7537else
7538 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007539/* confdefs.h. */
7540_ACEOF
7541cat confdefs.h >>conftest.$ac_ext
7542cat >>conftest.$ac_ext <<_ACEOF
7543/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00007544/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7546#define shl_load innocuous_shl_load
7547
drh71eb93e2001-09-28 01:34:43 +00007548/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +00007549 which can conflict with char shl_load (); below.
7550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7551 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00007552
a.rottmann84e63352003-03-24 09:42:16 +00007553#ifdef __STDC__
7554# include <limits.h>
7555#else
7556# include <assert.h>
7557#endif
a.rottmann964dbb12004-02-26 19:47:42 +00007558
7559#undef shl_load
7560
drh71eb93e2001-09-28 01:34:43 +00007561/* Override any gcc2 internal prototype to avoid an error. */
7562#ifdef __cplusplus
7563extern "C"
a.rottmann84e63352003-03-24 09:42:16 +00007564{
drh71eb93e2001-09-28 01:34:43 +00007565#endif
7566/* We use char because int might match the return type of a gcc2
7567 builtin and then its argument prototype would still apply. */
7568char shl_load ();
drh71eb93e2001-09-28 01:34:43 +00007569/* The GNU C library defines this for functions which it implements
7570 to always fail with ENOSYS. Some functions are actually named
7571 something starting with __ and the normal name is an alias. */
7572#if defined (__stub_shl_load) || defined (__stub___shl_load)
7573choke me
7574#else
a.rottmann84e63352003-03-24 09:42:16 +00007575char (*f) () = shl_load;
7576#endif
7577#ifdef __cplusplus
7578}
drh71eb93e2001-09-28 01:34:43 +00007579#endif
7580
a.rottmann84e63352003-03-24 09:42:16 +00007581int
7582main ()
7583{
7584return f != shl_load;
drh71eb93e2001-09-28 01:34:43 +00007585 ;
7586 return 0;
7587}
7588_ACEOF
7589rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00007590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007591 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00007592 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007593 grep -v '^ *+' conftest.er1 >conftest.err
7594 rm -f conftest.er1
7595 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007597 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007598 { ac_try='test -z "$ac_c_werror_flag"
7599 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00007600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601 (eval $ac_try) 2>&5
7602 ac_status=$?
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); }; } &&
7605 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007607 (eval $ac_try) 2>&5
7608 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007610 (exit $ac_status); }; }; then
7611 ac_cv_func_shl_load=yes
7612else
7613 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007614sed 's/^/| /' conftest.$ac_ext >&5
7615
drh71eb93e2001-09-28 01:34:43 +00007616ac_cv_func_shl_load=no
7617fi
a.rottmann964dbb12004-02-26 19:47:42 +00007618rm -f conftest.err conftest.$ac_objext \
7619 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007620fi
a.rottmann84e63352003-03-24 09:42:16 +00007621echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
drh71eb93e2001-09-28 01:34:43 +00007622echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7623if test $ac_cv_func_shl_load = yes; then
7624 lt_cv_dlopen="shl_load"
7625else
a.rottmann84e63352003-03-24 09:42:16 +00007626 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
drh71eb93e2001-09-28 01:34:43 +00007627echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7628if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7630else
7631 ac_check_lib_save_LIBS=$LIBS
7632LIBS="-ldld $LIBS"
7633cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007634/* confdefs.h. */
7635_ACEOF
7636cat confdefs.h >>conftest.$ac_ext
7637cat >>conftest.$ac_ext <<_ACEOF
7638/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007639
7640/* Override any gcc2 internal prototype to avoid an error. */
7641#ifdef __cplusplus
7642extern "C"
7643#endif
7644/* We use char because int might match the return type of a gcc2
7645 builtin and then its argument prototype would still apply. */
7646char shl_load ();
7647int
7648main ()
7649{
7650shl_load ();
7651 ;
7652 return 0;
7653}
7654_ACEOF
7655rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00007656if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007657 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00007658 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007659 grep -v '^ *+' conftest.er1 >conftest.err
7660 rm -f conftest.er1
7661 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007663 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007664 { ac_try='test -z "$ac_c_werror_flag"
7665 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00007666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7667 (eval $ac_try) 2>&5
7668 ac_status=$?
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); }; } &&
7671 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007673 (eval $ac_try) 2>&5
7674 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007676 (exit $ac_status); }; }; then
7677 ac_cv_lib_dld_shl_load=yes
7678else
7679 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007680sed 's/^/| /' conftest.$ac_ext >&5
7681
drh71eb93e2001-09-28 01:34:43 +00007682ac_cv_lib_dld_shl_load=no
7683fi
a.rottmann964dbb12004-02-26 19:47:42 +00007684rm -f conftest.err conftest.$ac_objext \
7685 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007686LIBS=$ac_check_lib_save_LIBS
7687fi
a.rottmann84e63352003-03-24 09:42:16 +00007688echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
drh71eb93e2001-09-28 01:34:43 +00007689echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7690if test $ac_cv_lib_dld_shl_load = yes; then
7691 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7692else
a.rottmann84e63352003-03-24 09:42:16 +00007693 echo "$as_me:$LINENO: checking for dlopen" >&5
7694echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7695if test "${ac_cv_func_dlopen+set}" = set; then
7696 echo $ECHO_N "(cached) $ECHO_C" >&6
7697else
7698 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007699/* confdefs.h. */
7700_ACEOF
7701cat confdefs.h >>conftest.$ac_ext
7702cat >>conftest.$ac_ext <<_ACEOF
7703/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00007704/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7706#define dlopen innocuous_dlopen
7707
a.rottmann84e63352003-03-24 09:42:16 +00007708/* System header to define __stub macros and hopefully few prototypes,
7709 which can conflict with char dlopen (); below.
7710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7711 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00007712
a.rottmann84e63352003-03-24 09:42:16 +00007713#ifdef __STDC__
7714# include <limits.h>
7715#else
7716# include <assert.h>
7717#endif
a.rottmann964dbb12004-02-26 19:47:42 +00007718
7719#undef dlopen
7720
a.rottmann84e63352003-03-24 09:42:16 +00007721/* Override any gcc2 internal prototype to avoid an error. */
7722#ifdef __cplusplus
7723extern "C"
7724{
7725#endif
7726/* We use char because int might match the return type of a gcc2
7727 builtin and then its argument prototype would still apply. */
7728char dlopen ();
7729/* The GNU C library defines this for functions which it implements
7730 to always fail with ENOSYS. Some functions are actually named
7731 something starting with __ and the normal name is an alias. */
7732#if defined (__stub_dlopen) || defined (__stub___dlopen)
7733choke me
7734#else
7735char (*f) () = dlopen;
7736#endif
7737#ifdef __cplusplus
7738}
7739#endif
7740
7741int
7742main ()
7743{
7744return f != dlopen;
7745 ;
7746 return 0;
7747}
7748_ACEOF
7749rm -f conftest.$ac_objext conftest$ac_exeext
7750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007751 (eval $ac_link) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00007752 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007753 grep -v '^ *+' conftest.er1 >conftest.err
7754 rm -f conftest.er1
7755 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007758 { ac_try='test -z "$ac_c_werror_flag"
7759 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00007760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7761 (eval $ac_try) 2>&5
7762 ac_status=$?
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); }; } &&
7765 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7767 (eval $ac_try) 2>&5
7768 ac_status=$?
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); }; }; then
7771 ac_cv_func_dlopen=yes
7772else
7773 echo "$as_me: failed program was:" >&5
7774sed 's/^/| /' conftest.$ac_ext >&5
7775
7776ac_cv_func_dlopen=no
7777fi
a.rottmann964dbb12004-02-26 19:47:42 +00007778rm -f conftest.err conftest.$ac_objext \
7779 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00007780fi
7781echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7782echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7783if test $ac_cv_func_dlopen = yes; then
7784 lt_cv_dlopen="dlopen"
7785else
7786 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
drh71eb93e2001-09-28 01:34:43 +00007787echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7788if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
7790else
7791 ac_check_lib_save_LIBS=$LIBS
7792LIBS="-ldl $LIBS"
7793cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007794/* confdefs.h. */
7795_ACEOF
7796cat confdefs.h >>conftest.$ac_ext
7797cat >>conftest.$ac_ext <<_ACEOF
7798/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007799
7800/* Override any gcc2 internal prototype to avoid an error. */
7801#ifdef __cplusplus
7802extern "C"
7803#endif
7804/* We use char because int might match the return type of a gcc2
7805 builtin and then its argument prototype would still apply. */
7806char dlopen ();
7807int
7808main ()
7809{
7810dlopen ();
7811 ;
7812 return 0;
7813}
7814_ACEOF
7815rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00007816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007817 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00007818 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007819 grep -v '^ *+' conftest.er1 >conftest.err
7820 rm -f conftest.er1
7821 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007823 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007824 { ac_try='test -z "$ac_c_werror_flag"
7825 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00007826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7827 (eval $ac_try) 2>&5
7828 ac_status=$?
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); }; } &&
7831 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007833 (eval $ac_try) 2>&5
7834 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007836 (exit $ac_status); }; }; then
7837 ac_cv_lib_dl_dlopen=yes
7838else
7839 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007840sed 's/^/| /' conftest.$ac_ext >&5
7841
drh71eb93e2001-09-28 01:34:43 +00007842ac_cv_lib_dl_dlopen=no
7843fi
a.rottmann964dbb12004-02-26 19:47:42 +00007844rm -f conftest.err conftest.$ac_objext \
7845 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007846LIBS=$ac_check_lib_save_LIBS
7847fi
a.rottmann84e63352003-03-24 09:42:16 +00007848echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
drh71eb93e2001-09-28 01:34:43 +00007849echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7850if test $ac_cv_lib_dl_dlopen = yes; then
7851 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7852else
a.rottmann84e63352003-03-24 09:42:16 +00007853 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
drh71eb93e2001-09-28 01:34:43 +00007854echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7855if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7856 echo $ECHO_N "(cached) $ECHO_C" >&6
7857else
7858 ac_check_lib_save_LIBS=$LIBS
7859LIBS="-lsvld $LIBS"
7860cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007861/* confdefs.h. */
7862_ACEOF
7863cat confdefs.h >>conftest.$ac_ext
7864cat >>conftest.$ac_ext <<_ACEOF
7865/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007866
7867/* Override any gcc2 internal prototype to avoid an error. */
7868#ifdef __cplusplus
7869extern "C"
7870#endif
7871/* We use char because int might match the return type of a gcc2
7872 builtin and then its argument prototype would still apply. */
7873char dlopen ();
7874int
7875main ()
7876{
7877dlopen ();
7878 ;
7879 return 0;
7880}
7881_ACEOF
7882rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00007883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007884 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00007885 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007886 grep -v '^ *+' conftest.er1 >conftest.err
7887 rm -f conftest.er1
7888 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007890 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007891 { ac_try='test -z "$ac_c_werror_flag"
7892 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00007893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894 (eval $ac_try) 2>&5
7895 ac_status=$?
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); }; } &&
7898 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007900 (eval $ac_try) 2>&5
7901 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007903 (exit $ac_status); }; }; then
7904 ac_cv_lib_svld_dlopen=yes
7905else
7906 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007907sed 's/^/| /' conftest.$ac_ext >&5
7908
drh71eb93e2001-09-28 01:34:43 +00007909ac_cv_lib_svld_dlopen=no
7910fi
a.rottmann964dbb12004-02-26 19:47:42 +00007911rm -f conftest.err conftest.$ac_objext \
7912 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007913LIBS=$ac_check_lib_save_LIBS
7914fi
a.rottmann84e63352003-03-24 09:42:16 +00007915echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
drh71eb93e2001-09-28 01:34:43 +00007916echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7917if test $ac_cv_lib_svld_dlopen = yes; then
7918 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00007919else
7920 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7921echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7922if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7923 echo $ECHO_N "(cached) $ECHO_C" >&6
7924else
7925 ac_check_lib_save_LIBS=$LIBS
7926LIBS="-ldld $LIBS"
7927cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007928/* confdefs.h. */
7929_ACEOF
7930cat confdefs.h >>conftest.$ac_ext
7931cat >>conftest.$ac_ext <<_ACEOF
7932/* end confdefs.h. */
7933
7934/* Override any gcc2 internal prototype to avoid an error. */
7935#ifdef __cplusplus
7936extern "C"
7937#endif
7938/* We use char because int might match the return type of a gcc2
7939 builtin and then its argument prototype would still apply. */
7940char dld_link ();
7941int
7942main ()
7943{
7944dld_link ();
7945 ;
7946 return 0;
7947}
7948_ACEOF
7949rm -f conftest.$ac_objext conftest$ac_exeext
7950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007951 (eval $ac_link) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00007952 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007953 grep -v '^ *+' conftest.er1 >conftest.err
7954 rm -f conftest.er1
7955 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00007958 { ac_try='test -z "$ac_c_werror_flag"
7959 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +00007960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7961 (eval $ac_try) 2>&5
7962 ac_status=$?
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); }; } &&
7965 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00007966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7967 (eval $ac_try) 2>&5
7968 ac_status=$?
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); }; }; then
7971 ac_cv_lib_dld_dld_link=yes
7972else
7973 echo "$as_me: failed program was:" >&5
7974sed 's/^/| /' conftest.$ac_ext >&5
7975
7976ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00007977fi
a.rottmann964dbb12004-02-26 19:47:42 +00007978rm -f conftest.err conftest.$ac_objext \
7979 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00007980LIBS=$ac_check_lib_save_LIBS
7981fi
7982echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7983echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7984if test $ac_cv_lib_dld_dld_link = yes; then
7985 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7986fi
7987
drh71eb93e2001-09-28 01:34:43 +00007988
7989fi
7990
drh71eb93e2001-09-28 01:34:43 +00007991
7992fi
7993
a.rottmann84e63352003-03-24 09:42:16 +00007994
7995fi
7996
7997
7998fi
7999
8000
drh71eb93e2001-09-28 01:34:43 +00008001fi
8002
8003 ;;
8004 esac
8005
8006 if test "x$lt_cv_dlopen" != xno; then
8007 enable_dlopen=yes
8008 else
8009 enable_dlopen=no
8010 fi
8011
8012 case $lt_cv_dlopen in
8013 dlopen)
8014 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00008015 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00008016
8017 save_LDFLAGS="$LDFLAGS"
8018 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8019
8020 save_LIBS="$LIBS"
8021 LIBS="$lt_cv_dlopen_libs $LIBS"
8022
a.rottmann84e63352003-03-24 09:42:16 +00008023 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
drh71eb93e2001-09-28 01:34:43 +00008024echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8025if test "${lt_cv_dlopen_self+set}" = set; then
8026 echo $ECHO_N "(cached) $ECHO_C" >&6
8027else
8028 if test "$cross_compiling" = yes; then :
8029 lt_cv_dlopen_self=cross
8030else
a.rottmann9bc8b932004-02-29 15:18:31 +00008031 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00008032 lt_status=$lt_dlunknown
8033 cat > conftest.$ac_ext <<EOF
drh8e2e2a12006-02-01 01:55:17 +00008034#line 8034 "configure"
drh71eb93e2001-09-28 01:34:43 +00008035#include "confdefs.h"
8036
8037#if HAVE_DLFCN_H
8038#include <dlfcn.h>
8039#endif
8040
8041#include <stdio.h>
8042
8043#ifdef RTLD_GLOBAL
8044# define LT_DLGLOBAL RTLD_GLOBAL
8045#else
8046# ifdef DL_GLOBAL
8047# define LT_DLGLOBAL DL_GLOBAL
8048# else
8049# define LT_DLGLOBAL 0
8050# endif
8051#endif
8052
8053/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8054 find out it does not work in some platform. */
8055#ifndef LT_DLLAZY_OR_NOW
8056# ifdef RTLD_LAZY
8057# define LT_DLLAZY_OR_NOW RTLD_LAZY
8058# else
8059# ifdef DL_LAZY
8060# define LT_DLLAZY_OR_NOW DL_LAZY
8061# else
8062# ifdef RTLD_NOW
8063# define LT_DLLAZY_OR_NOW RTLD_NOW
8064# else
8065# ifdef DL_NOW
8066# define LT_DLLAZY_OR_NOW DL_NOW
8067# else
8068# define LT_DLLAZY_OR_NOW 0
8069# endif
8070# endif
8071# endif
8072# endif
8073#endif
8074
8075#ifdef __cplusplus
8076extern "C" void exit (int);
8077#endif
8078
8079void fnord() { int i=42;}
8080int main ()
8081{
8082 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8083 int status = $lt_dlunknown;
8084
8085 if (self)
8086 {
8087 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8088 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8089 /* dlclose (self); */
8090 }
8091
8092 exit (status);
8093}
8094EOF
a.rottmann84e63352003-03-24 09:42:16 +00008095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008096 (eval $ac_link) 2>&5
8097 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008099 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8100 (./conftest; exit; ) 2>/dev/null
8101 lt_status=$?
8102 case x$lt_status in
8103 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8104 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8105 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8106 esac
8107 else :
8108 # compilation failed
8109 lt_cv_dlopen_self=no
8110 fi
8111fi
8112rm -fr conftest*
8113
a.rottmann84e63352003-03-24 09:42:16 +00008114
drh71eb93e2001-09-28 01:34:43 +00008115fi
a.rottmann84e63352003-03-24 09:42:16 +00008116echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
drh71eb93e2001-09-28 01:34:43 +00008117echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8118
8119 if test "x$lt_cv_dlopen_self" = xyes; then
8120 LDFLAGS="$LDFLAGS $link_static_flag"
a.rottmann84e63352003-03-24 09:42:16 +00008121 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
drh71eb93e2001-09-28 01:34:43 +00008122echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8123if test "${lt_cv_dlopen_self_static+set}" = set; then
8124 echo $ECHO_N "(cached) $ECHO_C" >&6
8125else
8126 if test "$cross_compiling" = yes; then :
8127 lt_cv_dlopen_self_static=cross
8128else
a.rottmann9bc8b932004-02-29 15:18:31 +00008129 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00008130 lt_status=$lt_dlunknown
8131 cat > conftest.$ac_ext <<EOF
drh8e2e2a12006-02-01 01:55:17 +00008132#line 8132 "configure"
drh71eb93e2001-09-28 01:34:43 +00008133#include "confdefs.h"
8134
8135#if HAVE_DLFCN_H
8136#include <dlfcn.h>
8137#endif
8138
8139#include <stdio.h>
8140
8141#ifdef RTLD_GLOBAL
8142# define LT_DLGLOBAL RTLD_GLOBAL
8143#else
8144# ifdef DL_GLOBAL
8145# define LT_DLGLOBAL DL_GLOBAL
8146# else
8147# define LT_DLGLOBAL 0
8148# endif
8149#endif
8150
8151/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8152 find out it does not work in some platform. */
8153#ifndef LT_DLLAZY_OR_NOW
8154# ifdef RTLD_LAZY
8155# define LT_DLLAZY_OR_NOW RTLD_LAZY
8156# else
8157# ifdef DL_LAZY
8158# define LT_DLLAZY_OR_NOW DL_LAZY
8159# else
8160# ifdef RTLD_NOW
8161# define LT_DLLAZY_OR_NOW RTLD_NOW
8162# else
8163# ifdef DL_NOW
8164# define LT_DLLAZY_OR_NOW DL_NOW
8165# else
8166# define LT_DLLAZY_OR_NOW 0
8167# endif
8168# endif
8169# endif
8170# endif
8171#endif
8172
8173#ifdef __cplusplus
8174extern "C" void exit (int);
8175#endif
8176
8177void fnord() { int i=42;}
8178int main ()
8179{
8180 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8181 int status = $lt_dlunknown;
8182
8183 if (self)
8184 {
8185 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8186 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8187 /* dlclose (self); */
8188 }
8189
8190 exit (status);
8191}
8192EOF
a.rottmann84e63352003-03-24 09:42:16 +00008193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008194 (eval $ac_link) 2>&5
8195 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008197 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8198 (./conftest; exit; ) 2>/dev/null
8199 lt_status=$?
8200 case x$lt_status in
8201 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8202 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8203 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8204 esac
8205 else :
8206 # compilation failed
8207 lt_cv_dlopen_self_static=no
8208 fi
8209fi
8210rm -fr conftest*
8211
a.rottmann84e63352003-03-24 09:42:16 +00008212
drh71eb93e2001-09-28 01:34:43 +00008213fi
a.rottmann84e63352003-03-24 09:42:16 +00008214echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
drh71eb93e2001-09-28 01:34:43 +00008215echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8216 fi
8217
8218 CPPFLAGS="$save_CPPFLAGS"
8219 LDFLAGS="$save_LDFLAGS"
8220 LIBS="$save_LIBS"
8221 ;;
8222 esac
8223
8224 case $lt_cv_dlopen_self in
8225 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8226 *) enable_dlopen_self=unknown ;;
8227 esac
8228
8229 case $lt_cv_dlopen_self_static in
8230 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8231 *) enable_dlopen_self_static=unknown ;;
8232 esac
8233fi
8234
drh71eb93e2001-09-28 01:34:43 +00008235
a.rottmann9bc8b932004-02-29 15:18:31 +00008236# Report which librarie types wil actually be built
8237echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8238echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8239echo "$as_me:$LINENO: result: $can_build_shared" >&5
8240echo "${ECHO_T}$can_build_shared" >&6
drh71eb93e2001-09-28 01:34:43 +00008241
a.rottmann9bc8b932004-02-29 15:18:31 +00008242echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8243echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8244test "$can_build_shared" = "no" && enable_shared=no
8245
8246# On AIX, shared libraries and static libraries use the same namespace, and
8247# are all built from PIC.
8248case "$host_os" in
8249aix3*)
8250 test "$enable_shared" = yes && enable_static=no
8251 if test -n "$RANLIB"; then
8252 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8253 postinstall_cmds='$RANLIB $lib'
8254 fi
8255 ;;
8256
8257aix4*)
8258 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8259 test "$enable_shared" = yes && enable_static=no
8260 fi
8261 ;;
8262 darwin* | rhapsody*)
8263 if test "$GCC" = yes; then
8264 archive_cmds_need_lc=no
8265 case "$host_os" in
8266 rhapsody* | darwin1.[012])
8267 allow_undefined_flag='-undefined suppress'
8268 ;;
8269 *) # Darwin 1.3 on
8270 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8271 allow_undefined_flag='-flat_namespace -undefined suppress'
a.rottmann84e63352003-03-24 09:42:16 +00008272 else
a.rottmann9bc8b932004-02-29 15:18:31 +00008273 case ${MACOSX_DEPLOYMENT_TARGET} in
8274 10.[012])
8275 allow_undefined_flag='-flat_namespace -undefined suppress'
8276 ;;
8277 10.*)
8278 allow_undefined_flag='-undefined dynamic_lookup'
8279 ;;
8280 esac
a.rottmann84e63352003-03-24 09:42:16 +00008281 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008282 ;;
8283 esac
8284 output_verbose_link_cmd='echo'
8285 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8286 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8287 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8288 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}'
8289 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}'
8290 hardcode_direct=no
8291 hardcode_automatic=yes
8292 hardcode_shlibpath_var=unsupported
8293 whole_archive_flag_spec='-all_load $convenience'
8294 link_all_deplibs=yes
8295 else
8296 ld_shlibs=no
8297 fi
a.rottmann84e63352003-03-24 09:42:16 +00008298 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008299esac
8300echo "$as_me:$LINENO: result: $enable_shared" >&5
8301echo "${ECHO_T}$enable_shared" >&6
drh71eb93e2001-09-28 01:34:43 +00008302
a.rottmann9bc8b932004-02-29 15:18:31 +00008303echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8304echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8305# Make sure either enable_shared or enable_static is yes.
8306test "$enable_shared" = yes || enable_static=yes
8307echo "$as_me:$LINENO: result: $enable_static" >&5
8308echo "${ECHO_T}$enable_static" >&6
8309
8310# The else clause should only fire when bootstrapping the
drh71eb93e2001-09-28 01:34:43 +00008311# libtool distribution, otherwise you forgot to ship ltmain.sh
8312# with your package, and you will get complaints that there are
8313# no rules to generate ltmain.sh.
8314if test -f "$ltmain"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008315 # See if we are running on zsh, and set the options which allow our commands through
8316 # without removal of \ escapes.
8317 if test -n "${ZSH_VERSION+set}" ; then
8318 setopt NO_GLOB_SUBST
8319 fi
drh71eb93e2001-09-28 01:34:43 +00008320 # Now quote all the things that may contain metacharacters while being
8321 # careful not to overquote the AC_SUBSTed values. We take copies of the
8322 # variables and quote the copies for generation of the libtool script.
a.rottmann9bc8b932004-02-29 15:18:31 +00008323 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8324 SED SHELL STRIP \
8325 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8326 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8327 deplibs_check_method reload_flag reload_cmds need_locks \
8328 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8329 lt_cv_sys_global_symbol_to_c_name_address \
drh71eb93e2001-09-28 01:34:43 +00008330 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
a.rottmann9bc8b932004-02-29 15:18:31 +00008331 old_postinstall_cmds old_postuninstall_cmds \
8332 compiler \
8333 CC \
8334 LD \
8335 lt_prog_compiler_wl \
8336 lt_prog_compiler_pic \
8337 lt_prog_compiler_static \
8338 lt_prog_compiler_no_builtin_flag \
8339 export_dynamic_flag_spec \
8340 thread_safe_flag_spec \
8341 whole_archive_flag_spec \
8342 enable_shared_with_static_runtimes \
8343 old_archive_cmds \
8344 old_archive_from_new_cmds \
8345 predep_objects \
8346 postdep_objects \
8347 predeps \
8348 postdeps \
8349 compiler_lib_search_path \
8350 archive_cmds \
8351 archive_expsym_cmds \
8352 postinstall_cmds \
8353 postuninstall_cmds \
8354 old_archive_from_expsyms_cmds \
8355 allow_undefined_flag \
8356 no_undefined_flag \
8357 export_symbols_cmds \
8358 hardcode_libdir_flag_spec \
8359 hardcode_libdir_flag_spec_ld \
8360 hardcode_libdir_separator \
8361 hardcode_automatic \
8362 module_cmds \
8363 module_expsym_cmds \
8364 lt_cv_prog_compiler_c_o \
8365 exclude_expsyms \
8366 include_expsyms; do
drh71eb93e2001-09-28 01:34:43 +00008367
8368 case $var in
a.rottmann9bc8b932004-02-29 15:18:31 +00008369 old_archive_cmds | \
8370 old_archive_from_new_cmds | \
8371 archive_cmds | \
8372 archive_expsym_cmds | \
8373 module_cmds | \
8374 module_expsym_cmds | \
8375 old_archive_from_expsyms_cmds | \
8376 export_symbols_cmds | \
8377 extract_expsyms_cmds | reload_cmds | finish_cmds | \
a.rottmann84e63352003-03-24 09:42:16 +00008378 postinstall_cmds | postuninstall_cmds | \
a.rottmann9bc8b932004-02-29 15:18:31 +00008379 old_postinstall_cmds | old_postuninstall_cmds | \
8380 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
drh71eb93e2001-09-28 01:34:43 +00008381 # Double-quote double-evaled strings.
8382 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8383 ;;
8384 *)
8385 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8386 ;;
8387 esac
8388 done
8389
a.rottmann9bc8b932004-02-29 15:18:31 +00008390 case $lt_echo in
8391 *'\$0 --fallback-echo"')
8392 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8393 ;;
8394 esac
8395
8396cfgfile="${ofile}T"
8397 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8398 $rm -f "$cfgfile"
8399 { echo "$as_me:$LINENO: creating $ofile" >&5
8400echo "$as_me: creating $ofile" >&6;}
8401
8402 cat <<__EOF__ >> "$cfgfile"
drh71eb93e2001-09-28 01:34:43 +00008403#! $SHELL
8404
a.rottmann9bc8b932004-02-29 15:18:31 +00008405# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
drh71eb93e2001-09-28 01:34:43 +00008406# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8407# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8408#
a.rottmann9bc8b932004-02-29 15:18:31 +00008409# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8410# Free Software Foundation, Inc.
8411#
8412# This file is part of GNU Libtool:
drh71eb93e2001-09-28 01:34:43 +00008413# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8414#
8415# This program is free software; you can redistribute it and/or modify
8416# it under the terms of the GNU General Public License as published by
8417# the Free Software Foundation; either version 2 of the License, or
8418# (at your option) any later version.
8419#
8420# This program is distributed in the hope that it will be useful, but
8421# WITHOUT ANY WARRANTY; without even the implied warranty of
8422# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8423# General Public License for more details.
8424#
8425# You should have received a copy of the GNU General Public License
8426# along with this program; if not, write to the Free Software
8427# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8428#
8429# As a special exception to the GNU General Public License, if you
8430# distribute this file as part of a program that contains a
8431# configuration script generated by Autoconf, you may include it under
8432# the same distribution terms that you use for the rest of that program.
8433
a.rottmann9bc8b932004-02-29 15:18:31 +00008434# A sed program that does not truncate output.
a.rottmann84e63352003-03-24 09:42:16 +00008435SED=$lt_SED
8436
drh71eb93e2001-09-28 01:34:43 +00008437# Sed that helps us avoid accidentally triggering echo(1) options like -n.
a.rottmann9bc8b932004-02-29 15:18:31 +00008438Xsed="$SED -e s/^X//"
drh71eb93e2001-09-28 01:34:43 +00008439
8440# The HP-UX ksh and POSIX shell print the target directory to stdout
8441# if CDPATH is set.
8442if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8443
a.rottmann9bc8b932004-02-29 15:18:31 +00008444# The names of the tagged configurations supported by this script.
8445available_tags=
8446
drh71eb93e2001-09-28 01:34:43 +00008447# ### BEGIN LIBTOOL CONFIG
8448
8449# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8450
8451# Shell to use when invoking shell scripts.
8452SHELL=$lt_SHELL
8453
8454# Whether or not to build shared libraries.
8455build_libtool_libs=$enable_shared
8456
8457# Whether or not to build static libraries.
8458build_old_libs=$enable_static
8459
8460# Whether or not to add -lc for building shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00008461build_libtool_need_lc=$archive_cmds_need_lc
8462
8463# Whether or not to disallow shared libs when runtime libs are static
8464allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
drh71eb93e2001-09-28 01:34:43 +00008465
8466# Whether or not to optimize for fast installation.
8467fast_install=$enable_fast_install
8468
8469# The host system.
8470host_alias=$host_alias
8471host=$host
8472
8473# An echo program that does not interpret backslashes.
8474echo=$lt_echo
8475
8476# The archiver.
8477AR=$lt_AR
8478AR_FLAGS=$lt_AR_FLAGS
8479
a.rottmann9bc8b932004-02-29 15:18:31 +00008480# A C compiler.
8481LTCC=$lt_LTCC
8482
8483# A language-specific compiler.
8484CC=$lt_compiler
drh71eb93e2001-09-28 01:34:43 +00008485
8486# Is the compiler the GNU C compiler?
8487with_gcc=$GCC
8488
a.rottmann9bc8b932004-02-29 15:18:31 +00008489# An ERE matcher.
8490EGREP=$lt_EGREP
8491
drh71eb93e2001-09-28 01:34:43 +00008492# The linker used to build libraries.
8493LD=$lt_LD
8494
8495# Whether we need hard or soft links.
8496LN_S=$lt_LN_S
8497
8498# A BSD-compatible nm program.
8499NM=$lt_NM
8500
8501# A symbol stripping program
a.rottmann9bc8b932004-02-29 15:18:31 +00008502STRIP=$lt_STRIP
drh71eb93e2001-09-28 01:34:43 +00008503
8504# Used to examine libraries when file_magic_cmd begins "file"
8505MAGIC_CMD=$MAGIC_CMD
8506
8507# Used on cygwin: DLL creation program.
8508DLLTOOL="$DLLTOOL"
8509
8510# Used on cygwin: object dumper.
8511OBJDUMP="$OBJDUMP"
8512
8513# Used on cygwin: assembler.
8514AS="$AS"
8515
8516# The name of the directory that contains temporary libtool files.
8517objdir=$objdir
8518
8519# How to create reloadable object files.
8520reload_flag=$lt_reload_flag
8521reload_cmds=$lt_reload_cmds
8522
8523# How to pass a linker flag through the compiler.
a.rottmann9bc8b932004-02-29 15:18:31 +00008524wl=$lt_lt_prog_compiler_wl
drh71eb93e2001-09-28 01:34:43 +00008525
8526# Object file suffix (normally "o").
8527objext="$ac_objext"
8528
8529# Old archive suffix (normally "a").
8530libext="$libext"
8531
a.rottmann9bc8b932004-02-29 15:18:31 +00008532# Shared library suffix (normally ".so").
8533shrext='$shrext'
8534
drh71eb93e2001-09-28 01:34:43 +00008535# Executable file suffix (normally "").
8536exeext="$exeext"
8537
8538# Additional compiler flags for building library objects.
a.rottmann9bc8b932004-02-29 15:18:31 +00008539pic_flag=$lt_lt_prog_compiler_pic
drh71eb93e2001-09-28 01:34:43 +00008540pic_mode=$pic_mode
8541
a.rottmann9bc8b932004-02-29 15:18:31 +00008542# What is the maximum length of a command?
8543max_cmd_len=$lt_cv_sys_max_cmd_len
a.rottmann84e63352003-03-24 09:42:16 +00008544
a.rottmann9bc8b932004-02-29 15:18:31 +00008545# Does compiler simultaneously support -c and -o options?
8546compiler_c_o=$lt_lt_cv_prog_compiler_c_o
drh71eb93e2001-09-28 01:34:43 +00008547
8548# Must we lock files when doing compilation ?
8549need_locks=$lt_need_locks
8550
8551# Do we need the lib prefix for modules?
8552need_lib_prefix=$need_lib_prefix
8553
8554# Do we need a version for libraries?
8555need_version=$need_version
8556
8557# Whether dlopen is supported.
8558dlopen_support=$enable_dlopen
8559
8560# Whether dlopen of programs is supported.
8561dlopen_self=$enable_dlopen_self
8562
8563# Whether dlopen of statically linked programs is supported.
8564dlopen_self_static=$enable_dlopen_self_static
8565
8566# Compiler flag to prevent dynamic linking.
a.rottmann9bc8b932004-02-29 15:18:31 +00008567link_static_flag=$lt_lt_prog_compiler_static
drh71eb93e2001-09-28 01:34:43 +00008568
8569# Compiler flag to turn off builtin functions.
a.rottmann9bc8b932004-02-29 15:18:31 +00008570no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
drh71eb93e2001-09-28 01:34:43 +00008571
8572# Compiler flag to allow reflexive dlopens.
8573export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8574
8575# Compiler flag to generate shared objects directly from archives.
8576whole_archive_flag_spec=$lt_whole_archive_flag_spec
8577
8578# Compiler flag to generate thread-safe objects.
8579thread_safe_flag_spec=$lt_thread_safe_flag_spec
8580
8581# Library versioning type.
8582version_type=$version_type
8583
8584# Format of library name prefix.
8585libname_spec=$lt_libname_spec
8586
8587# List of archive names. First name is the real one, the rest are links.
8588# The last name is the one that the linker finds with -lNAME.
8589library_names_spec=$lt_library_names_spec
8590
8591# The coded name of the library, if different from the real name.
8592soname_spec=$lt_soname_spec
8593
8594# Commands used to build and install an old-style archive.
8595RANLIB=$lt_RANLIB
8596old_archive_cmds=$lt_old_archive_cmds
8597old_postinstall_cmds=$lt_old_postinstall_cmds
8598old_postuninstall_cmds=$lt_old_postuninstall_cmds
8599
8600# Create an old-style archive from a shared archive.
8601old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8602
8603# Create a temporary old-style archive to link instead of a shared archive.
8604old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8605
8606# Commands used to build and install a shared archive.
8607archive_cmds=$lt_archive_cmds
8608archive_expsym_cmds=$lt_archive_expsym_cmds
8609postinstall_cmds=$lt_postinstall_cmds
8610postuninstall_cmds=$lt_postuninstall_cmds
8611
a.rottmann9bc8b932004-02-29 15:18:31 +00008612# Commands used to build a loadable module (assumed same as above if empty)
8613module_cmds=$lt_module_cmds
8614module_expsym_cmds=$lt_module_expsym_cmds
8615
drh71eb93e2001-09-28 01:34:43 +00008616# Commands to strip libraries.
8617old_striplib=$lt_old_striplib
8618striplib=$lt_striplib
8619
a.rottmann9bc8b932004-02-29 15:18:31 +00008620# Dependencies to place before the objects being linked to create a
8621# shared library.
8622predep_objects=$lt_predep_objects
8623
8624# Dependencies to place after the objects being linked to create a
8625# shared library.
8626postdep_objects=$lt_postdep_objects
8627
8628# Dependencies to place before the objects being linked to create a
8629# shared library.
8630predeps=$lt_predeps
8631
8632# Dependencies to place after the objects being linked to create a
8633# shared library.
8634postdeps=$lt_postdeps
8635
8636# The library search path used internally by the compiler when linking
8637# a shared library.
8638compiler_lib_search_path=$lt_compiler_lib_search_path
8639
drh71eb93e2001-09-28 01:34:43 +00008640# Method to check whether dependent libraries are shared objects.
8641deplibs_check_method=$lt_deplibs_check_method
8642
8643# Command to use when deplibs_check_method == file_magic.
8644file_magic_cmd=$lt_file_magic_cmd
8645
8646# Flag that allows shared libraries with undefined symbols to be built.
8647allow_undefined_flag=$lt_allow_undefined_flag
8648
8649# Flag that forces no undefined symbols.
8650no_undefined_flag=$lt_no_undefined_flag
8651
8652# Commands used to finish a libtool library installation in a directory.
8653finish_cmds=$lt_finish_cmds
8654
8655# Same as above, but a single script fragment to be evaled but not shown.
8656finish_eval=$lt_finish_eval
8657
8658# Take the output of nm and produce a listing of raw symbols and C names.
a.rottmann9bc8b932004-02-29 15:18:31 +00008659global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
drh71eb93e2001-09-28 01:34:43 +00008660
8661# Transform the output of nm in a proper C declaration
a.rottmann9bc8b932004-02-29 15:18:31 +00008662global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
drh71eb93e2001-09-28 01:34:43 +00008663
8664# Transform the output of nm in a C name address pair
a.rottmann9bc8b932004-02-29 15:18:31 +00008665global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
drh71eb93e2001-09-28 01:34:43 +00008666
8667# This is the shared library runtime path variable.
8668runpath_var=$runpath_var
8669
8670# This is the shared library path variable.
8671shlibpath_var=$shlibpath_var
8672
8673# Is shlibpath searched before the hard-coded library search path?
8674shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8675
8676# How to hardcode a shared library path into an executable.
8677hardcode_action=$hardcode_action
8678
8679# Whether we should hardcode library paths into libraries.
8680hardcode_into_libs=$hardcode_into_libs
8681
8682# Flag to hardcode \$libdir into a binary during linking.
8683# This must work even if \$libdir does not exist.
8684hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8685
a.rottmann9bc8b932004-02-29 15:18:31 +00008686# If ld is used when linking, flag to hardcode \$libdir into
8687# a binary during linking. This must work even if \$libdir does
8688# not exist.
8689hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8690
drh71eb93e2001-09-28 01:34:43 +00008691# Whether we need a single -rpath flag with a separated argument.
8692hardcode_libdir_separator=$lt_hardcode_libdir_separator
8693
a.rottmann9bc8b932004-02-29 15:18:31 +00008694# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
drh71eb93e2001-09-28 01:34:43 +00008695# resulting binary.
8696hardcode_direct=$hardcode_direct
8697
8698# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8699# resulting binary.
8700hardcode_minus_L=$hardcode_minus_L
8701
8702# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8703# the resulting binary.
8704hardcode_shlibpath_var=$hardcode_shlibpath_var
8705
a.rottmann9bc8b932004-02-29 15:18:31 +00008706# Set to yes if building a shared library automatically hardcodes DIR into the library
8707# and all subsequent libraries and executables linked against it.
8708hardcode_automatic=$hardcode_automatic
8709
drh71eb93e2001-09-28 01:34:43 +00008710# Variables whose values should be saved in libtool wrapper scripts and
8711# restored at relink time.
8712variables_saved_for_relink="$variables_saved_for_relink"
8713
8714# Whether libtool must link a program against all its dependency libraries.
8715link_all_deplibs=$link_all_deplibs
8716
8717# Compile-time system search path for libraries
8718sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8719
8720# Run-time system search path for libraries
8721sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8722
8723# Fix the shell variable \$srcfile for the compiler.
8724fix_srcfile_path="$fix_srcfile_path"
8725
8726# Set to yes if exported symbols are required.
8727always_export_symbols=$always_export_symbols
8728
8729# The commands to list exported symbols.
8730export_symbols_cmds=$lt_export_symbols_cmds
8731
8732# The commands to extract the exported symbol list from a shared archive.
8733extract_expsyms_cmds=$lt_extract_expsyms_cmds
8734
8735# Symbols that should not be listed in the preloaded symbols.
8736exclude_expsyms=$lt_exclude_expsyms
8737
8738# Symbols that must always be exported.
8739include_expsyms=$lt_include_expsyms
8740
8741# ### END LIBTOOL CONFIG
8742
8743__EOF__
8744
a.rottmann9bc8b932004-02-29 15:18:31 +00008745
drh71eb93e2001-09-28 01:34:43 +00008746 case $host_os in
8747 aix3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008748 cat <<\EOF >> "$cfgfile"
drh71eb93e2001-09-28 01:34:43 +00008749
8750# AIX sometimes has problems with the GCC collect2 program. For some
8751# reason, if we set the COLLECT_NAMES environment variable, the problems
8752# vanish in a puff of smoke.
8753if test "X${COLLECT_NAMES+set}" != Xset; then
8754 COLLECT_NAMES=
8755 export COLLECT_NAMES
8756fi
8757EOF
8758 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008759 esac
drh71eb93e2001-09-28 01:34:43 +00008760
drh71eb93e2001-09-28 01:34:43 +00008761 # We use sed instead of cat because bash on DJGPP gets confused if
8762 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8763 # text mode, it properly converts lines to CR/LF. This bash problem
8764 # is reportedly fixed, but why not run on old versions too?
a.rottmann9bc8b932004-02-29 15:18:31 +00008765 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
drh71eb93e2001-09-28 01:34:43 +00008766
a.rottmann9bc8b932004-02-29 15:18:31 +00008767 mv -f "$cfgfile" "$ofile" || \
8768 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
drh71eb93e2001-09-28 01:34:43 +00008769 chmod +x "$ofile"
a.rottmann9bc8b932004-02-29 15:18:31 +00008770
8771else
8772 # If there is no Makefile yet, we rely on a make rule to execute
8773 # `config.status --recheck' to rerun these tests and create the
8774 # libtool script then.
8775 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
8776 if test -f "$ltmain_in"; then
8777 test -f Makefile && make "$ltmain"
8778 fi
drh71eb93e2001-09-28 01:34:43 +00008779fi
8780
drh71eb93e2001-09-28 01:34:43 +00008781
a.rottmann9bc8b932004-02-29 15:18:31 +00008782ac_ext=c
8783ac_cpp='$CPP $CPPFLAGS'
8784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8786ac_compiler_gnu=$ac_cv_c_compiler_gnu
8787
8788CC="$lt_save_CC"
8789
8790
8791# Check whether --with-tags or --without-tags was given.
8792if test "${with_tags+set}" = set; then
8793 withval="$with_tags"
8794 tagnames="$withval"
8795fi;
8796
8797if test -f "$ltmain" && test -n "$tagnames"; then
8798 if test ! -f "${ofile}"; then
8799 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8800echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8801 fi
8802
8803 if test -z "$LTCC"; then
8804 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8805 if test -z "$LTCC"; then
8806 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8807echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8808 else
8809 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8810echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8811 fi
8812 fi
8813
8814 # Extract list of available tagged configurations in $ofile.
8815 # Note that this assumes the entire list is on one line.
8816 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8817
8818 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8819 for tagname in $tagnames; do
8820 IFS="$lt_save_ifs"
8821 # Check whether tagname contains only valid characters
8822 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8823 "") ;;
8824 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8825echo "$as_me: error: invalid tag name: $tagname" >&2;}
8826 { (exit 1); exit 1; }; }
8827 ;;
8828 esac
8829
8830 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8831 then
8832 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8833echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8834 { (exit 1); exit 1; }; }
8835 fi
8836
8837 # Update the list of available tags.
8838 if test -n "$tagname"; then
8839 echo appending configuration tag \"$tagname\" to $ofile
8840
8841 case $tagname in
8842 CXX)
8843 if test -n "$CXX" && test "X$CXX" != "Xno"; then
8844 ac_ext=cc
8845ac_cpp='$CXXCPP $CPPFLAGS'
8846ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8847ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8848ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8849
8850
8851
8852
8853archive_cmds_need_lc_CXX=no
8854allow_undefined_flag_CXX=
8855always_export_symbols_CXX=no
8856archive_expsym_cmds_CXX=
8857export_dynamic_flag_spec_CXX=
8858hardcode_direct_CXX=no
8859hardcode_libdir_flag_spec_CXX=
8860hardcode_libdir_flag_spec_ld_CXX=
8861hardcode_libdir_separator_CXX=
8862hardcode_minus_L_CXX=no
8863hardcode_automatic_CXX=no
8864module_cmds_CXX=
8865module_expsym_cmds_CXX=
8866link_all_deplibs_CXX=unknown
8867old_archive_cmds_CXX=$old_archive_cmds
8868no_undefined_flag_CXX=
8869whole_archive_flag_spec_CXX=
8870enable_shared_with_static_runtimes_CXX=no
8871
8872# Dependencies to place before and after the object being linked:
8873predep_objects_CXX=
8874postdep_objects_CXX=
8875predeps_CXX=
8876postdeps_CXX=
8877compiler_lib_search_path_CXX=
8878
8879# Source file extension for C++ test sources.
8880ac_ext=cc
8881
8882# Object file extension for compiled C++ test sources.
8883objext=o
8884objext_CXX=$objext
8885
8886# Code to be used in simple compile tests
8887lt_simple_compile_test_code="int some_variable = 0;\n"
8888
8889# Code to be used in simple link tests
8890lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
8891
8892# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8893
8894# If no C compiler was specified, use CC.
8895LTCC=${LTCC-"$CC"}
8896
8897# Allow CC to be a program name with arguments.
8898compiler=$CC
8899
8900
8901# Allow CC to be a program name with arguments.
8902lt_save_CC=$CC
8903lt_save_LD=$LD
8904lt_save_GCC=$GCC
8905GCC=$GXX
8906lt_save_with_gnu_ld=$with_gnu_ld
8907lt_save_path_LD=$lt_cv_path_LD
8908if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
8909 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
8910else
8911 unset lt_cv_prog_gnu_ld
8912fi
8913if test -n "${lt_cv_path_LDCXX+set}"; then
8914 lt_cv_path_LD=$lt_cv_path_LDCXX
8915else
8916 unset lt_cv_path_LD
8917fi
8918test -z "${LDCXX+set}" || LD=$LDCXX
8919CC=${CXX-"c++"}
8920compiler=$CC
8921compiler_CXX=$CC
8922cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8923
8924# We don't want -fno-exception wen compiling C++ code, so set the
8925# no_builtin_flag separately
8926if test "$GXX" = yes; then
8927 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8928else
8929 lt_prog_compiler_no_builtin_flag_CXX=
8930fi
8931
8932if test "$GXX" = yes; then
8933 # Set up default GNU C++ configuration
8934
8935
8936# Check whether --with-gnu-ld or --without-gnu-ld was given.
8937if test "${with_gnu_ld+set}" = set; then
8938 withval="$with_gnu_ld"
8939 test "$withval" = no || with_gnu_ld=yes
8940else
8941 with_gnu_ld=no
8942fi;
8943ac_prog=ld
8944if test "$GCC" = yes; then
8945 # Check if gcc -print-prog-name=ld gives a path.
8946 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8947echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
8948 case $host in
8949 *-*-mingw*)
8950 # gcc leaves a trailing carriage return which upsets mingw
8951 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8952 *)
8953 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8954 esac
8955 case $ac_prog in
8956 # Accept absolute paths.
8957 [\\/]* | ?:[\\/]*)
8958 re_direlt='/[^/][^/]*/\.\./'
8959 # Canonicalize the pathname of ld
8960 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8961 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8962 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8963 done
8964 test -z "$LD" && LD="$ac_prog"
8965 ;;
8966 "")
8967 # If it fails, then pretend we aren't using GCC.
8968 ac_prog=ld
8969 ;;
8970 *)
8971 # If it is relative, then search for the first ld in PATH.
8972 with_gnu_ld=unknown
8973 ;;
8974 esac
8975elif test "$with_gnu_ld" = yes; then
8976 echo "$as_me:$LINENO: checking for GNU ld" >&5
8977echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8978else
8979 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8980echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8981fi
8982if test "${lt_cv_path_LD+set}" = set; then
8983 echo $ECHO_N "(cached) $ECHO_C" >&6
8984else
8985 if test -z "$LD"; then
8986 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8987 for ac_dir in $PATH; do
8988 IFS="$lt_save_ifs"
8989 test -z "$ac_dir" && ac_dir=.
8990 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8991 lt_cv_path_LD="$ac_dir/$ac_prog"
8992 # Check to see if the program is GNU ld. I'd rather use --version,
8993 # but apparently some GNU ld's only accept -v.
8994 # Break only if it was the GNU/non-GNU ld that we prefer.
8995 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8996 *GNU* | *'with BFD'*)
8997 test "$with_gnu_ld" != no && break
8998 ;;
8999 *)
9000 test "$with_gnu_ld" != yes && break
9001 ;;
9002 esac
9003 fi
9004 done
9005 IFS="$lt_save_ifs"
9006else
9007 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9008fi
9009fi
9010
9011LD="$lt_cv_path_LD"
9012if test -n "$LD"; then
9013 echo "$as_me:$LINENO: result: $LD" >&5
9014echo "${ECHO_T}$LD" >&6
9015else
9016 echo "$as_me:$LINENO: result: no" >&5
9017echo "${ECHO_T}no" >&6
9018fi
9019test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9020echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9021 { (exit 1); exit 1; }; }
9022echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9023echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9024if test "${lt_cv_prog_gnu_ld+set}" = set; then
9025 echo $ECHO_N "(cached) $ECHO_C" >&6
9026else
9027 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9028case `$LD -v 2>&1 </dev/null` in
9029*GNU* | *'with BFD'*)
9030 lt_cv_prog_gnu_ld=yes
9031 ;;
9032*)
9033 lt_cv_prog_gnu_ld=no
9034 ;;
9035esac
9036fi
9037echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9038echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9039with_gnu_ld=$lt_cv_prog_gnu_ld
9040
9041
9042
9043 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9044 # archiving commands below assume that GNU ld is being used.
9045 if test "$with_gnu_ld" = yes; then
9046 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9047 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'
9048
9049 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9050 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9051
9052 # If archive_cmds runs LD, not CC, wlarc should be empty
9053 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9054 # investigate it a little bit more. (MM)
9055 wlarc='${wl}'
9056
9057 # ancient GNU ld didn't support --whole-archive et. al.
9058 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9059 grep 'no-whole-archive' > /dev/null; then
9060 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9061 else
9062 whole_archive_flag_spec_CXX=
9063 fi
9064 else
9065 with_gnu_ld=no
9066 wlarc=
9067
9068 # A generic and very simple default shared library creation
9069 # command for GNU C++ for the case where it uses the native
9070 # linker, instead of GNU ld. If possible, this setting should
9071 # overridden to take advantage of the native linker features on
9072 # the platform it is being used on.
9073 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9074 fi
9075
9076 # Commands to make compiler produce verbose output that lists
9077 # what "hidden" libraries, object files and flags are used when
9078 # linking a shared library.
9079 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9080
9081else
9082 GXX=no
9083 with_gnu_ld=no
9084 wlarc=
9085fi
9086
9087# PORTME: fill in a description of your system's C++ link characteristics
9088echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9089echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9090ld_shlibs_CXX=yes
9091case $host_os in
9092 aix3*)
9093 # FIXME: insert proper C++ library support
9094 ld_shlibs_CXX=no
9095 ;;
9096 aix4* | aix5*)
9097 if test "$host_cpu" = ia64; then
9098 # On IA64, the linker does run time linking by default, so we don't
9099 # have to do anything special.
9100 aix_use_runtimelinking=no
9101 exp_sym_flag='-Bexport'
9102 no_entry_flag=""
9103 else
9104 aix_use_runtimelinking=no
9105
9106 # Test if we are trying to use run time linking or normal
9107 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9108 # need to do runtime linking.
9109 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9110 for ld_flag in $LDFLAGS; do
9111 case $ld_flag in
9112 *-brtl*)
9113 aix_use_runtimelinking=yes
9114 break
9115 ;;
9116 esac
9117 done
9118 esac
9119
9120 exp_sym_flag='-bexport'
9121 no_entry_flag='-bnoentry'
9122 fi
9123
9124 # When large executables or shared objects are built, AIX ld can
9125 # have problems creating the table of contents. If linking a library
9126 # or program results in "error TOC overflow" add -mminimal-toc to
9127 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9128 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9129
9130 archive_cmds_CXX=''
9131 hardcode_direct_CXX=yes
9132 hardcode_libdir_separator_CXX=':'
9133 link_all_deplibs_CXX=yes
9134
9135 if test "$GXX" = yes; then
9136 case $host_os in aix4.012|aix4.012.*)
9137 # We only want to do this on AIX 4.2 and lower, the check
9138 # below for broken collect2 doesn't work under 4.3+
9139 collect2name=`${CC} -print-prog-name=collect2`
9140 if test -f "$collect2name" && \
9141 strings "$collect2name" | grep resolve_lib_name >/dev/null
9142 then
9143 # We have reworked collect2
9144 hardcode_direct_CXX=yes
9145 else
9146 # We have old collect2
9147 hardcode_direct_CXX=unsupported
9148 # It fails to find uninstalled libraries when the uninstalled
9149 # path is not listed in the libpath. Setting hardcode_minus_L
9150 # to unsupported forces relinking
9151 hardcode_minus_L_CXX=yes
9152 hardcode_libdir_flag_spec_CXX='-L$libdir'
9153 hardcode_libdir_separator_CXX=
9154 fi
9155 esac
9156 shared_flag='-shared'
9157 else
9158 # not using gcc
9159 if test "$host_cpu" = ia64; then
9160 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9161 # chokes on -Wl,-G. The following line is correct:
9162 shared_flag='-G'
9163 else
9164 if test "$aix_use_runtimelinking" = yes; then
9165 shared_flag='${wl}-G'
9166 else
9167 shared_flag='${wl}-bM:SRE'
9168 fi
9169 fi
9170 fi
9171
9172 # It seems that -bexpall does not export symbols beginning with
9173 # underscore (_), so it is better to generate a list of symbols to export.
9174 always_export_symbols_CXX=yes
9175 if test "$aix_use_runtimelinking" = yes; then
9176 # Warning - without using the other runtime loading flags (-brtl),
9177 # -berok will link without error, but may produce a broken library.
9178 allow_undefined_flag_CXX='-berok'
9179 # Determine the default libpath from the value encoded in an empty executable.
9180 cat >conftest.$ac_ext <<_ACEOF
9181/* confdefs.h. */
9182_ACEOF
9183cat confdefs.h >>conftest.$ac_ext
9184cat >>conftest.$ac_ext <<_ACEOF
9185/* end confdefs.h. */
9186
9187int
9188main ()
9189{
9190
9191 ;
9192 return 0;
9193}
9194_ACEOF
9195rm -f conftest.$ac_objext conftest$ac_exeext
9196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9197 (eval $ac_link) 2>conftest.er1
9198 ac_status=$?
9199 grep -v '^ *+' conftest.er1 >conftest.err
9200 rm -f conftest.er1
9201 cat conftest.err >&5
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00009204 { ac_try='test -z "$ac_cxx_werror_flag"
9205 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00009206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9207 (eval $ac_try) 2>&5
9208 ac_status=$?
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); }; } &&
9211 { ac_try='test -s conftest$ac_exeext'
9212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9213 (eval $ac_try) 2>&5
9214 ac_status=$?
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); }; }; then
9217
9218aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9219}'`
9220# Check for a 64-bit object if we didn't find anything.
9221if 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; }
9222}'`; fi
9223else
9224 echo "$as_me: failed program was:" >&5
9225sed 's/^/| /' conftest.$ac_ext >&5
9226
9227fi
9228rm -f conftest.err conftest.$ac_objext \
9229 conftest$ac_exeext conftest.$ac_ext
9230if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9231
9232 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9233
9234 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9235 else
9236 if test "$host_cpu" = ia64; then
9237 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9238 allow_undefined_flag_CXX="-z nodefs"
9239 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9240 else
9241 # Determine the default libpath from the value encoded in an empty executable.
9242 cat >conftest.$ac_ext <<_ACEOF
9243/* confdefs.h. */
9244_ACEOF
9245cat confdefs.h >>conftest.$ac_ext
9246cat >>conftest.$ac_ext <<_ACEOF
9247/* end confdefs.h. */
9248
9249int
9250main ()
9251{
9252
9253 ;
9254 return 0;
9255}
9256_ACEOF
9257rm -f conftest.$ac_objext conftest$ac_exeext
9258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9259 (eval $ac_link) 2>conftest.er1
9260 ac_status=$?
9261 grep -v '^ *+' conftest.er1 >conftest.err
9262 rm -f conftest.er1
9263 cat conftest.err >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +00009266 { ac_try='test -z "$ac_cxx_werror_flag"
9267 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +00009268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9269 (eval $ac_try) 2>&5
9270 ac_status=$?
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); }; } &&
9273 { ac_try='test -s conftest$ac_exeext'
9274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9275 (eval $ac_try) 2>&5
9276 ac_status=$?
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); }; }; then
9279
9280aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9281}'`
9282# Check for a 64-bit object if we didn't find anything.
9283if 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; }
9284}'`; fi
9285else
9286 echo "$as_me: failed program was:" >&5
9287sed 's/^/| /' conftest.$ac_ext >&5
9288
9289fi
9290rm -f conftest.err conftest.$ac_objext \
9291 conftest$ac_exeext conftest.$ac_ext
9292if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9293
9294 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9295 # Warning - without using the other run time loading flags,
9296 # -berok will link without error, but may produce a broken library.
9297 no_undefined_flag_CXX=' ${wl}-bernotok'
9298 allow_undefined_flag_CXX=' ${wl}-berok'
9299 # -bexpall does not export symbols beginning with underscore (_)
9300 always_export_symbols_CXX=yes
9301 # Exported symbols can be pulled into shared objects from archives
9302 whole_archive_flag_spec_CXX=' '
9303 archive_cmds_need_lc_CXX=yes
9304 # This is similar to how AIX traditionally builds it's shared libraries.
9305 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9306 fi
9307 fi
9308 ;;
9309 chorus*)
9310 case $cc_basename in
9311 *)
9312 # FIXME: insert proper C++ library support
9313 ld_shlibs_CXX=no
9314 ;;
9315 esac
9316 ;;
9317
9318 cygwin* | mingw* | pw32*)
9319 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9320 # as there is no search path for DLLs.
9321 hardcode_libdir_flag_spec_CXX='-L$libdir'
9322 allow_undefined_flag_CXX=unsupported
9323 always_export_symbols_CXX=no
9324 enable_shared_with_static_runtimes_CXX=yes
9325
9326 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9327 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9328 # If the export-symbols file already is a .def file (1st line
9329 # is EXPORTS), use it as is; otherwise, prepend...
9330 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9331 cp $export_symbols $output_objdir/$soname.def;
9332 else
9333 echo EXPORTS > $output_objdir/$soname.def;
9334 cat $export_symbols >> $output_objdir/$soname.def;
9335 fi~
9336 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9337 else
9338 ld_shlibs_CXX=no
9339 fi
9340 ;;
9341
9342 darwin* | rhapsody*)
9343 if test "$GXX" = yes; then
9344 archive_cmds_need_lc_CXX=no
9345 case "$host_os" in
9346 rhapsody* | darwin1.[012])
9347 allow_undefined_flag_CXX='-undefined suppress'
9348 ;;
9349 *) # Darwin 1.3 on
9350 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9351 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9352 else
9353 case ${MACOSX_DEPLOYMENT_TARGET} in
9354 10.[012])
9355 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9356 ;;
9357 10.*)
9358 allow_undefined_flag_CXX='-undefined dynamic_lookup'
9359 ;;
9360 esac
9361 fi
9362 ;;
9363 esac
9364 lt_int_apple_cc_single_mod=no
9365 output_verbose_link_cmd='echo'
9366 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9367 lt_int_apple_cc_single_mod=yes
9368 fi
9369 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9370 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9371 else
9372 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9373 fi
9374 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9375
9376 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9377 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9378 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}'
9379 else
9380 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9381 fi
9382 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}'
9383 hardcode_direct_CXX=no
9384 hardcode_automatic_CXX=yes
9385 hardcode_shlibpath_var_CXX=unsupported
9386 whole_archive_flag_spec_CXX='-all_load $convenience'
9387 link_all_deplibs_CXX=yes
9388 else
9389 ld_shlibs_CXX=no
9390 fi
9391 ;;
9392
9393 dgux*)
9394 case $cc_basename in
9395 ec++)
9396 # FIXME: insert proper C++ library support
9397 ld_shlibs_CXX=no
9398 ;;
9399 ghcx)
9400 # Green Hills C++ Compiler
9401 # FIXME: insert proper C++ library support
9402 ld_shlibs_CXX=no
9403 ;;
9404 *)
9405 # FIXME: insert proper C++ library support
9406 ld_shlibs_CXX=no
9407 ;;
9408 esac
9409 ;;
9410 freebsd12*)
9411 # C++ shared libraries reported to be fairly broken before switch to ELF
9412 ld_shlibs_CXX=no
9413 ;;
9414 freebsd-elf*)
9415 archive_cmds_need_lc_CXX=no
9416 ;;
9417 freebsd* | kfreebsd*-gnu)
9418 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9419 # conventions
9420 ld_shlibs_CXX=yes
9421 ;;
9422 gnu*)
9423 ;;
9424 hpux9*)
9425 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9426 hardcode_libdir_separator_CXX=:
9427 export_dynamic_flag_spec_CXX='${wl}-E'
9428 hardcode_direct_CXX=yes
9429 hardcode_minus_L_CXX=yes # Not in the search PATH,
9430 # but as the default
9431 # location of the library.
9432
9433 case $cc_basename in
9434 CC)
9435 # FIXME: insert proper C++ library support
9436 ld_shlibs_CXX=no
9437 ;;
9438 aCC)
9439 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'
9440 # Commands to make compiler produce verbose output that lists
9441 # what "hidden" libraries, object files and flags are used when
9442 # linking a shared library.
9443 #
9444 # There doesn't appear to be a way to prevent this compiler from
9445 # explicitly linking system object files so we need to strip them
9446 # from the output so that they don't get included in the library
9447 # dependencies.
9448 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9449 ;;
9450 *)
9451 if test "$GXX" = yes; then
9452 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'
9453 else
9454 # FIXME: insert proper C++ library support
9455 ld_shlibs_CXX=no
9456 fi
9457 ;;
9458 esac
9459 ;;
9460 hpux10*|hpux11*)
9461 if test $with_gnu_ld = no; then
9462 case "$host_cpu" in
9463 hppa*64*)
9464 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9465 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9466 hardcode_libdir_separator_CXX=:
9467 ;;
9468 ia64*)
9469 hardcode_libdir_flag_spec_CXX='-L$libdir'
9470 ;;
9471 *)
9472 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9473 hardcode_libdir_separator_CXX=:
9474 export_dynamic_flag_spec_CXX='${wl}-E'
9475 ;;
9476 esac
9477 fi
9478 case "$host_cpu" in
9479 hppa*64*)
9480 hardcode_direct_CXX=no
9481 hardcode_shlibpath_var_CXX=no
9482 ;;
9483 ia64*)
9484 hardcode_direct_CXX=no
9485 hardcode_shlibpath_var_CXX=no
9486 hardcode_minus_L_CXX=yes # Not in the search PATH,
9487 # but as the default
9488 # location of the library.
9489 ;;
9490 *)
9491 hardcode_direct_CXX=yes
9492 hardcode_minus_L_CXX=yes # Not in the search PATH,
9493 # but as the default
9494 # location of the library.
9495 ;;
9496 esac
9497
9498 case $cc_basename in
9499 CC)
9500 # FIXME: insert proper C++ library support
9501 ld_shlibs_CXX=no
9502 ;;
9503 aCC)
9504 case "$host_cpu" in
9505 hppa*64*|ia64*)
9506 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9507 ;;
9508 *)
9509 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9510 ;;
9511 esac
9512 # Commands to make compiler produce verbose output that lists
9513 # what "hidden" libraries, object files and flags are used when
9514 # linking a shared library.
9515 #
9516 # There doesn't appear to be a way to prevent this compiler from
9517 # explicitly linking system object files so we need to strip them
9518 # from the output so that they don't get included in the library
9519 # dependencies.
9520 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'
9521 ;;
9522 *)
9523 if test "$GXX" = yes; then
9524 if test $with_gnu_ld = no; then
9525 case "$host_cpu" in
9526 ia64*|hppa*64*)
9527 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9528 ;;
9529 *)
9530 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'
9531 ;;
9532 esac
9533 fi
9534 else
9535 # FIXME: insert proper C++ library support
9536 ld_shlibs_CXX=no
9537 fi
9538 ;;
9539 esac
9540 ;;
9541 irix5* | irix6*)
9542 case $cc_basename in
9543 CC)
9544 # SGI C++
9545 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9546
9547 # Archives containing C++ object files must be created using
9548 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9549 # necessary to make sure instantiated templates are included
9550 # in the archive.
9551 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9552 ;;
9553 *)
9554 if test "$GXX" = yes; then
9555 if test "$with_gnu_ld" = no; then
9556 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9557 else
9558 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'
9559 fi
9560 fi
9561 link_all_deplibs_CXX=yes
9562 ;;
9563 esac
9564 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9565 hardcode_libdir_separator_CXX=:
9566 ;;
9567 linux*)
9568 case $cc_basename in
9569 KCC)
9570 # Kuck and Associates, Inc. (KAI) C++ Compiler
9571
9572 # KCC will only create a shared library if the output file
9573 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9574 # to its proper name (with version) after linking.
9575 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'
9576 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'
9577 # Commands to make compiler produce verbose output that lists
9578 # what "hidden" libraries, object files and flags are used when
9579 # linking a shared library.
9580 #
9581 # There doesn't appear to be a way to prevent this compiler from
9582 # explicitly linking system object files so we need to strip them
9583 # from the output so that they don't get included in the library
9584 # dependencies.
9585 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'
9586
9587 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9588 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9589
9590 # Archives containing C++ object files must be created using
9591 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9592 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9593 ;;
9594 icpc)
9595 # Intel C++
9596 with_gnu_ld=yes
9597 archive_cmds_need_lc_CXX=no
9598 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9599 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'
9600 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9601 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9602 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9603 ;;
9604 cxx)
9605 # Compaq C++
9606 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9607 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'
9608
9609 runpath_var=LD_RUN_PATH
9610 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9611 hardcode_libdir_separator_CXX=:
9612
9613 # Commands to make compiler produce verbose output that lists
9614 # what "hidden" libraries, object files and flags are used when
9615 # linking a shared library.
9616 #
9617 # There doesn't appear to be a way to prevent this compiler from
9618 # explicitly linking system object files so we need to strip them
9619 # from the output so that they don't get included in the library
9620 # dependencies.
9621 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'
9622 ;;
9623 esac
9624 ;;
9625 lynxos*)
9626 # FIXME: insert proper C++ library support
9627 ld_shlibs_CXX=no
9628 ;;
9629 m88k*)
9630 # FIXME: insert proper C++ library support
9631 ld_shlibs_CXX=no
9632 ;;
9633 mvs*)
9634 case $cc_basename in
9635 cxx)
9636 # FIXME: insert proper C++ library support
9637 ld_shlibs_CXX=no
9638 ;;
9639 *)
9640 # FIXME: insert proper C++ library support
9641 ld_shlibs_CXX=no
9642 ;;
9643 esac
9644 ;;
9645 netbsd* | knetbsd*-gnu)
9646 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9647 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9648 wlarc=
9649 hardcode_libdir_flag_spec_CXX='-R$libdir'
9650 hardcode_direct_CXX=yes
9651 hardcode_shlibpath_var_CXX=no
9652 fi
9653 # Workaround some broken pre-1.5 toolchains
9654 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9655 ;;
9656 osf3*)
9657 case $cc_basename in
9658 KCC)
9659 # Kuck and Associates, Inc. (KAI) C++ Compiler
9660
9661 # KCC will only create a shared library if the output file
9662 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9663 # to its proper name (with version) after linking.
9664 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'
9665
9666 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9667 hardcode_libdir_separator_CXX=:
9668
9669 # Archives containing C++ object files must be created using
9670 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9671 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9672
9673 ;;
9674 RCC)
9675 # Rational C++ 2.4.1
9676 # FIXME: insert proper C++ library support
9677 ld_shlibs_CXX=no
9678 ;;
9679 cxx)
9680 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9681 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9682
9683 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9684 hardcode_libdir_separator_CXX=:
9685
9686 # Commands to make compiler produce verbose output that lists
9687 # what "hidden" libraries, object files and flags are used when
9688 # linking a shared library.
9689 #
9690 # There doesn't appear to be a way to prevent this compiler from
9691 # explicitly linking system object files so we need to strip them
9692 # from the output so that they don't get included in the library
9693 # dependencies.
9694 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'
9695 ;;
9696 *)
9697 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9698 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9699 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9700
9701 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9702 hardcode_libdir_separator_CXX=:
9703
9704 # Commands to make compiler produce verbose output that lists
9705 # what "hidden" libraries, object files and flags are used when
9706 # linking a shared library.
9707 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9708
9709 else
9710 # FIXME: insert proper C++ library support
9711 ld_shlibs_CXX=no
9712 fi
9713 ;;
9714 esac
9715 ;;
9716 osf4* | osf5*)
9717 case $cc_basename in
9718 KCC)
9719 # Kuck and Associates, Inc. (KAI) C++ Compiler
9720
9721 # KCC will only create a shared library if the output file
9722 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9723 # to its proper name (with version) after linking.
9724 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'
9725
9726 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9727 hardcode_libdir_separator_CXX=:
9728
9729 # Archives containing C++ object files must be created using
9730 # the KAI C++ compiler.
9731 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9732 ;;
9733 RCC)
9734 # Rational C++ 2.4.1
9735 # FIXME: insert proper C++ library support
9736 ld_shlibs_CXX=no
9737 ;;
9738 cxx)
9739 allow_undefined_flag_CXX=' -expect_unresolved \*'
9740 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9741 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9742 echo "-hidden">> $lib.exp~
9743 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
9744 $rm $lib.exp'
9745
9746 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9747 hardcode_libdir_separator_CXX=:
9748
9749 # Commands to make compiler produce verbose output that lists
9750 # what "hidden" libraries, object files and flags are used when
9751 # linking a shared library.
9752 #
9753 # There doesn't appear to be a way to prevent this compiler from
9754 # explicitly linking system object files so we need to strip them
9755 # from the output so that they don't get included in the library
9756 # dependencies.
9757 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'
9758 ;;
9759 *)
9760 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9761 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9762 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9763
9764 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9765 hardcode_libdir_separator_CXX=:
9766
9767 # Commands to make compiler produce verbose output that lists
9768 # what "hidden" libraries, object files and flags are used when
9769 # linking a shared library.
9770 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9771
9772 else
9773 # FIXME: insert proper C++ library support
9774 ld_shlibs_CXX=no
9775 fi
9776 ;;
9777 esac
9778 ;;
9779 psos*)
9780 # FIXME: insert proper C++ library support
9781 ld_shlibs_CXX=no
9782 ;;
9783 sco*)
9784 archive_cmds_need_lc_CXX=no
9785 case $cc_basename in
9786 CC)
9787 # FIXME: insert proper C++ library support
9788 ld_shlibs_CXX=no
9789 ;;
9790 *)
9791 # FIXME: insert proper C++ library support
9792 ld_shlibs_CXX=no
9793 ;;
9794 esac
9795 ;;
9796 sunos4*)
9797 case $cc_basename in
9798 CC)
9799 # Sun C++ 4.x
9800 # FIXME: insert proper C++ library support
9801 ld_shlibs_CXX=no
9802 ;;
9803 lcc)
9804 # Lucid
9805 # FIXME: insert proper C++ library support
9806 ld_shlibs_CXX=no
9807 ;;
9808 *)
9809 # FIXME: insert proper C++ library support
9810 ld_shlibs_CXX=no
9811 ;;
9812 esac
9813 ;;
9814 solaris*)
9815 case $cc_basename in
9816 CC)
9817 # Sun C++ 4.2, 5.x and Centerline C++
9818 no_undefined_flag_CXX=' -zdefs'
9819 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9820 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9821 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9822
9823 hardcode_libdir_flag_spec_CXX='-R$libdir'
9824 hardcode_shlibpath_var_CXX=no
9825 case $host_os in
9826 solaris2.0-5 | solaris2.0-5.*) ;;
9827 *)
9828 # The C++ compiler is used as linker so we must use $wl
9829 # flag to pass the commands to the underlying system
9830 # linker.
9831 # Supported since Solaris 2.6 (maybe 2.5.1?)
9832 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9833 ;;
9834 esac
9835 link_all_deplibs_CXX=yes
9836
9837 # Commands to make compiler produce verbose output that lists
9838 # what "hidden" libraries, object files and flags are used when
9839 # linking a shared library.
9840 #
9841 # There doesn't appear to be a way to prevent this compiler from
9842 # explicitly linking system object files so we need to strip them
9843 # from the output so that they don't get included in the library
9844 # dependencies.
9845 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9846
9847 # Archives containing C++ object files must be created using
9848 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9849 # necessary to make sure instantiated templates are included
9850 # in the archive.
9851 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9852 ;;
9853 gcx)
9854 # Green Hills C++ Compiler
9855 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9856
9857 # The C++ compiler must be used to create the archive.
9858 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9859 ;;
9860 *)
9861 # GNU C++ compiler with Solaris linker
9862 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9863 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9864 if $CC --version | grep -v '^2\.7' > /dev/null; then
9865 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9866 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9867 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9868
9869 # Commands to make compiler produce verbose output that lists
9870 # what "hidden" libraries, object files and flags are used when
9871 # linking a shared library.
9872 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9873 else
9874 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9875 # platform.
9876 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9877 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9878 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9879
9880 # Commands to make compiler produce verbose output that lists
9881 # what "hidden" libraries, object files and flags are used when
9882 # linking a shared library.
9883 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9884 fi
9885
9886 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9887 fi
9888 ;;
9889 esac
9890 ;;
9891 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9892 archive_cmds_need_lc_CXX=no
9893 ;;
9894 tandem*)
9895 case $cc_basename in
9896 NCC)
9897 # NonStop-UX NCC 3.20
9898 # FIXME: insert proper C++ library support
9899 ld_shlibs_CXX=no
9900 ;;
9901 *)
9902 # FIXME: insert proper C++ library support
9903 ld_shlibs_CXX=no
9904 ;;
9905 esac
9906 ;;
9907 vxworks*)
9908 # FIXME: insert proper C++ library support
9909 ld_shlibs_CXX=no
9910 ;;
9911 *)
9912 # FIXME: insert proper C++ library support
9913 ld_shlibs_CXX=no
9914 ;;
9915esac
9916echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
9917echo "${ECHO_T}$ld_shlibs_CXX" >&6
9918test "$ld_shlibs_CXX" = no && can_build_shared=no
9919
9920GCC_CXX="$GXX"
9921LD_CXX="$LD"
9922
9923
9924cat > conftest.$ac_ext <<EOF
9925class Foo
9926{
9927public:
9928 Foo (void) { a = 0; }
9929private:
9930 int a;
9931};
9932EOF
9933
9934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9935 (eval $ac_compile) 2>&5
9936 ac_status=$?
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); }; then
9939 # Parse the compiler output and extract the necessary
9940 # objects, libraries and library flags.
9941
9942 # Sentinel used to keep track of whether or not we are before
9943 # the conftest object file.
9944 pre_test_object_deps_done=no
9945
9946 # The `*' in the case matches for architectures that use `case' in
9947 # $output_verbose_cmd can trigger glob expansion during the loop
9948 # eval without this substitution.
9949 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9950
9951 for p in `eval $output_verbose_link_cmd`; do
9952 case $p in
9953
9954 -L* | -R* | -l*)
9955 # Some compilers place space between "-{L,R}" and the path.
9956 # Remove the space.
9957 if test $p = "-L" \
9958 || test $p = "-R"; then
9959 prev=$p
9960 continue
9961 else
9962 prev=
9963 fi
9964
9965 if test "$pre_test_object_deps_done" = no; then
9966 case $p in
9967 -L* | -R*)
9968 # Internal compiler library paths should come after those
9969 # provided the user. The postdeps already come after the
9970 # user supplied libs so there is no need to process them.
9971 if test -z "$compiler_lib_search_path_CXX"; then
9972 compiler_lib_search_path_CXX="${prev}${p}"
9973 else
9974 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9975 fi
9976 ;;
9977 # The "-l" case would never come before the object being
9978 # linked, so don't bother handling this case.
9979 esac
9980 else
9981 if test -z "$postdeps_CXX"; then
9982 postdeps_CXX="${prev}${p}"
9983 else
9984 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9985 fi
9986 fi
9987 ;;
9988
9989 *.$objext)
9990 # This assumes that the test object file only shows up
9991 # once in the compiler output.
9992 if test "$p" = "conftest.$objext"; then
9993 pre_test_object_deps_done=yes
9994 continue
9995 fi
9996
9997 if test "$pre_test_object_deps_done" = no; then
9998 if test -z "$predep_objects_CXX"; then
9999 predep_objects_CXX="$p"
10000 else
10001 predep_objects_CXX="$predep_objects_CXX $p"
10002 fi
10003 else
10004 if test -z "$postdep_objects_CXX"; then
10005 postdep_objects_CXX="$p"
10006 else
10007 postdep_objects_CXX="$postdep_objects_CXX $p"
10008 fi
10009 fi
10010 ;;
10011
10012 *) ;; # Ignore the rest.
10013
10014 esac
10015 done
10016
10017 # Clean up.
10018 rm -f a.out a.exe
10019else
10020 echo "libtool.m4: error: problem compiling CXX test program"
10021fi
10022
10023$rm -f confest.$objext
10024
10025case " $postdeps_CXX " in
10026*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10027esac
10028
10029lt_prog_compiler_wl_CXX=
10030lt_prog_compiler_pic_CXX=
10031lt_prog_compiler_static_CXX=
10032
10033echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10034echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10035
10036 # C++ specific cases for pic, static, wl, etc.
10037 if test "$GXX" = yes; then
10038 lt_prog_compiler_wl_CXX='-Wl,'
10039 lt_prog_compiler_static_CXX='-static'
10040
10041 case $host_os in
10042 aix*)
10043 # All AIX code is PIC.
10044 if test "$host_cpu" = ia64; then
10045 # AIX 5 now supports IA64 processor
10046 lt_prog_compiler_static_CXX='-Bstatic'
10047 fi
10048 ;;
10049 amigaos*)
10050 # FIXME: we need at least 68020 code to build shared libraries, but
10051 # adding the `-m68020' flag to GCC prevents building anything better,
10052 # like `-m68040'.
10053 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10054 ;;
10055 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10056 # PIC is the default for these OSes.
10057 ;;
10058 mingw* | os2* | pw32*)
10059 # This hack is so that the source file can tell whether it is being
10060 # built for inclusion in a dll (and should export symbols for example).
10061 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10062 ;;
10063 darwin* | rhapsody*)
10064 # PIC is the default on this platform
10065 # Common symbols not allowed in MH_DYLIB files
10066 lt_prog_compiler_pic_CXX='-fno-common'
10067 ;;
10068 *djgpp*)
10069 # DJGPP does not support shared libraries at all
10070 lt_prog_compiler_pic_CXX=
10071 ;;
10072 sysv4*MP*)
10073 if test -d /usr/nec; then
10074 lt_prog_compiler_pic_CXX=-Kconform_pic
10075 fi
10076 ;;
10077 hpux*)
10078 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10079 # not for PA HP-UX.
10080 case "$host_cpu" in
10081 hppa*64*|ia64*)
10082 ;;
10083 *)
10084 lt_prog_compiler_pic_CXX='-fPIC'
10085 ;;
10086 esac
10087 ;;
10088 *)
10089 lt_prog_compiler_pic_CXX='-fPIC'
10090 ;;
10091 esac
10092 else
10093 case $host_os in
10094 aix4* | aix5*)
10095 # All AIX code is PIC.
10096 if test "$host_cpu" = ia64; then
10097 # AIX 5 now supports IA64 processor
10098 lt_prog_compiler_static_CXX='-Bstatic'
10099 else
10100 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10101 fi
10102 ;;
10103 chorus*)
10104 case $cc_basename in
10105 cxch68)
10106 # Green Hills C++ Compiler
10107 # _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"
10108 ;;
10109 esac
10110 ;;
10111 dgux*)
10112 case $cc_basename in
10113 ec++)
10114 lt_prog_compiler_pic_CXX='-KPIC'
10115 ;;
10116 ghcx)
10117 # Green Hills C++ Compiler
10118 lt_prog_compiler_pic_CXX='-pic'
10119 ;;
10120 *)
10121 ;;
10122 esac
10123 ;;
10124 freebsd* | kfreebsd*-gnu)
10125 # FreeBSD uses GNU C++
10126 ;;
10127 hpux9* | hpux10* | hpux11*)
10128 case $cc_basename in
10129 CC)
10130 lt_prog_compiler_wl_CXX='-Wl,'
10131 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10132 if test "$host_cpu" != ia64; then
10133 lt_prog_compiler_pic_CXX='+Z'
10134 fi
10135 ;;
10136 aCC)
10137 lt_prog_compiler_wl_CXX='-Wl,'
10138 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10139 case "$host_cpu" in
10140 hppa*64*|ia64*)
10141 # +Z the default
10142 ;;
10143 *)
10144 lt_prog_compiler_pic_CXX='+Z'
10145 ;;
10146 esac
10147 ;;
10148 *)
10149 ;;
10150 esac
10151 ;;
10152 irix5* | irix6* | nonstopux*)
10153 case $cc_basename in
10154 CC)
10155 lt_prog_compiler_wl_CXX='-Wl,'
10156 lt_prog_compiler_static_CXX='-non_shared'
10157 # CC pic flag -KPIC is the default.
10158 ;;
10159 *)
10160 ;;
10161 esac
10162 ;;
10163 linux*)
10164 case $cc_basename in
10165 KCC)
10166 # KAI C++ Compiler
10167 lt_prog_compiler_wl_CXX='--backend -Wl,'
10168 lt_prog_compiler_pic_CXX='-fPIC'
10169 ;;
10170 icpc)
10171 # Intel C++
10172 lt_prog_compiler_wl_CXX='-Wl,'
10173 lt_prog_compiler_pic_CXX='-KPIC'
10174 lt_prog_compiler_static_CXX='-static'
10175 ;;
10176 cxx)
10177 # Compaq C++
10178 # Make sure the PIC flag is empty. It appears that all Alpha
10179 # Linux and Compaq Tru64 Unix objects are PIC.
10180 lt_prog_compiler_pic_CXX=
10181 lt_prog_compiler_static_CXX='-non_shared'
10182 ;;
10183 *)
10184 ;;
10185 esac
10186 ;;
10187 lynxos*)
10188 ;;
10189 m88k*)
10190 ;;
10191 mvs*)
10192 case $cc_basename in
10193 cxx)
10194 lt_prog_compiler_pic_CXX='-W c,exportall'
10195 ;;
10196 *)
10197 ;;
10198 esac
10199 ;;
10200 netbsd* | knetbsd*-gnu)
10201 ;;
10202 osf3* | osf4* | osf5*)
10203 case $cc_basename in
10204 KCC)
10205 lt_prog_compiler_wl_CXX='--backend -Wl,'
10206 ;;
10207 RCC)
10208 # Rational C++ 2.4.1
10209 lt_prog_compiler_pic_CXX='-pic'
10210 ;;
10211 cxx)
10212 # Digital/Compaq C++
10213 lt_prog_compiler_wl_CXX='-Wl,'
10214 # Make sure the PIC flag is empty. It appears that all Alpha
10215 # Linux and Compaq Tru64 Unix objects are PIC.
10216 lt_prog_compiler_pic_CXX=
10217 lt_prog_compiler_static_CXX='-non_shared'
10218 ;;
10219 *)
10220 ;;
10221 esac
10222 ;;
10223 psos*)
10224 ;;
10225 sco*)
10226 case $cc_basename in
10227 CC)
10228 lt_prog_compiler_pic_CXX='-fPIC'
10229 ;;
10230 *)
10231 ;;
10232 esac
10233 ;;
10234 solaris*)
10235 case $cc_basename in
10236 CC)
10237 # Sun C++ 4.2, 5.x and Centerline C++
10238 lt_prog_compiler_pic_CXX='-KPIC'
10239 lt_prog_compiler_static_CXX='-Bstatic'
10240 lt_prog_compiler_wl_CXX='-Qoption ld '
10241 ;;
10242 gcx)
10243 # Green Hills C++ Compiler
10244 lt_prog_compiler_pic_CXX='-PIC'
10245 ;;
10246 *)
10247 ;;
10248 esac
10249 ;;
10250 sunos4*)
10251 case $cc_basename in
10252 CC)
10253 # Sun C++ 4.x
10254 lt_prog_compiler_pic_CXX='-pic'
10255 lt_prog_compiler_static_CXX='-Bstatic'
10256 ;;
10257 lcc)
10258 # Lucid
10259 lt_prog_compiler_pic_CXX='-pic'
10260 ;;
10261 *)
10262 ;;
10263 esac
10264 ;;
10265 tandem*)
10266 case $cc_basename in
10267 NCC)
10268 # NonStop-UX NCC 3.20
10269 lt_prog_compiler_pic_CXX='-KPIC'
10270 ;;
10271 *)
10272 ;;
10273 esac
10274 ;;
10275 unixware*)
10276 ;;
10277 vxworks*)
10278 ;;
10279 *)
10280 lt_prog_compiler_can_build_shared_CXX=no
10281 ;;
10282 esac
10283 fi
10284
10285echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10286echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10287
10288#
10289# Check to make sure the PIC flag actually works.
10290#
10291if test -n "$lt_prog_compiler_pic_CXX"; then
10292
10293echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10294echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10295if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
10297else
10298 lt_prog_compiler_pic_works_CXX=no
10299 ac_outfile=conftest.$ac_objext
10300 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10301 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10302 # Insert the option either (1) after the last *FLAGS variable, or
10303 # (2) before a word containing "conftest.", or (3) at the end.
10304 # Note that $ac_compile itself does not contain backslashes and begins
10305 # with a dollar sign (not a hyphen), so the echo should work correctly.
10306 # The option is referenced via a variable to avoid confusing sed.
10307 lt_compile=`echo "$ac_compile" | $SED \
10308 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10309 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10310 -e 's:$: $lt_compiler_flag:'`
drh8e2e2a12006-02-01 01:55:17 +000010311 (eval echo "\"\$as_me:10311: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000010312 (eval "$lt_compile" 2>conftest.err)
10313 ac_status=$?
10314 cat conftest.err >&5
drh8e2e2a12006-02-01 01:55:17 +000010315 echo "$as_me:10315: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000010316 if (exit $ac_status) && test -s "$ac_outfile"; then
10317 # The compiler can only warn and ignore the option if not recognized
10318 # So say no if there are warnings
10319 if test ! -s conftest.err; then
10320 lt_prog_compiler_pic_works_CXX=yes
10321 fi
10322 fi
10323 $rm conftest*
10324
10325fi
10326echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10327echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10328
10329if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10330 case $lt_prog_compiler_pic_CXX in
10331 "" | " "*) ;;
10332 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10333 esac
10334else
10335 lt_prog_compiler_pic_CXX=
10336 lt_prog_compiler_can_build_shared_CXX=no
10337fi
10338
10339fi
10340case "$host_os" in
10341 # For platforms which do not support PIC, -DPIC is meaningless:
10342 *djgpp*)
10343 lt_prog_compiler_pic_CXX=
10344 ;;
10345 *)
10346 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10347 ;;
10348esac
10349
10350echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10351echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10352if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10353 echo $ECHO_N "(cached) $ECHO_C" >&6
10354else
10355 lt_cv_prog_compiler_c_o_CXX=no
10356 $rm -r conftest 2>/dev/null
10357 mkdir conftest
10358 cd conftest
10359 mkdir out
10360 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10361
10362 lt_compiler_flag="-o out/conftest2.$ac_objext"
10363 # Insert the option either (1) after the last *FLAGS variable, or
10364 # (2) before a word containing "conftest.", or (3) at the end.
10365 # Note that $ac_compile itself does not contain backslashes and begins
10366 # with a dollar sign (not a hyphen), so the echo should work correctly.
10367 lt_compile=`echo "$ac_compile" | $SED \
10368 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10369 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10370 -e 's:$: $lt_compiler_flag:'`
drh8e2e2a12006-02-01 01:55:17 +000010371 (eval echo "\"\$as_me:10371: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000010372 (eval "$lt_compile" 2>out/conftest.err)
10373 ac_status=$?
10374 cat out/conftest.err >&5
drh8e2e2a12006-02-01 01:55:17 +000010375 echo "$as_me:10375: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000010376 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10377 then
10378 # The compiler can only warn and ignore the option if not recognized
10379 # So say no if there are warnings
10380 if test ! -s out/conftest.err; then
10381 lt_cv_prog_compiler_c_o_CXX=yes
10382 fi
10383 fi
10384 chmod u+w .
10385 $rm conftest*
10386 # SGI C++ compiler will create directory out/ii_files/ for
10387 # template instantiation
10388 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10389 $rm out/* && rmdir out
10390 cd ..
10391 rmdir conftest
10392 $rm conftest*
10393
10394fi
10395echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10396echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10397
10398
10399hard_links="nottested"
10400if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10401 # do not overwrite the value of need_locks provided by the user
10402 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10403echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10404 hard_links=yes
10405 $rm conftest*
10406 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10407 touch conftest.a
10408 ln conftest.a conftest.b 2>&5 || hard_links=no
10409 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10410 echo "$as_me:$LINENO: result: $hard_links" >&5
10411echo "${ECHO_T}$hard_links" >&6
10412 if test "$hard_links" = no; then
10413 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10414echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10415 need_locks=warn
10416 fi
10417else
10418 need_locks=no
10419fi
10420
10421echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10422echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10423
10424 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10425 case $host_os in
10426 aix4* | aix5*)
10427 # If we're using GNU nm, then we don't want the "-C" option.
10428 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10429 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10430 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'
10431 else
10432 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'
10433 fi
10434 ;;
10435 pw32*)
10436 export_symbols_cmds_CXX="$ltdll_cmds"
10437 ;;
10438 cygwin* | mingw*)
10439 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10440 ;;
10441 *)
10442 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10443 ;;
10444 esac
10445
10446echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10447echo "${ECHO_T}$ld_shlibs_CXX" >&6
10448test "$ld_shlibs_CXX" = no && can_build_shared=no
10449
10450variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10451if test "$GCC" = yes; then
10452 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10453fi
10454
10455#
10456# Do we need to explicitly link libc?
10457#
10458case "x$archive_cmds_need_lc_CXX" in
10459x|xyes)
10460 # Assume -lc should be added
10461 archive_cmds_need_lc_CXX=yes
10462
10463 if test "$enable_shared" = yes && test "$GCC" = yes; then
10464 case $archive_cmds_CXX in
10465 *'~'*)
10466 # FIXME: we may have to deal with multi-command sequences.
10467 ;;
10468 '$CC '*)
10469 # Test whether the compiler implicitly links with -lc since on some
10470 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10471 # to ld, don't add -lc before -lgcc.
10472 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10473echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10474 $rm conftest*
10475 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10476
10477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10478 (eval $ac_compile) 2>&5
10479 ac_status=$?
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); } 2>conftest.err; then
10482 soname=conftest
10483 lib=conftest
10484 libobjs=conftest.$ac_objext
10485 deplibs=
10486 wl=$lt_prog_compiler_wl_CXX
10487 compiler_flags=-v
10488 linker_flags=-v
10489 verstring=
10490 output_objdir=.
10491 libname=conftest
10492 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10493 allow_undefined_flag_CXX=
10494 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10495 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10496 ac_status=$?
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); }
10499 then
10500 archive_cmds_need_lc_CXX=no
10501 else
10502 archive_cmds_need_lc_CXX=yes
10503 fi
10504 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10505 else
10506 cat conftest.err 1>&5
10507 fi
10508 $rm conftest*
10509 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10510echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10511 ;;
10512 esac
10513 fi
10514 ;;
10515esac
10516
10517echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10518echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10519library_names_spec=
10520libname_spec='lib$name'
10521soname_spec=
10522shrext=".so"
10523postinstall_cmds=
10524postuninstall_cmds=
10525finish_cmds=
10526finish_eval=
10527shlibpath_var=
10528shlibpath_overrides_runpath=unknown
10529version_type=none
10530dynamic_linker="$host_os ld.so"
10531sys_lib_dlsearch_path_spec="/lib /usr/lib"
10532if test "$GCC" = yes; then
10533 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10534 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10535 # if the path contains ";" then we assume it to be the separator
10536 # otherwise default to the standard path separator (i.e. ":") - it is
10537 # assumed that no part of a normal pathname contains ";" but that should
10538 # okay in the real world where ";" in dirpaths is itself problematic.
10539 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10540 else
10541 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10542 fi
10543else
10544 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10545fi
10546need_lib_prefix=unknown
10547hardcode_into_libs=no
10548
10549# when you set need_version to no, make sure it does not cause -set_version
10550# flags to be left without arguments
10551need_version=unknown
10552
10553case $host_os in
10554aix3*)
10555 version_type=linux
10556 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10557 shlibpath_var=LIBPATH
10558
10559 # AIX 3 has no versioning support, so we append a major version to the name.
10560 soname_spec='${libname}${release}${shared_ext}$major'
10561 ;;
10562
10563aix4* | aix5*)
10564 version_type=linux
10565 need_lib_prefix=no
10566 need_version=no
10567 hardcode_into_libs=yes
10568 if test "$host_cpu" = ia64; then
10569 # AIX 5 supports IA64
10570 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10571 shlibpath_var=LD_LIBRARY_PATH
10572 else
10573 # With GCC up to 2.95.x, collect2 would create an import file
10574 # for dependence libraries. The import file would start with
10575 # the line `#! .'. This would cause the generated library to
10576 # depend on `.', always an invalid library. This was fixed in
10577 # development snapshots of GCC prior to 3.0.
10578 case $host_os in
10579 aix4 | aix4.[01] | aix4.[01].*)
10580 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10581 echo ' yes '
10582 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10583 :
10584 else
10585 can_build_shared=no
10586 fi
10587 ;;
10588 esac
10589 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10590 # soname into executable. Probably we can add versioning support to
10591 # collect2, so additional links can be useful in future.
10592 if test "$aix_use_runtimelinking" = yes; then
10593 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10594 # instead of lib<name>.a to let people know that these are not
10595 # typical AIX shared libraries.
10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10597 else
10598 # We preserve .a as extension for shared libraries through AIX4.2
10599 # and later when we are not doing run time linking.
10600 library_names_spec='${libname}${release}.a $libname.a'
10601 soname_spec='${libname}${release}${shared_ext}$major'
10602 fi
10603 shlibpath_var=LIBPATH
10604 fi
10605 ;;
10606
10607amigaos*)
10608 library_names_spec='$libname.ixlibrary $libname.a'
10609 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10610 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'
10611 ;;
10612
10613beos*)
10614 library_names_spec='${libname}${shared_ext}'
10615 dynamic_linker="$host_os ld.so"
10616 shlibpath_var=LIBRARY_PATH
10617 ;;
10618
10619bsdi4*)
10620 version_type=linux
10621 need_version=no
10622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10623 soname_spec='${libname}${release}${shared_ext}$major'
10624 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10625 shlibpath_var=LD_LIBRARY_PATH
10626 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10627 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10628 # the default ld.so.conf also contains /usr/contrib/lib and
10629 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10630 # libtool to hard-code these into programs
10631 ;;
10632
10633cygwin* | mingw* | pw32*)
10634 version_type=windows
10635 shrext=".dll"
10636 need_version=no
10637 need_lib_prefix=no
10638
10639 case $GCC,$host_os in
10640 yes,cygwin* | yes,mingw* | yes,pw32*)
10641 library_names_spec='$libname.dll.a'
10642 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10643 postinstall_cmds='base_file=`basename \${file}`~
10644 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10645 dldir=$destdir/`dirname \$dlpath`~
10646 test -d \$dldir || mkdir -p \$dldir~
10647 $install_prog $dir/$dlname \$dldir/$dlname'
10648 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10649 dlpath=$dir/\$dldll~
10650 $rm \$dlpath'
10651 shlibpath_overrides_runpath=yes
10652
10653 case $host_os in
10654 cygwin*)
10655 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10656 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10657 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10658 ;;
10659 mingw*)
10660 # MinGW DLLs use traditional 'lib' prefix
10661 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10662 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10663 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10664 # It is most probably a Windows format PATH printed by
10665 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10666 # path with ; separators, and with drive letters. We can handle the
10667 # drive letters (cygwin fileutils understands them), so leave them,
10668 # especially as we might pass files found there to a mingw objdump,
10669 # which wouldn't understand a cygwinified path. Ahh.
10670 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10671 else
10672 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10673 fi
10674 ;;
10675 pw32*)
10676 # pw32 DLLs use 'pw' prefix rather than 'lib'
10677 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10678 ;;
10679 esac
10680 ;;
10681
10682 *)
10683 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10684 ;;
10685 esac
10686 dynamic_linker='Win32 ld.exe'
10687 # FIXME: first we should search . and the directory the executable is in
10688 shlibpath_var=PATH
10689 ;;
10690
10691darwin* | rhapsody*)
10692 dynamic_linker="$host_os dyld"
10693 version_type=darwin
10694 need_lib_prefix=no
10695 need_version=no
10696 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10697 soname_spec='${libname}${release}${major}$shared_ext'
10698 shlibpath_overrides_runpath=yes
10699 shlibpath_var=DYLD_LIBRARY_PATH
10700 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10701 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10702 if test "$GCC" = yes; then
10703 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"`
10704 else
10705 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10706 fi
10707 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10708 ;;
10709
10710dgux*)
10711 version_type=linux
10712 need_lib_prefix=no
10713 need_version=no
10714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10715 soname_spec='${libname}${release}${shared_ext}$major'
10716 shlibpath_var=LD_LIBRARY_PATH
10717 ;;
10718
10719freebsd1*)
10720 dynamic_linker=no
10721 ;;
10722
10723kfreebsd*-gnu)
10724 version_type=linux
10725 need_lib_prefix=no
10726 need_version=no
10727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10728 soname_spec='${libname}${release}${shared_ext}$major'
10729 shlibpath_var=LD_LIBRARY_PATH
10730 shlibpath_overrides_runpath=no
10731 hardcode_into_libs=yes
10732 dynamic_linker='GNU ld.so'
10733 ;;
10734
10735freebsd*)
10736 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10737 version_type=freebsd-$objformat
10738 case $version_type in
10739 freebsd-elf*)
10740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10741 need_version=no
10742 need_lib_prefix=no
10743 ;;
10744 freebsd-*)
10745 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10746 need_version=yes
10747 ;;
10748 esac
10749 shlibpath_var=LD_LIBRARY_PATH
10750 case $host_os in
10751 freebsd2*)
10752 shlibpath_overrides_runpath=yes
10753 ;;
10754 freebsd3.01* | freebsdelf3.01*)
10755 shlibpath_overrides_runpath=yes
10756 hardcode_into_libs=yes
10757 ;;
10758 *) # from 3.2 on
10759 shlibpath_overrides_runpath=no
10760 hardcode_into_libs=yes
10761 ;;
10762 esac
10763 ;;
10764
10765gnu*)
10766 version_type=linux
10767 need_lib_prefix=no
10768 need_version=no
10769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10770 soname_spec='${libname}${release}${shared_ext}$major'
10771 shlibpath_var=LD_LIBRARY_PATH
10772 hardcode_into_libs=yes
10773 ;;
10774
10775hpux9* | hpux10* | hpux11*)
10776 # Give a soname corresponding to the major version so that dld.sl refuses to
10777 # link against other versions.
10778 version_type=sunos
10779 need_lib_prefix=no
10780 need_version=no
10781 case "$host_cpu" in
10782 ia64*)
10783 shrext='.so'
10784 hardcode_into_libs=yes
10785 dynamic_linker="$host_os dld.so"
10786 shlibpath_var=LD_LIBRARY_PATH
10787 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10789 soname_spec='${libname}${release}${shared_ext}$major'
10790 if test "X$HPUX_IA64_MODE" = X32; then
10791 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10792 else
10793 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10794 fi
10795 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10796 ;;
10797 hppa*64*)
10798 shrext='.sl'
10799 hardcode_into_libs=yes
10800 dynamic_linker="$host_os dld.sl"
10801 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10802 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10804 soname_spec='${libname}${release}${shared_ext}$major'
10805 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10806 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10807 ;;
10808 *)
10809 shrext='.sl'
10810 dynamic_linker="$host_os dld.sl"
10811 shlibpath_var=SHLIB_PATH
10812 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10814 soname_spec='${libname}${release}${shared_ext}$major'
10815 ;;
10816 esac
10817 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10818 postinstall_cmds='chmod 555 $lib'
10819 ;;
10820
10821irix5* | irix6* | nonstopux*)
10822 case $host_os in
10823 nonstopux*) version_type=nonstopux ;;
10824 *)
10825 if test "$lt_cv_prog_gnu_ld" = yes; then
10826 version_type=linux
10827 else
10828 version_type=irix
10829 fi ;;
10830 esac
10831 need_lib_prefix=no
10832 need_version=no
10833 soname_spec='${libname}${release}${shared_ext}$major'
10834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10835 case $host_os in
10836 irix5* | nonstopux*)
10837 libsuff= shlibsuff=
10838 ;;
10839 *)
10840 case $LD in # libtool.m4 will add one of these switches to LD
10841 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10842 libsuff= shlibsuff= libmagic=32-bit;;
10843 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10844 libsuff=32 shlibsuff=N32 libmagic=N32;;
10845 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10846 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10847 *) libsuff= shlibsuff= libmagic=never-match;;
10848 esac
10849 ;;
10850 esac
10851 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10852 shlibpath_overrides_runpath=no
10853 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10854 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10855 hardcode_into_libs=yes
10856 ;;
10857
10858# No shared lib support for Linux oldld, aout, or coff.
10859linux*oldld* | linux*aout* | linux*coff*)
10860 dynamic_linker=no
10861 ;;
10862
10863# This must be Linux ELF.
10864linux*)
10865 version_type=linux
10866 need_lib_prefix=no
10867 need_version=no
10868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10869 soname_spec='${libname}${release}${shared_ext}$major'
10870 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10871 shlibpath_var=LD_LIBRARY_PATH
10872 shlibpath_overrides_runpath=no
10873 # This implies no fast_install, which is unacceptable.
10874 # Some rework will be needed to allow for fast_install
10875 # before this can be enabled.
10876 hardcode_into_libs=yes
10877
10878 # Append ld.so.conf contents to the search path
10879 if test -f /etc/ld.so.conf; then
10880 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
10881 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
10882 fi
10883
10884 # We used to test for /lib/ld.so.1 and disable shared libraries on
10885 # powerpc, because MkLinux only supported shared libraries with the
10886 # GNU dynamic linker. Since this was broken with cross compilers,
10887 # most powerpc-linux boxes support dynamic linking these days and
10888 # people can always --disable-shared, the test was removed, and we
10889 # assume the GNU/Linux dynamic linker is in use.
10890 dynamic_linker='GNU/Linux ld.so'
10891 ;;
10892
10893knetbsd*-gnu)
10894 version_type=linux
10895 need_lib_prefix=no
10896 need_version=no
10897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10898 soname_spec='${libname}${release}${shared_ext}$major'
10899 shlibpath_var=LD_LIBRARY_PATH
10900 shlibpath_overrides_runpath=no
10901 hardcode_into_libs=yes
10902 dynamic_linker='GNU ld.so'
10903 ;;
10904
10905netbsd*)
10906 version_type=sunos
10907 need_lib_prefix=no
10908 need_version=no
10909 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10911 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10912 dynamic_linker='NetBSD (a.out) ld.so'
10913 else
10914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10915 soname_spec='${libname}${release}${shared_ext}$major'
10916 dynamic_linker='NetBSD ld.elf_so'
10917 fi
10918 shlibpath_var=LD_LIBRARY_PATH
10919 shlibpath_overrides_runpath=yes
10920 hardcode_into_libs=yes
10921 ;;
10922
10923newsos6)
10924 version_type=linux
10925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10926 shlibpath_var=LD_LIBRARY_PATH
10927 shlibpath_overrides_runpath=yes
10928 ;;
10929
10930nto-qnx*)
10931 version_type=linux
10932 need_lib_prefix=no
10933 need_version=no
10934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10935 soname_spec='${libname}${release}${shared_ext}$major'
10936 shlibpath_var=LD_LIBRARY_PATH
10937 shlibpath_overrides_runpath=yes
10938 ;;
10939
10940openbsd*)
10941 version_type=sunos
10942 need_lib_prefix=no
10943 need_version=yes
10944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10945 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10946 shlibpath_var=LD_LIBRARY_PATH
10947 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10948 case $host_os in
10949 openbsd2.[89] | openbsd2.[89].*)
10950 shlibpath_overrides_runpath=no
10951 ;;
10952 *)
10953 shlibpath_overrides_runpath=yes
10954 ;;
10955 esac
10956 else
10957 shlibpath_overrides_runpath=yes
10958 fi
10959 ;;
10960
10961os2*)
10962 libname_spec='$name'
10963 shrext=".dll"
10964 need_lib_prefix=no
10965 library_names_spec='$libname${shared_ext} $libname.a'
10966 dynamic_linker='OS/2 ld.exe'
10967 shlibpath_var=LIBPATH
10968 ;;
10969
10970osf3* | osf4* | osf5*)
10971 version_type=osf
10972 need_lib_prefix=no
10973 need_version=no
10974 soname_spec='${libname}${release}${shared_ext}$major'
10975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10976 shlibpath_var=LD_LIBRARY_PATH
10977 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10978 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10979 ;;
10980
10981sco3.2v5*)
10982 version_type=osf
10983 soname_spec='${libname}${release}${shared_ext}$major'
10984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10985 shlibpath_var=LD_LIBRARY_PATH
10986 ;;
10987
10988solaris*)
10989 version_type=linux
10990 need_lib_prefix=no
10991 need_version=no
10992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10993 soname_spec='${libname}${release}${shared_ext}$major'
10994 shlibpath_var=LD_LIBRARY_PATH
10995 shlibpath_overrides_runpath=yes
10996 hardcode_into_libs=yes
10997 # ldd complains unless libraries are executable
10998 postinstall_cmds='chmod +x $lib'
10999 ;;
11000
11001sunos4*)
11002 version_type=sunos
11003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11004 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11005 shlibpath_var=LD_LIBRARY_PATH
11006 shlibpath_overrides_runpath=yes
11007 if test "$with_gnu_ld" = yes; then
11008 need_lib_prefix=no
11009 fi
11010 need_version=yes
11011 ;;
11012
11013sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11014 version_type=linux
11015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11016 soname_spec='${libname}${release}${shared_ext}$major'
11017 shlibpath_var=LD_LIBRARY_PATH
11018 case $host_vendor in
11019 sni)
11020 shlibpath_overrides_runpath=no
11021 need_lib_prefix=no
11022 export_dynamic_flag_spec='${wl}-Blargedynsym'
11023 runpath_var=LD_RUN_PATH
11024 ;;
11025 siemens)
11026 need_lib_prefix=no
11027 ;;
11028 motorola)
11029 need_lib_prefix=no
11030 need_version=no
11031 shlibpath_overrides_runpath=no
11032 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11033 ;;
11034 esac
11035 ;;
11036
11037sysv4*MP*)
11038 if test -d /usr/nec ;then
11039 version_type=linux
11040 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11041 soname_spec='$libname${shared_ext}.$major'
11042 shlibpath_var=LD_LIBRARY_PATH
11043 fi
11044 ;;
11045
11046uts4*)
11047 version_type=linux
11048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11049 soname_spec='${libname}${release}${shared_ext}$major'
11050 shlibpath_var=LD_LIBRARY_PATH
11051 ;;
11052
11053*)
11054 dynamic_linker=no
11055 ;;
11056esac
11057echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11058echo "${ECHO_T}$dynamic_linker" >&6
11059test "$dynamic_linker" = no && can_build_shared=no
11060
11061echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11062echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11063hardcode_action_CXX=
11064if test -n "$hardcode_libdir_flag_spec_CXX" || \
11065 test -n "$runpath_var CXX" || \
11066 test "X$hardcode_automatic_CXX"="Xyes" ; then
11067
11068 # We can hardcode non-existant directories.
11069 if test "$hardcode_direct_CXX" != no &&
11070 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11071 # have to relink, otherwise we might link with an installed library
11072 # when we should be linking with a yet-to-be-installed one
11073 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11074 test "$hardcode_minus_L_CXX" != no; then
11075 # Linking always hardcodes the temporary library directory.
11076 hardcode_action_CXX=relink
11077 else
11078 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11079 hardcode_action_CXX=immediate
11080 fi
11081else
11082 # We cannot hardcode anything, or else we can only hardcode existing
11083 # directories.
11084 hardcode_action_CXX=unsupported
11085fi
11086echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11087echo "${ECHO_T}$hardcode_action_CXX" >&6
11088
11089if test "$hardcode_action_CXX" = relink; then
11090 # Fast installation is not supported
11091 enable_fast_install=no
11092elif test "$shlibpath_overrides_runpath" = yes ||
11093 test "$enable_shared" = no; then
11094 # Fast installation is not necessary
11095 enable_fast_install=needless
11096fi
11097
11098striplib=
11099old_striplib=
11100echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11101echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11102if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11103 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11104 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11105 echo "$as_me:$LINENO: result: yes" >&5
11106echo "${ECHO_T}yes" >&6
11107else
11108# FIXME - insert some real tests, host_os isn't really good enough
11109 case $host_os in
11110 darwin*)
11111 if test -n "$STRIP" ; then
11112 striplib="$STRIP -x"
11113 echo "$as_me:$LINENO: result: yes" >&5
11114echo "${ECHO_T}yes" >&6
11115 else
11116 echo "$as_me:$LINENO: result: no" >&5
11117echo "${ECHO_T}no" >&6
11118fi
11119 ;;
11120 *)
11121 echo "$as_me:$LINENO: result: no" >&5
11122echo "${ECHO_T}no" >&6
11123 ;;
11124 esac
11125fi
11126
11127if test "x$enable_dlopen" != xyes; then
11128 enable_dlopen=unknown
11129 enable_dlopen_self=unknown
11130 enable_dlopen_self_static=unknown
11131else
11132 lt_cv_dlopen=no
11133 lt_cv_dlopen_libs=
11134
11135 case $host_os in
11136 beos*)
11137 lt_cv_dlopen="load_add_on"
11138 lt_cv_dlopen_libs=
11139 lt_cv_dlopen_self=yes
11140 ;;
11141
11142 mingw* | pw32*)
11143 lt_cv_dlopen="LoadLibrary"
11144 lt_cv_dlopen_libs=
11145 ;;
11146
11147 cygwin*)
11148 lt_cv_dlopen="dlopen"
11149 lt_cv_dlopen_libs=
11150 ;;
11151
11152 darwin*)
11153 # if libdl is installed we need to link against it
11154 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11155echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11156if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11157 echo $ECHO_N "(cached) $ECHO_C" >&6
11158else
11159 ac_check_lib_save_LIBS=$LIBS
11160LIBS="-ldl $LIBS"
11161cat >conftest.$ac_ext <<_ACEOF
11162/* confdefs.h. */
11163_ACEOF
11164cat confdefs.h >>conftest.$ac_ext
11165cat >>conftest.$ac_ext <<_ACEOF
11166/* end confdefs.h. */
11167
11168/* Override any gcc2 internal prototype to avoid an error. */
11169#ifdef __cplusplus
11170extern "C"
11171#endif
11172/* We use char because int might match the return type of a gcc2
11173 builtin and then its argument prototype would still apply. */
11174char dlopen ();
11175int
11176main ()
11177{
11178dlopen ();
11179 ;
11180 return 0;
11181}
11182_ACEOF
11183rm -f conftest.$ac_objext conftest$ac_exeext
11184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11185 (eval $ac_link) 2>conftest.er1
11186 ac_status=$?
11187 grep -v '^ *+' conftest.er1 >conftest.err
11188 rm -f conftest.er1
11189 cat conftest.err >&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011192 { ac_try='test -z "$ac_cxx_werror_flag"
11193 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11195 (eval $ac_try) 2>&5
11196 ac_status=$?
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); }; } &&
11199 { ac_try='test -s conftest$ac_exeext'
11200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11201 (eval $ac_try) 2>&5
11202 ac_status=$?
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }; }; then
11205 ac_cv_lib_dl_dlopen=yes
11206else
11207 echo "$as_me: failed program was:" >&5
11208sed 's/^/| /' conftest.$ac_ext >&5
11209
11210ac_cv_lib_dl_dlopen=no
11211fi
11212rm -f conftest.err conftest.$ac_objext \
11213 conftest$ac_exeext conftest.$ac_ext
11214LIBS=$ac_check_lib_save_LIBS
11215fi
11216echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11217echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11218if test $ac_cv_lib_dl_dlopen = yes; then
11219 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11220else
11221
11222 lt_cv_dlopen="dyld"
11223 lt_cv_dlopen_libs=
11224 lt_cv_dlopen_self=yes
11225
11226fi
11227
11228 ;;
11229
11230 *)
11231 echo "$as_me:$LINENO: checking for shl_load" >&5
11232echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11233if test "${ac_cv_func_shl_load+set}" = set; then
11234 echo $ECHO_N "(cached) $ECHO_C" >&6
11235else
11236 cat >conftest.$ac_ext <<_ACEOF
11237/* confdefs.h. */
11238_ACEOF
11239cat confdefs.h >>conftest.$ac_ext
11240cat >>conftest.$ac_ext <<_ACEOF
11241/* end confdefs.h. */
11242/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11244#define shl_load innocuous_shl_load
11245
11246/* System header to define __stub macros and hopefully few prototypes,
11247 which can conflict with char shl_load (); below.
11248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11249 <limits.h> exists even on freestanding compilers. */
11250
11251#ifdef __STDC__
11252# include <limits.h>
11253#else
11254# include <assert.h>
11255#endif
11256
11257#undef shl_load
11258
11259/* Override any gcc2 internal prototype to avoid an error. */
11260#ifdef __cplusplus
11261extern "C"
11262{
11263#endif
11264/* We use char because int might match the return type of a gcc2
11265 builtin and then its argument prototype would still apply. */
11266char shl_load ();
11267/* The GNU C library defines this for functions which it implements
11268 to always fail with ENOSYS. Some functions are actually named
11269 something starting with __ and the normal name is an alias. */
11270#if defined (__stub_shl_load) || defined (__stub___shl_load)
11271choke me
11272#else
11273char (*f) () = shl_load;
11274#endif
11275#ifdef __cplusplus
11276}
11277#endif
11278
11279int
11280main ()
11281{
11282return f != shl_load;
11283 ;
11284 return 0;
11285}
11286_ACEOF
11287rm -f conftest.$ac_objext conftest$ac_exeext
11288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11289 (eval $ac_link) 2>conftest.er1
11290 ac_status=$?
11291 grep -v '^ *+' conftest.er1 >conftest.err
11292 rm -f conftest.er1
11293 cat conftest.err >&5
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011296 { ac_try='test -z "$ac_cxx_werror_flag"
11297 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11299 (eval $ac_try) 2>&5
11300 ac_status=$?
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); }; } &&
11303 { ac_try='test -s conftest$ac_exeext'
11304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11305 (eval $ac_try) 2>&5
11306 ac_status=$?
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); }; }; then
11309 ac_cv_func_shl_load=yes
11310else
11311 echo "$as_me: failed program was:" >&5
11312sed 's/^/| /' conftest.$ac_ext >&5
11313
11314ac_cv_func_shl_load=no
11315fi
11316rm -f conftest.err conftest.$ac_objext \
11317 conftest$ac_exeext conftest.$ac_ext
11318fi
11319echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11320echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11321if test $ac_cv_func_shl_load = yes; then
11322 lt_cv_dlopen="shl_load"
11323else
11324 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11325echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11326if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11327 echo $ECHO_N "(cached) $ECHO_C" >&6
11328else
11329 ac_check_lib_save_LIBS=$LIBS
11330LIBS="-ldld $LIBS"
11331cat >conftest.$ac_ext <<_ACEOF
11332/* confdefs.h. */
11333_ACEOF
11334cat confdefs.h >>conftest.$ac_ext
11335cat >>conftest.$ac_ext <<_ACEOF
11336/* end confdefs.h. */
11337
11338/* Override any gcc2 internal prototype to avoid an error. */
11339#ifdef __cplusplus
11340extern "C"
11341#endif
11342/* We use char because int might match the return type of a gcc2
11343 builtin and then its argument prototype would still apply. */
11344char shl_load ();
11345int
11346main ()
11347{
11348shl_load ();
11349 ;
11350 return 0;
11351}
11352_ACEOF
11353rm -f conftest.$ac_objext conftest$ac_exeext
11354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11355 (eval $ac_link) 2>conftest.er1
11356 ac_status=$?
11357 grep -v '^ *+' conftest.er1 >conftest.err
11358 rm -f conftest.er1
11359 cat conftest.err >&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011362 { ac_try='test -z "$ac_cxx_werror_flag"
11363 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11365 (eval $ac_try) 2>&5
11366 ac_status=$?
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); }; } &&
11369 { ac_try='test -s conftest$ac_exeext'
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11372 ac_status=$?
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; }; then
11375 ac_cv_lib_dld_shl_load=yes
11376else
11377 echo "$as_me: failed program was:" >&5
11378sed 's/^/| /' conftest.$ac_ext >&5
11379
11380ac_cv_lib_dld_shl_load=no
11381fi
11382rm -f conftest.err conftest.$ac_objext \
11383 conftest$ac_exeext conftest.$ac_ext
11384LIBS=$ac_check_lib_save_LIBS
11385fi
11386echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11387echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11388if test $ac_cv_lib_dld_shl_load = yes; then
11389 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11390else
11391 echo "$as_me:$LINENO: checking for dlopen" >&5
11392echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11393if test "${ac_cv_func_dlopen+set}" = set; then
11394 echo $ECHO_N "(cached) $ECHO_C" >&6
11395else
11396 cat >conftest.$ac_ext <<_ACEOF
11397/* confdefs.h. */
11398_ACEOF
11399cat confdefs.h >>conftest.$ac_ext
11400cat >>conftest.$ac_ext <<_ACEOF
11401/* end confdefs.h. */
11402/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11404#define dlopen innocuous_dlopen
11405
11406/* System header to define __stub macros and hopefully few prototypes,
11407 which can conflict with char dlopen (); below.
11408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11409 <limits.h> exists even on freestanding compilers. */
11410
11411#ifdef __STDC__
11412# include <limits.h>
11413#else
11414# include <assert.h>
11415#endif
11416
11417#undef dlopen
11418
11419/* Override any gcc2 internal prototype to avoid an error. */
11420#ifdef __cplusplus
11421extern "C"
11422{
11423#endif
11424/* We use char because int might match the return type of a gcc2
11425 builtin and then its argument prototype would still apply. */
11426char dlopen ();
11427/* The GNU C library defines this for functions which it implements
11428 to always fail with ENOSYS. Some functions are actually named
11429 something starting with __ and the normal name is an alias. */
11430#if defined (__stub_dlopen) || defined (__stub___dlopen)
11431choke me
11432#else
11433char (*f) () = dlopen;
11434#endif
11435#ifdef __cplusplus
11436}
11437#endif
11438
11439int
11440main ()
11441{
11442return f != dlopen;
11443 ;
11444 return 0;
11445}
11446_ACEOF
11447rm -f conftest.$ac_objext conftest$ac_exeext
11448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11449 (eval $ac_link) 2>conftest.er1
11450 ac_status=$?
11451 grep -v '^ *+' conftest.er1 >conftest.err
11452 rm -f conftest.er1
11453 cat conftest.err >&5
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011456 { ac_try='test -z "$ac_cxx_werror_flag"
11457 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11459 (eval $ac_try) 2>&5
11460 ac_status=$?
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); }; } &&
11463 { ac_try='test -s conftest$ac_exeext'
11464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11465 (eval $ac_try) 2>&5
11466 ac_status=$?
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); }; }; then
11469 ac_cv_func_dlopen=yes
11470else
11471 echo "$as_me: failed program was:" >&5
11472sed 's/^/| /' conftest.$ac_ext >&5
11473
11474ac_cv_func_dlopen=no
11475fi
11476rm -f conftest.err conftest.$ac_objext \
11477 conftest$ac_exeext conftest.$ac_ext
11478fi
11479echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11480echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11481if test $ac_cv_func_dlopen = yes; then
11482 lt_cv_dlopen="dlopen"
11483else
11484 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11485echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11486if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11487 echo $ECHO_N "(cached) $ECHO_C" >&6
11488else
11489 ac_check_lib_save_LIBS=$LIBS
11490LIBS="-ldl $LIBS"
11491cat >conftest.$ac_ext <<_ACEOF
11492/* confdefs.h. */
11493_ACEOF
11494cat confdefs.h >>conftest.$ac_ext
11495cat >>conftest.$ac_ext <<_ACEOF
11496/* end confdefs.h. */
11497
11498/* Override any gcc2 internal prototype to avoid an error. */
11499#ifdef __cplusplus
11500extern "C"
11501#endif
11502/* We use char because int might match the return type of a gcc2
11503 builtin and then its argument prototype would still apply. */
11504char dlopen ();
11505int
11506main ()
11507{
11508dlopen ();
11509 ;
11510 return 0;
11511}
11512_ACEOF
11513rm -f conftest.$ac_objext conftest$ac_exeext
11514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11515 (eval $ac_link) 2>conftest.er1
11516 ac_status=$?
11517 grep -v '^ *+' conftest.er1 >conftest.err
11518 rm -f conftest.er1
11519 cat conftest.err >&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011522 { ac_try='test -z "$ac_cxx_werror_flag"
11523 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11525 (eval $ac_try) 2>&5
11526 ac_status=$?
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); }; } &&
11529 { ac_try='test -s conftest$ac_exeext'
11530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531 (eval $ac_try) 2>&5
11532 ac_status=$?
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); }; }; then
11535 ac_cv_lib_dl_dlopen=yes
11536else
11537 echo "$as_me: failed program was:" >&5
11538sed 's/^/| /' conftest.$ac_ext >&5
11539
11540ac_cv_lib_dl_dlopen=no
11541fi
11542rm -f conftest.err conftest.$ac_objext \
11543 conftest$ac_exeext conftest.$ac_ext
11544LIBS=$ac_check_lib_save_LIBS
11545fi
11546echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11547echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11548if test $ac_cv_lib_dl_dlopen = yes; then
11549 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11550else
11551 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11552echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11553if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11554 echo $ECHO_N "(cached) $ECHO_C" >&6
11555else
11556 ac_check_lib_save_LIBS=$LIBS
11557LIBS="-lsvld $LIBS"
11558cat >conftest.$ac_ext <<_ACEOF
11559/* confdefs.h. */
11560_ACEOF
11561cat confdefs.h >>conftest.$ac_ext
11562cat >>conftest.$ac_ext <<_ACEOF
11563/* end confdefs.h. */
11564
11565/* Override any gcc2 internal prototype to avoid an error. */
11566#ifdef __cplusplus
11567extern "C"
11568#endif
11569/* We use char because int might match the return type of a gcc2
11570 builtin and then its argument prototype would still apply. */
11571char dlopen ();
11572int
11573main ()
11574{
11575dlopen ();
11576 ;
11577 return 0;
11578}
11579_ACEOF
11580rm -f conftest.$ac_objext conftest$ac_exeext
11581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11582 (eval $ac_link) 2>conftest.er1
11583 ac_status=$?
11584 grep -v '^ *+' conftest.er1 >conftest.err
11585 rm -f conftest.er1
11586 cat conftest.err >&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011589 { ac_try='test -z "$ac_cxx_werror_flag"
11590 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11592 (eval $ac_try) 2>&5
11593 ac_status=$?
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); }; } &&
11596 { ac_try='test -s conftest$ac_exeext'
11597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11598 (eval $ac_try) 2>&5
11599 ac_status=$?
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); }; }; then
11602 ac_cv_lib_svld_dlopen=yes
11603else
11604 echo "$as_me: failed program was:" >&5
11605sed 's/^/| /' conftest.$ac_ext >&5
11606
11607ac_cv_lib_svld_dlopen=no
11608fi
11609rm -f conftest.err conftest.$ac_objext \
11610 conftest$ac_exeext conftest.$ac_ext
11611LIBS=$ac_check_lib_save_LIBS
11612fi
11613echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11614echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11615if test $ac_cv_lib_svld_dlopen = yes; then
11616 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11617else
11618 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11619echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11620if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11621 echo $ECHO_N "(cached) $ECHO_C" >&6
11622else
11623 ac_check_lib_save_LIBS=$LIBS
11624LIBS="-ldld $LIBS"
11625cat >conftest.$ac_ext <<_ACEOF
11626/* confdefs.h. */
11627_ACEOF
11628cat confdefs.h >>conftest.$ac_ext
11629cat >>conftest.$ac_ext <<_ACEOF
11630/* end confdefs.h. */
11631
11632/* Override any gcc2 internal prototype to avoid an error. */
11633#ifdef __cplusplus
11634extern "C"
11635#endif
11636/* We use char because int might match the return type of a gcc2
11637 builtin and then its argument prototype would still apply. */
11638char dld_link ();
11639int
11640main ()
11641{
11642dld_link ();
11643 ;
11644 return 0;
11645}
11646_ACEOF
11647rm -f conftest.$ac_objext conftest$ac_exeext
11648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11649 (eval $ac_link) 2>conftest.er1
11650 ac_status=$?
11651 grep -v '^ *+' conftest.er1 >conftest.err
11652 rm -f conftest.er1
11653 cat conftest.err >&5
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000011656 { ac_try='test -z "$ac_cxx_werror_flag"
11657 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000011658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659 (eval $ac_try) 2>&5
11660 ac_status=$?
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); }; } &&
11663 { ac_try='test -s conftest$ac_exeext'
11664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11665 (eval $ac_try) 2>&5
11666 ac_status=$?
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); }; }; then
11669 ac_cv_lib_dld_dld_link=yes
11670else
11671 echo "$as_me: failed program was:" >&5
11672sed 's/^/| /' conftest.$ac_ext >&5
11673
11674ac_cv_lib_dld_dld_link=no
11675fi
11676rm -f conftest.err conftest.$ac_objext \
11677 conftest$ac_exeext conftest.$ac_ext
11678LIBS=$ac_check_lib_save_LIBS
11679fi
11680echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11681echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11682if test $ac_cv_lib_dld_dld_link = yes; then
11683 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11684fi
11685
11686
11687fi
11688
11689
11690fi
11691
11692
11693fi
11694
11695
11696fi
11697
11698
11699fi
11700
11701 ;;
11702 esac
11703
11704 if test "x$lt_cv_dlopen" != xno; then
11705 enable_dlopen=yes
11706 else
11707 enable_dlopen=no
11708 fi
11709
11710 case $lt_cv_dlopen in
11711 dlopen)
11712 save_CPPFLAGS="$CPPFLAGS"
11713 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11714
11715 save_LDFLAGS="$LDFLAGS"
11716 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11717
11718 save_LIBS="$LIBS"
11719 LIBS="$lt_cv_dlopen_libs $LIBS"
11720
11721 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11722echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11723if test "${lt_cv_dlopen_self+set}" = set; then
11724 echo $ECHO_N "(cached) $ECHO_C" >&6
11725else
11726 if test "$cross_compiling" = yes; then :
11727 lt_cv_dlopen_self=cross
11728else
11729 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11730 lt_status=$lt_dlunknown
11731 cat > conftest.$ac_ext <<EOF
drh8e2e2a12006-02-01 01:55:17 +000011732#line 11732 "configure"
a.rottmann9bc8b932004-02-29 15:18:31 +000011733#include "confdefs.h"
11734
11735#if HAVE_DLFCN_H
11736#include <dlfcn.h>
11737#endif
11738
11739#include <stdio.h>
11740
11741#ifdef RTLD_GLOBAL
11742# define LT_DLGLOBAL RTLD_GLOBAL
11743#else
11744# ifdef DL_GLOBAL
11745# define LT_DLGLOBAL DL_GLOBAL
11746# else
11747# define LT_DLGLOBAL 0
11748# endif
11749#endif
11750
11751/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11752 find out it does not work in some platform. */
11753#ifndef LT_DLLAZY_OR_NOW
11754# ifdef RTLD_LAZY
11755# define LT_DLLAZY_OR_NOW RTLD_LAZY
11756# else
11757# ifdef DL_LAZY
11758# define LT_DLLAZY_OR_NOW DL_LAZY
11759# else
11760# ifdef RTLD_NOW
11761# define LT_DLLAZY_OR_NOW RTLD_NOW
11762# else
11763# ifdef DL_NOW
11764# define LT_DLLAZY_OR_NOW DL_NOW
11765# else
11766# define LT_DLLAZY_OR_NOW 0
11767# endif
11768# endif
11769# endif
11770# endif
11771#endif
11772
11773#ifdef __cplusplus
11774extern "C" void exit (int);
11775#endif
11776
11777void fnord() { int i=42;}
11778int main ()
11779{
11780 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11781 int status = $lt_dlunknown;
11782
11783 if (self)
11784 {
11785 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11786 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11787 /* dlclose (self); */
11788 }
11789
11790 exit (status);
11791}
11792EOF
11793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11794 (eval $ac_link) 2>&5
11795 ac_status=$?
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11798 (./conftest; exit; ) 2>/dev/null
11799 lt_status=$?
11800 case x$lt_status in
11801 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11802 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11803 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11804 esac
11805 else :
11806 # compilation failed
11807 lt_cv_dlopen_self=no
11808 fi
11809fi
11810rm -fr conftest*
11811
11812
11813fi
11814echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11815echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11816
11817 if test "x$lt_cv_dlopen_self" = xyes; then
11818 LDFLAGS="$LDFLAGS $link_static_flag"
11819 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11820echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11821if test "${lt_cv_dlopen_self_static+set}" = set; then
11822 echo $ECHO_N "(cached) $ECHO_C" >&6
11823else
11824 if test "$cross_compiling" = yes; then :
11825 lt_cv_dlopen_self_static=cross
11826else
11827 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11828 lt_status=$lt_dlunknown
11829 cat > conftest.$ac_ext <<EOF
drh8e2e2a12006-02-01 01:55:17 +000011830#line 11830 "configure"
a.rottmann9bc8b932004-02-29 15:18:31 +000011831#include "confdefs.h"
11832
11833#if HAVE_DLFCN_H
11834#include <dlfcn.h>
11835#endif
11836
11837#include <stdio.h>
11838
11839#ifdef RTLD_GLOBAL
11840# define LT_DLGLOBAL RTLD_GLOBAL
11841#else
11842# ifdef DL_GLOBAL
11843# define LT_DLGLOBAL DL_GLOBAL
11844# else
11845# define LT_DLGLOBAL 0
11846# endif
11847#endif
11848
11849/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11850 find out it does not work in some platform. */
11851#ifndef LT_DLLAZY_OR_NOW
11852# ifdef RTLD_LAZY
11853# define LT_DLLAZY_OR_NOW RTLD_LAZY
11854# else
11855# ifdef DL_LAZY
11856# define LT_DLLAZY_OR_NOW DL_LAZY
11857# else
11858# ifdef RTLD_NOW
11859# define LT_DLLAZY_OR_NOW RTLD_NOW
11860# else
11861# ifdef DL_NOW
11862# define LT_DLLAZY_OR_NOW DL_NOW
11863# else
11864# define LT_DLLAZY_OR_NOW 0
11865# endif
11866# endif
11867# endif
11868# endif
11869#endif
11870
11871#ifdef __cplusplus
11872extern "C" void exit (int);
11873#endif
11874
11875void fnord() { int i=42;}
11876int main ()
11877{
11878 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11879 int status = $lt_dlunknown;
11880
11881 if (self)
11882 {
11883 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11884 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11885 /* dlclose (self); */
11886 }
11887
11888 exit (status);
11889}
11890EOF
11891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11892 (eval $ac_link) 2>&5
11893 ac_status=$?
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11896 (./conftest; exit; ) 2>/dev/null
11897 lt_status=$?
11898 case x$lt_status in
11899 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11900 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11901 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11902 esac
11903 else :
11904 # compilation failed
11905 lt_cv_dlopen_self_static=no
11906 fi
11907fi
11908rm -fr conftest*
11909
11910
11911fi
11912echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11913echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11914 fi
11915
11916 CPPFLAGS="$save_CPPFLAGS"
11917 LDFLAGS="$save_LDFLAGS"
11918 LIBS="$save_LIBS"
11919 ;;
11920 esac
11921
11922 case $lt_cv_dlopen_self in
11923 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11924 *) enable_dlopen_self=unknown ;;
11925 esac
11926
11927 case $lt_cv_dlopen_self_static in
11928 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11929 *) enable_dlopen_self_static=unknown ;;
11930 esac
11931fi
11932
11933
11934# The else clause should only fire when bootstrapping the
11935# libtool distribution, otherwise you forgot to ship ltmain.sh
11936# with your package, and you will get complaints that there are
11937# no rules to generate ltmain.sh.
11938if test -f "$ltmain"; then
11939 # See if we are running on zsh, and set the options which allow our commands through
11940 # without removal of \ escapes.
11941 if test -n "${ZSH_VERSION+set}" ; then
11942 setopt NO_GLOB_SUBST
11943 fi
11944 # Now quote all the things that may contain metacharacters while being
11945 # careful not to overquote the AC_SUBSTed values. We take copies of the
11946 # variables and quote the copies for generation of the libtool script.
11947 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11948 SED SHELL STRIP \
11949 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11950 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11951 deplibs_check_method reload_flag reload_cmds need_locks \
11952 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11953 lt_cv_sys_global_symbol_to_c_name_address \
11954 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11955 old_postinstall_cmds old_postuninstall_cmds \
11956 compiler_CXX \
11957 CC_CXX \
11958 LD_CXX \
11959 lt_prog_compiler_wl_CXX \
11960 lt_prog_compiler_pic_CXX \
11961 lt_prog_compiler_static_CXX \
11962 lt_prog_compiler_no_builtin_flag_CXX \
11963 export_dynamic_flag_spec_CXX \
11964 thread_safe_flag_spec_CXX \
11965 whole_archive_flag_spec_CXX \
11966 enable_shared_with_static_runtimes_CXX \
11967 old_archive_cmds_CXX \
11968 old_archive_from_new_cmds_CXX \
11969 predep_objects_CXX \
11970 postdep_objects_CXX \
11971 predeps_CXX \
11972 postdeps_CXX \
11973 compiler_lib_search_path_CXX \
11974 archive_cmds_CXX \
11975 archive_expsym_cmds_CXX \
11976 postinstall_cmds_CXX \
11977 postuninstall_cmds_CXX \
11978 old_archive_from_expsyms_cmds_CXX \
11979 allow_undefined_flag_CXX \
11980 no_undefined_flag_CXX \
11981 export_symbols_cmds_CXX \
11982 hardcode_libdir_flag_spec_CXX \
11983 hardcode_libdir_flag_spec_ld_CXX \
11984 hardcode_libdir_separator_CXX \
11985 hardcode_automatic_CXX \
11986 module_cmds_CXX \
11987 module_expsym_cmds_CXX \
11988 lt_cv_prog_compiler_c_o_CXX \
11989 exclude_expsyms_CXX \
11990 include_expsyms_CXX; do
11991
11992 case $var in
11993 old_archive_cmds_CXX | \
11994 old_archive_from_new_cmds_CXX | \
11995 archive_cmds_CXX | \
11996 archive_expsym_cmds_CXX | \
11997 module_cmds_CXX | \
11998 module_expsym_cmds_CXX | \
11999 old_archive_from_expsyms_cmds_CXX | \
12000 export_symbols_cmds_CXX | \
12001 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12002 postinstall_cmds | postuninstall_cmds | \
12003 old_postinstall_cmds | old_postuninstall_cmds | \
12004 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12005 # Double-quote double-evaled strings.
12006 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12007 ;;
12008 *)
12009 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12010 ;;
12011 esac
12012 done
12013
12014 case $lt_echo in
12015 *'\$0 --fallback-echo"')
12016 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12017 ;;
12018 esac
12019
12020cfgfile="$ofile"
12021
12022 cat <<__EOF__ >> "$cfgfile"
12023# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12024
12025# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12026
12027# Shell to use when invoking shell scripts.
12028SHELL=$lt_SHELL
12029
12030# Whether or not to build shared libraries.
12031build_libtool_libs=$enable_shared
12032
12033# Whether or not to build static libraries.
12034build_old_libs=$enable_static
12035
12036# Whether or not to add -lc for building shared libraries.
12037build_libtool_need_lc=$archive_cmds_need_lc_CXX
12038
12039# Whether or not to disallow shared libs when runtime libs are static
12040allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12041
12042# Whether or not to optimize for fast installation.
12043fast_install=$enable_fast_install
12044
12045# The host system.
12046host_alias=$host_alias
12047host=$host
12048
12049# An echo program that does not interpret backslashes.
12050echo=$lt_echo
12051
12052# The archiver.
12053AR=$lt_AR
12054AR_FLAGS=$lt_AR_FLAGS
12055
12056# A C compiler.
12057LTCC=$lt_LTCC
12058
12059# A language-specific compiler.
12060CC=$lt_compiler_CXX
12061
12062# Is the compiler the GNU C compiler?
12063with_gcc=$GCC_CXX
12064
12065# An ERE matcher.
12066EGREP=$lt_EGREP
12067
12068# The linker used to build libraries.
12069LD=$lt_LD_CXX
12070
12071# Whether we need hard or soft links.
12072LN_S=$lt_LN_S
12073
12074# A BSD-compatible nm program.
12075NM=$lt_NM
12076
12077# A symbol stripping program
12078STRIP=$lt_STRIP
12079
12080# Used to examine libraries when file_magic_cmd begins "file"
12081MAGIC_CMD=$MAGIC_CMD
12082
12083# Used on cygwin: DLL creation program.
12084DLLTOOL="$DLLTOOL"
12085
12086# Used on cygwin: object dumper.
12087OBJDUMP="$OBJDUMP"
12088
12089# Used on cygwin: assembler.
12090AS="$AS"
12091
12092# The name of the directory that contains temporary libtool files.
12093objdir=$objdir
12094
12095# How to create reloadable object files.
12096reload_flag=$lt_reload_flag
12097reload_cmds=$lt_reload_cmds
12098
12099# How to pass a linker flag through the compiler.
12100wl=$lt_lt_prog_compiler_wl_CXX
12101
12102# Object file suffix (normally "o").
12103objext="$ac_objext"
12104
12105# Old archive suffix (normally "a").
12106libext="$libext"
12107
12108# Shared library suffix (normally ".so").
12109shrext='$shrext'
12110
12111# Executable file suffix (normally "").
12112exeext="$exeext"
12113
12114# Additional compiler flags for building library objects.
12115pic_flag=$lt_lt_prog_compiler_pic_CXX
12116pic_mode=$pic_mode
12117
12118# What is the maximum length of a command?
12119max_cmd_len=$lt_cv_sys_max_cmd_len
12120
12121# Does compiler simultaneously support -c and -o options?
12122compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12123
12124# Must we lock files when doing compilation ?
12125need_locks=$lt_need_locks
12126
12127# Do we need the lib prefix for modules?
12128need_lib_prefix=$need_lib_prefix
12129
12130# Do we need a version for libraries?
12131need_version=$need_version
12132
12133# Whether dlopen is supported.
12134dlopen_support=$enable_dlopen
12135
12136# Whether dlopen of programs is supported.
12137dlopen_self=$enable_dlopen_self
12138
12139# Whether dlopen of statically linked programs is supported.
12140dlopen_self_static=$enable_dlopen_self_static
12141
12142# Compiler flag to prevent dynamic linking.
12143link_static_flag=$lt_lt_prog_compiler_static_CXX
12144
12145# Compiler flag to turn off builtin functions.
12146no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12147
12148# Compiler flag to allow reflexive dlopens.
12149export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12150
12151# Compiler flag to generate shared objects directly from archives.
12152whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12153
12154# Compiler flag to generate thread-safe objects.
12155thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12156
12157# Library versioning type.
12158version_type=$version_type
12159
12160# Format of library name prefix.
12161libname_spec=$lt_libname_spec
12162
12163# List of archive names. First name is the real one, the rest are links.
12164# The last name is the one that the linker finds with -lNAME.
12165library_names_spec=$lt_library_names_spec
12166
12167# The coded name of the library, if different from the real name.
12168soname_spec=$lt_soname_spec
12169
12170# Commands used to build and install an old-style archive.
12171RANLIB=$lt_RANLIB
12172old_archive_cmds=$lt_old_archive_cmds_CXX
12173old_postinstall_cmds=$lt_old_postinstall_cmds
12174old_postuninstall_cmds=$lt_old_postuninstall_cmds
12175
12176# Create an old-style archive from a shared archive.
12177old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12178
12179# Create a temporary old-style archive to link instead of a shared archive.
12180old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12181
12182# Commands used to build and install a shared archive.
12183archive_cmds=$lt_archive_cmds_CXX
12184archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12185postinstall_cmds=$lt_postinstall_cmds
12186postuninstall_cmds=$lt_postuninstall_cmds
12187
12188# Commands used to build a loadable module (assumed same as above if empty)
12189module_cmds=$lt_module_cmds_CXX
12190module_expsym_cmds=$lt_module_expsym_cmds_CXX
12191
12192# Commands to strip libraries.
12193old_striplib=$lt_old_striplib
12194striplib=$lt_striplib
12195
12196# Dependencies to place before the objects being linked to create a
12197# shared library.
12198predep_objects=$lt_predep_objects_CXX
12199
12200# Dependencies to place after the objects being linked to create a
12201# shared library.
12202postdep_objects=$lt_postdep_objects_CXX
12203
12204# Dependencies to place before the objects being linked to create a
12205# shared library.
12206predeps=$lt_predeps_CXX
12207
12208# Dependencies to place after the objects being linked to create a
12209# shared library.
12210postdeps=$lt_postdeps_CXX
12211
12212# The library search path used internally by the compiler when linking
12213# a shared library.
12214compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12215
12216# Method to check whether dependent libraries are shared objects.
12217deplibs_check_method=$lt_deplibs_check_method
12218
12219# Command to use when deplibs_check_method == file_magic.
12220file_magic_cmd=$lt_file_magic_cmd
12221
12222# Flag that allows shared libraries with undefined symbols to be built.
12223allow_undefined_flag=$lt_allow_undefined_flag_CXX
12224
12225# Flag that forces no undefined symbols.
12226no_undefined_flag=$lt_no_undefined_flag_CXX
12227
12228# Commands used to finish a libtool library installation in a directory.
12229finish_cmds=$lt_finish_cmds
12230
12231# Same as above, but a single script fragment to be evaled but not shown.
12232finish_eval=$lt_finish_eval
12233
12234# Take the output of nm and produce a listing of raw symbols and C names.
12235global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12236
12237# Transform the output of nm in a proper C declaration
12238global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12239
12240# Transform the output of nm in a C name address pair
12241global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12242
12243# This is the shared library runtime path variable.
12244runpath_var=$runpath_var
12245
12246# This is the shared library path variable.
12247shlibpath_var=$shlibpath_var
12248
12249# Is shlibpath searched before the hard-coded library search path?
12250shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12251
12252# How to hardcode a shared library path into an executable.
12253hardcode_action=$hardcode_action_CXX
12254
12255# Whether we should hardcode library paths into libraries.
12256hardcode_into_libs=$hardcode_into_libs
12257
12258# Flag to hardcode \$libdir into a binary during linking.
12259# This must work even if \$libdir does not exist.
12260hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12261
12262# If ld is used when linking, flag to hardcode \$libdir into
12263# a binary during linking. This must work even if \$libdir does
12264# not exist.
12265hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12266
12267# Whether we need a single -rpath flag with a separated argument.
12268hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12269
12270# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12271# resulting binary.
12272hardcode_direct=$hardcode_direct_CXX
12273
12274# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12275# resulting binary.
12276hardcode_minus_L=$hardcode_minus_L_CXX
12277
12278# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12279# the resulting binary.
12280hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12281
12282# Set to yes if building a shared library automatically hardcodes DIR into the library
12283# and all subsequent libraries and executables linked against it.
12284hardcode_automatic=$hardcode_automatic_CXX
12285
12286# Variables whose values should be saved in libtool wrapper scripts and
12287# restored at relink time.
12288variables_saved_for_relink="$variables_saved_for_relink"
12289
12290# Whether libtool must link a program against all its dependency libraries.
12291link_all_deplibs=$link_all_deplibs_CXX
12292
12293# Compile-time system search path for libraries
12294sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12295
12296# Run-time system search path for libraries
12297sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12298
12299# Fix the shell variable \$srcfile for the compiler.
12300fix_srcfile_path="$fix_srcfile_path_CXX"
12301
12302# Set to yes if exported symbols are required.
12303always_export_symbols=$always_export_symbols_CXX
12304
12305# The commands to list exported symbols.
12306export_symbols_cmds=$lt_export_symbols_cmds_CXX
12307
12308# The commands to extract the exported symbol list from a shared archive.
12309extract_expsyms_cmds=$lt_extract_expsyms_cmds
12310
12311# Symbols that should not be listed in the preloaded symbols.
12312exclude_expsyms=$lt_exclude_expsyms_CXX
12313
12314# Symbols that must always be exported.
12315include_expsyms=$lt_include_expsyms_CXX
12316
12317# ### END LIBTOOL TAG CONFIG: $tagname
12318
12319__EOF__
12320
12321
12322else
12323 # If there is no Makefile yet, we rely on a make rule to execute
12324 # `config.status --recheck' to rerun these tests and create the
12325 # libtool script then.
12326 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12327 if test -f "$ltmain_in"; then
12328 test -f Makefile && make "$ltmain"
12329 fi
12330fi
12331
12332
12333ac_ext=c
12334ac_cpp='$CPP $CPPFLAGS'
12335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12337ac_compiler_gnu=$ac_cv_c_compiler_gnu
12338
12339CC=$lt_save_CC
12340LDCXX=$LD
12341LD=$lt_save_LD
12342GCC=$lt_save_GCC
12343with_gnu_ldcxx=$with_gnu_ld
12344with_gnu_ld=$lt_save_with_gnu_ld
12345lt_cv_path_LDCXX=$lt_cv_path_LD
12346lt_cv_path_LD=$lt_save_path_LD
12347lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12348lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12349
12350 else
12351 tagname=""
12352 fi
12353 ;;
12354
12355 F77)
12356 if test -n "$F77" && test "X$F77" != "Xno"; then
12357
12358ac_ext=f
12359ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12360ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12361ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12362
12363
12364archive_cmds_need_lc_F77=no
12365allow_undefined_flag_F77=
12366always_export_symbols_F77=no
12367archive_expsym_cmds_F77=
12368export_dynamic_flag_spec_F77=
12369hardcode_direct_F77=no
12370hardcode_libdir_flag_spec_F77=
12371hardcode_libdir_flag_spec_ld_F77=
12372hardcode_libdir_separator_F77=
12373hardcode_minus_L_F77=no
12374hardcode_automatic_F77=no
12375module_cmds_F77=
12376module_expsym_cmds_F77=
12377link_all_deplibs_F77=unknown
12378old_archive_cmds_F77=$old_archive_cmds
12379no_undefined_flag_F77=
12380whole_archive_flag_spec_F77=
12381enable_shared_with_static_runtimes_F77=no
12382
12383# Source file extension for f77 test sources.
12384ac_ext=f
12385
12386# Object file extension for compiled f77 test sources.
12387objext=o
12388objext_F77=$objext
12389
12390# Code to be used in simple compile tests
12391lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12392
12393# Code to be used in simple link tests
12394lt_simple_link_test_code=" program t\n end\n"
12395
12396# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12397
12398# If no C compiler was specified, use CC.
12399LTCC=${LTCC-"$CC"}
12400
12401# Allow CC to be a program name with arguments.
12402compiler=$CC
12403
12404
12405# Allow CC to be a program name with arguments.
12406lt_save_CC="$CC"
12407CC=${F77-"f77"}
12408compiler=$CC
12409compiler_F77=$CC
12410cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12411
12412echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12413echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12414echo "$as_me:$LINENO: result: $can_build_shared" >&5
12415echo "${ECHO_T}$can_build_shared" >&6
12416
12417echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12418echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12419test "$can_build_shared" = "no" && enable_shared=no
12420
12421# On AIX, shared libraries and static libraries use the same namespace, and
12422# are all built from PIC.
12423case "$host_os" in
12424aix3*)
12425 test "$enable_shared" = yes && enable_static=no
12426 if test -n "$RANLIB"; then
12427 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12428 postinstall_cmds='$RANLIB $lib'
12429 fi
12430 ;;
12431aix4*)
12432 test "$enable_shared" = yes && enable_static=no
12433 ;;
12434esac
12435echo "$as_me:$LINENO: result: $enable_shared" >&5
12436echo "${ECHO_T}$enable_shared" >&6
12437
12438echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12439echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12440# Make sure either enable_shared or enable_static is yes.
12441test "$enable_shared" = yes || enable_static=yes
12442echo "$as_me:$LINENO: result: $enable_static" >&5
12443echo "${ECHO_T}$enable_static" >&6
12444
12445test "$ld_shlibs_F77" = no && can_build_shared=no
12446
12447GCC_F77="$G77"
12448LD_F77="$LD"
12449
12450lt_prog_compiler_wl_F77=
12451lt_prog_compiler_pic_F77=
12452lt_prog_compiler_static_F77=
12453
12454echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12455echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12456
12457 if test "$GCC" = yes; then
12458 lt_prog_compiler_wl_F77='-Wl,'
12459 lt_prog_compiler_static_F77='-static'
12460
12461 case $host_os in
12462 aix*)
12463 # All AIX code is PIC.
12464 if test "$host_cpu" = ia64; then
12465 # AIX 5 now supports IA64 processor
12466 lt_prog_compiler_static_F77='-Bstatic'
12467 fi
12468 ;;
12469
12470 amigaos*)
12471 # FIXME: we need at least 68020 code to build shared libraries, but
12472 # adding the `-m68020' flag to GCC prevents building anything better,
12473 # like `-m68040'.
12474 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12475 ;;
12476
12477 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12478 # PIC is the default for these OSes.
12479 ;;
12480
12481 mingw* | pw32* | os2*)
12482 # This hack is so that the source file can tell whether it is being
12483 # built for inclusion in a dll (and should export symbols for example).
12484 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12485 ;;
12486
12487 darwin* | rhapsody*)
12488 # PIC is the default on this platform
12489 # Common symbols not allowed in MH_DYLIB files
12490 lt_prog_compiler_pic_F77='-fno-common'
12491 ;;
12492
12493 msdosdjgpp*)
12494 # Just because we use GCC doesn't mean we suddenly get shared libraries
12495 # on systems that don't support them.
12496 lt_prog_compiler_can_build_shared_F77=no
12497 enable_shared=no
12498 ;;
12499
12500 sysv4*MP*)
12501 if test -d /usr/nec; then
12502 lt_prog_compiler_pic_F77=-Kconform_pic
12503 fi
12504 ;;
12505
12506 hpux*)
12507 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12508 # not for PA HP-UX.
12509 case "$host_cpu" in
12510 hppa*64*|ia64*)
12511 # +Z the default
12512 ;;
12513 *)
12514 lt_prog_compiler_pic_F77='-fPIC'
12515 ;;
12516 esac
12517 ;;
12518
12519 *)
12520 lt_prog_compiler_pic_F77='-fPIC'
12521 ;;
12522 esac
12523 else
12524 # PORTME Check for flag to pass linker flags through the system compiler.
12525 case $host_os in
12526 aix*)
12527 lt_prog_compiler_wl_F77='-Wl,'
12528 if test "$host_cpu" = ia64; then
12529 # AIX 5 now supports IA64 processor
12530 lt_prog_compiler_static_F77='-Bstatic'
12531 else
12532 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12533 fi
12534 ;;
12535
12536 mingw* | pw32* | os2*)
12537 # This hack is so that the source file can tell whether it is being
12538 # built for inclusion in a dll (and should export symbols for example).
12539 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12540 ;;
12541
12542 hpux9* | hpux10* | hpux11*)
12543 lt_prog_compiler_wl_F77='-Wl,'
12544 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12545 # not for PA HP-UX.
12546 case "$host_cpu" in
12547 hppa*64*|ia64*)
12548 # +Z the default
12549 ;;
12550 *)
12551 lt_prog_compiler_pic_F77='+Z'
12552 ;;
12553 esac
12554 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12555 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12556 ;;
12557
12558 irix5* | irix6* | nonstopux*)
12559 lt_prog_compiler_wl_F77='-Wl,'
12560 # PIC (with -KPIC) is the default.
12561 lt_prog_compiler_static_F77='-non_shared'
12562 ;;
12563
12564 newsos6)
12565 lt_prog_compiler_pic_F77='-KPIC'
12566 lt_prog_compiler_static_F77='-Bstatic'
12567 ;;
12568
12569 linux*)
12570 case $CC in
12571 icc* | ecc*)
12572 lt_prog_compiler_wl_F77='-Wl,'
12573 lt_prog_compiler_pic_F77='-KPIC'
12574 lt_prog_compiler_static_F77='-static'
12575 ;;
12576 ccc*)
12577 lt_prog_compiler_wl_F77='-Wl,'
12578 # All Alpha code is PIC.
12579 lt_prog_compiler_static_F77='-non_shared'
12580 ;;
12581 esac
12582 ;;
12583
12584 osf3* | osf4* | osf5*)
12585 lt_prog_compiler_wl_F77='-Wl,'
12586 # All OSF/1 code is PIC.
12587 lt_prog_compiler_static_F77='-non_shared'
12588 ;;
12589
12590 sco3.2v5*)
12591 lt_prog_compiler_pic_F77='-Kpic'
12592 lt_prog_compiler_static_F77='-dn'
12593 ;;
12594
12595 solaris*)
12596 lt_prog_compiler_wl_F77='-Wl,'
12597 lt_prog_compiler_pic_F77='-KPIC'
12598 lt_prog_compiler_static_F77='-Bstatic'
12599 ;;
12600
12601 sunos4*)
12602 lt_prog_compiler_wl_F77='-Qoption ld '
12603 lt_prog_compiler_pic_F77='-PIC'
12604 lt_prog_compiler_static_F77='-Bstatic'
12605 ;;
12606
12607 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12608 lt_prog_compiler_wl_F77='-Wl,'
12609 lt_prog_compiler_pic_F77='-KPIC'
12610 lt_prog_compiler_static_F77='-Bstatic'
12611 ;;
12612
12613 sysv4*MP*)
12614 if test -d /usr/nec ;then
12615 lt_prog_compiler_pic_F77='-Kconform_pic'
12616 lt_prog_compiler_static_F77='-Bstatic'
12617 fi
12618 ;;
12619
12620 uts4*)
12621 lt_prog_compiler_pic_F77='-pic'
12622 lt_prog_compiler_static_F77='-Bstatic'
12623 ;;
12624
12625 *)
12626 lt_prog_compiler_can_build_shared_F77=no
12627 ;;
12628 esac
12629 fi
12630
12631echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12632echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12633
12634#
12635# Check to make sure the PIC flag actually works.
12636#
12637if test -n "$lt_prog_compiler_pic_F77"; then
12638
12639echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12640echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12641if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12642 echo $ECHO_N "(cached) $ECHO_C" >&6
12643else
12644 lt_prog_compiler_pic_works_F77=no
12645 ac_outfile=conftest.$ac_objext
12646 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12647 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12648 # Insert the option either (1) after the last *FLAGS variable, or
12649 # (2) before a word containing "conftest.", or (3) at the end.
12650 # Note that $ac_compile itself does not contain backslashes and begins
12651 # with a dollar sign (not a hyphen), so the echo should work correctly.
12652 # The option is referenced via a variable to avoid confusing sed.
12653 lt_compile=`echo "$ac_compile" | $SED \
12654 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12655 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12656 -e 's:$: $lt_compiler_flag:'`
drh8e2e2a12006-02-01 01:55:17 +000012657 (eval echo "\"\$as_me:12657: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000012658 (eval "$lt_compile" 2>conftest.err)
12659 ac_status=$?
12660 cat conftest.err >&5
drh8e2e2a12006-02-01 01:55:17 +000012661 echo "$as_me:12661: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000012662 if (exit $ac_status) && test -s "$ac_outfile"; then
12663 # The compiler can only warn and ignore the option if not recognized
12664 # So say no if there are warnings
12665 if test ! -s conftest.err; then
12666 lt_prog_compiler_pic_works_F77=yes
12667 fi
12668 fi
12669 $rm conftest*
12670
12671fi
12672echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12673echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12674
12675if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12676 case $lt_prog_compiler_pic_F77 in
12677 "" | " "*) ;;
12678 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12679 esac
12680else
12681 lt_prog_compiler_pic_F77=
12682 lt_prog_compiler_can_build_shared_F77=no
12683fi
12684
12685fi
12686case "$host_os" in
12687 # For platforms which do not support PIC, -DPIC is meaningless:
12688 *djgpp*)
12689 lt_prog_compiler_pic_F77=
12690 ;;
12691 *)
12692 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12693 ;;
12694esac
12695
12696echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12697echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12698if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12699 echo $ECHO_N "(cached) $ECHO_C" >&6
12700else
12701 lt_cv_prog_compiler_c_o_F77=no
12702 $rm -r conftest 2>/dev/null
12703 mkdir conftest
12704 cd conftest
12705 mkdir out
12706 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12707
12708 lt_compiler_flag="-o out/conftest2.$ac_objext"
12709 # Insert the option either (1) after the last *FLAGS variable, or
12710 # (2) before a word containing "conftest.", or (3) at the end.
12711 # Note that $ac_compile itself does not contain backslashes and begins
12712 # with a dollar sign (not a hyphen), so the echo should work correctly.
12713 lt_compile=`echo "$ac_compile" | $SED \
12714 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12715 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12716 -e 's:$: $lt_compiler_flag:'`
drh8e2e2a12006-02-01 01:55:17 +000012717 (eval echo "\"\$as_me:12717: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000012718 (eval "$lt_compile" 2>out/conftest.err)
12719 ac_status=$?
12720 cat out/conftest.err >&5
drh8e2e2a12006-02-01 01:55:17 +000012721 echo "$as_me:12721: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000012722 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12723 then
12724 # The compiler can only warn and ignore the option if not recognized
12725 # So say no if there are warnings
12726 if test ! -s out/conftest.err; then
12727 lt_cv_prog_compiler_c_o_F77=yes
12728 fi
12729 fi
12730 chmod u+w .
12731 $rm conftest*
12732 # SGI C++ compiler will create directory out/ii_files/ for
12733 # template instantiation
12734 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12735 $rm out/* && rmdir out
12736 cd ..
12737 rmdir conftest
12738 $rm conftest*
12739
12740fi
12741echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12742echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12743
12744
12745hard_links="nottested"
12746if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12747 # do not overwrite the value of need_locks provided by the user
12748 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12749echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12750 hard_links=yes
12751 $rm conftest*
12752 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12753 touch conftest.a
12754 ln conftest.a conftest.b 2>&5 || hard_links=no
12755 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12756 echo "$as_me:$LINENO: result: $hard_links" >&5
12757echo "${ECHO_T}$hard_links" >&6
12758 if test "$hard_links" = no; then
12759 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12760echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12761 need_locks=warn
12762 fi
12763else
12764 need_locks=no
12765fi
12766
12767echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12768echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12769
12770 runpath_var=
12771 allow_undefined_flag_F77=
12772 enable_shared_with_static_runtimes_F77=no
12773 archive_cmds_F77=
12774 archive_expsym_cmds_F77=
12775 old_archive_From_new_cmds_F77=
12776 old_archive_from_expsyms_cmds_F77=
12777 export_dynamic_flag_spec_F77=
12778 whole_archive_flag_spec_F77=
12779 thread_safe_flag_spec_F77=
12780 hardcode_libdir_flag_spec_F77=
12781 hardcode_libdir_flag_spec_ld_F77=
12782 hardcode_libdir_separator_F77=
12783 hardcode_direct_F77=no
12784 hardcode_minus_L_F77=no
12785 hardcode_shlibpath_var_F77=unsupported
12786 link_all_deplibs_F77=unknown
12787 hardcode_automatic_F77=no
12788 module_cmds_F77=
12789 module_expsym_cmds_F77=
12790 always_export_symbols_F77=no
12791 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12792 # include_expsyms should be a list of space-separated symbols to be *always*
12793 # included in the symbol list
12794 include_expsyms_F77=
12795 # exclude_expsyms can be an extended regexp of symbols to exclude
12796 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12797 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12798 # as well as any symbol that contains `d'.
12799 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12800 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12801 # platforms (ab)use it in PIC code, but their linkers get confused if
12802 # the symbol is explicitly referenced. Since portable code cannot
12803 # rely on this symbol name, it's probably fine to never include it in
12804 # preloaded symbol tables.
12805 extract_expsyms_cmds=
12806
12807 case $host_os in
12808 cygwin* | mingw* | pw32*)
12809 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12810 # When not using gcc, we currently assume that we are using
12811 # Microsoft Visual C++.
12812 if test "$GCC" != yes; then
12813 with_gnu_ld=no
12814 fi
12815 ;;
12816 openbsd*)
12817 with_gnu_ld=no
12818 ;;
12819 esac
12820
12821 ld_shlibs_F77=yes
12822 if test "$with_gnu_ld" = yes; then
12823 # If archive_cmds runs LD, not CC, wlarc should be empty
12824 wlarc='${wl}'
12825
12826 # See if GNU ld supports shared libraries.
12827 case $host_os in
12828 aix3* | aix4* | aix5*)
12829 # On AIX/PPC, the GNU linker is very broken
12830 if test "$host_cpu" != ia64; then
12831 ld_shlibs_F77=no
12832 cat <<EOF 1>&2
12833
12834*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12835*** to be unable to reliably create shared libraries on AIX.
12836*** Therefore, libtool is disabling shared libraries support. If you
12837*** really care for shared libraries, you may want to modify your PATH
12838*** so that a non-GNU linker is found, and then restart.
12839
12840EOF
12841 fi
12842 ;;
12843
12844 amigaos*)
12845 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)'
12846 hardcode_libdir_flag_spec_F77='-L$libdir'
12847 hardcode_minus_L_F77=yes
12848
12849 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12850 # that the semantics of dynamic libraries on AmigaOS, at least up
12851 # to version 4, is to share data among multiple programs linked
12852 # with the same dynamic library. Since this doesn't match the
12853 # behavior of shared libraries on other platforms, we can't use
12854 # them.
12855 ld_shlibs_F77=no
12856 ;;
12857
12858 beos*)
12859 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12860 allow_undefined_flag_F77=unsupported
12861 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12862 # support --undefined. This deserves some investigation. FIXME
12863 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12864 else
12865 ld_shlibs_F77=no
12866 fi
12867 ;;
12868
12869 cygwin* | mingw* | pw32*)
12870 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12871 # as there is no search path for DLLs.
12872 hardcode_libdir_flag_spec_F77='-L$libdir'
12873 allow_undefined_flag_F77=unsupported
12874 always_export_symbols_F77=no
12875 enable_shared_with_static_runtimes_F77=yes
12876 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12877
12878 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12879 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12880 # If the export-symbols file already is a .def file (1st line
12881 # is EXPORTS), use it as is; otherwise, prepend...
12882 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12883 cp $export_symbols $output_objdir/$soname.def;
12884 else
12885 echo EXPORTS > $output_objdir/$soname.def;
12886 cat $export_symbols >> $output_objdir/$soname.def;
12887 fi~
12888 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12889 else
12890 ld_shlibs=no
12891 fi
12892 ;;
12893
12894 netbsd* | knetbsd*-gnu)
12895 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12896 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12897 wlarc=
12898 else
12899 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12900 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12901 fi
12902 ;;
12903
12904 solaris* | sysv5*)
12905 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12906 ld_shlibs_F77=no
12907 cat <<EOF 1>&2
12908
12909*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12910*** create shared libraries on Solaris systems. Therefore, libtool
12911*** is disabling shared libraries support. We urge you to upgrade GNU
12912*** binutils to release 2.9.1 or newer. Another option is to modify
12913*** your PATH or compiler configuration so that the native linker is
12914*** used, and then restart.
12915
12916EOF
12917 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12918 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12919 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12920 else
12921 ld_shlibs_F77=no
12922 fi
12923 ;;
12924
12925 sunos4*)
12926 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12927 wlarc=
12928 hardcode_direct_F77=yes
12929 hardcode_shlibpath_var_F77=no
12930 ;;
12931
12932 linux*)
12933 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12934 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12935 archive_cmds_F77="$tmp_archive_cmds"
12936 supports_anon_versioning=no
12937 case `$LD -v 2>/dev/null` in
12938 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12939 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12940 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12941 *\ 2.11.*) ;; # other 2.11 versions
12942 *) supports_anon_versioning=yes ;;
12943 esac
12944 if test $supports_anon_versioning = yes; then
12945 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
12946cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12947$echo "local: *; };" >> $output_objdir/$libname.ver~
12948 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12949 else
12950 archive_expsym_cmds_F77="$tmp_archive_cmds"
12951 fi
12952 else
12953 ld_shlibs_F77=no
12954 fi
12955 ;;
12956
12957 *)
12958 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12959 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12960 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12961 else
12962 ld_shlibs_F77=no
12963 fi
12964 ;;
12965 esac
12966
12967 if test "$ld_shlibs_F77" = yes; then
12968 runpath_var=LD_RUN_PATH
12969 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12970 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12971 # ancient GNU ld didn't support --whole-archive et. al.
12972 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12973 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12974 else
12975 whole_archive_flag_spec_F77=
12976 fi
12977 fi
12978 else
12979 # PORTME fill in a description of your system's linker (not GNU ld)
12980 case $host_os in
12981 aix3*)
12982 allow_undefined_flag_F77=unsupported
12983 always_export_symbols_F77=yes
12984 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'
12985 # Note: this linker hardcodes the directories in LIBPATH if there
12986 # are no directories specified by -L.
12987 hardcode_minus_L_F77=yes
12988 if test "$GCC" = yes && test -z "$link_static_flag"; then
12989 # Neither direct hardcoding nor static linking is supported with a
12990 # broken collect2.
12991 hardcode_direct_F77=unsupported
12992 fi
12993 ;;
12994
12995 aix4* | aix5*)
12996 if test "$host_cpu" = ia64; then
12997 # On IA64, the linker does run time linking by default, so we don't
12998 # have to do anything special.
12999 aix_use_runtimelinking=no
13000 exp_sym_flag='-Bexport'
13001 no_entry_flag=""
13002 else
13003 # If we're using GNU nm, then we don't want the "-C" option.
13004 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13005 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13006 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'
13007 else
13008 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'
13009 fi
13010 aix_use_runtimelinking=no
13011
13012 # Test if we are trying to use run time linking or normal
13013 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13014 # need to do runtime linking.
13015 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13016 for ld_flag in $LDFLAGS; do
13017 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13018 aix_use_runtimelinking=yes
13019 break
13020 fi
13021 done
13022 esac
13023
13024 exp_sym_flag='-bexport'
13025 no_entry_flag='-bnoentry'
13026 fi
13027
13028 # When large executables or shared objects are built, AIX ld can
13029 # have problems creating the table of contents. If linking a library
13030 # or program results in "error TOC overflow" add -mminimal-toc to
13031 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13032 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13033
13034 archive_cmds_F77=''
13035 hardcode_direct_F77=yes
13036 hardcode_libdir_separator_F77=':'
13037 link_all_deplibs_F77=yes
13038
13039 if test "$GCC" = yes; then
13040 case $host_os in aix4.012|aix4.012.*)
13041 # We only want to do this on AIX 4.2 and lower, the check
13042 # below for broken collect2 doesn't work under 4.3+
13043 collect2name=`${CC} -print-prog-name=collect2`
13044 if test -f "$collect2name" && \
13045 strings "$collect2name" | grep resolve_lib_name >/dev/null
13046 then
13047 # We have reworked collect2
13048 hardcode_direct_F77=yes
13049 else
13050 # We have old collect2
13051 hardcode_direct_F77=unsupported
13052 # It fails to find uninstalled libraries when the uninstalled
13053 # path is not listed in the libpath. Setting hardcode_minus_L
13054 # to unsupported forces relinking
13055 hardcode_minus_L_F77=yes
13056 hardcode_libdir_flag_spec_F77='-L$libdir'
13057 hardcode_libdir_separator_F77=
13058 fi
13059 esac
13060 shared_flag='-shared'
13061 else
13062 # not using gcc
13063 if test "$host_cpu" = ia64; then
13064 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13065 # chokes on -Wl,-G. The following line is correct:
13066 shared_flag='-G'
13067 else
13068 if test "$aix_use_runtimelinking" = yes; then
13069 shared_flag='${wl}-G'
13070 else
13071 shared_flag='${wl}-bM:SRE'
13072 fi
13073 fi
13074 fi
13075
13076 # It seems that -bexpall does not export symbols beginning with
13077 # underscore (_), so it is better to generate a list of symbols to export.
13078 always_export_symbols_F77=yes
13079 if test "$aix_use_runtimelinking" = yes; then
13080 # Warning - without using the other runtime loading flags (-brtl),
13081 # -berok will link without error, but may produce a broken library.
13082 allow_undefined_flag_F77='-berok'
13083 # Determine the default libpath from the value encoded in an empty executable.
13084 cat >conftest.$ac_ext <<_ACEOF
13085 program main
13086
13087 end
13088_ACEOF
13089rm -f conftest.$ac_objext conftest$ac_exeext
13090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13091 (eval $ac_link) 2>conftest.er1
13092 ac_status=$?
13093 grep -v '^ *+' conftest.er1 >conftest.err
13094 rm -f conftest.er1
13095 cat conftest.err >&5
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000013098 { ac_try='test -z "$ac_f77_werror_flag"
13099 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000013100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13101 (eval $ac_try) 2>&5
13102 ac_status=$?
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); }; } &&
13105 { ac_try='test -s conftest$ac_exeext'
13106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107 (eval $ac_try) 2>&5
13108 ac_status=$?
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; }; then
13111
13112aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13113}'`
13114# Check for a 64-bit object if we didn't find anything.
13115if 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; }
13116}'`; fi
13117else
13118 echo "$as_me: failed program was:" >&5
13119sed 's/^/| /' conftest.$ac_ext >&5
13120
13121fi
13122rm -f conftest.err conftest.$ac_objext \
13123 conftest$ac_exeext conftest.$ac_ext
13124if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13125
13126 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13127 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13128 else
13129 if test "$host_cpu" = ia64; then
13130 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13131 allow_undefined_flag_F77="-z nodefs"
13132 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13133 else
13134 # Determine the default libpath from the value encoded in an empty executable.
13135 cat >conftest.$ac_ext <<_ACEOF
13136 program main
13137
13138 end
13139_ACEOF
13140rm -f conftest.$ac_objext conftest$ac_exeext
13141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13142 (eval $ac_link) 2>conftest.er1
13143 ac_status=$?
13144 grep -v '^ *+' conftest.er1 >conftest.err
13145 rm -f conftest.er1
13146 cat conftest.err >&5
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000013149 { ac_try='test -z "$ac_f77_werror_flag"
13150 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000013151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13152 (eval $ac_try) 2>&5
13153 ac_status=$?
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; } &&
13156 { ac_try='test -s conftest$ac_exeext'
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13159 ac_status=$?
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; }; then
13162
13163aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13164}'`
13165# Check for a 64-bit object if we didn't find anything.
13166if 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; }
13167}'`; fi
13168else
13169 echo "$as_me: failed program was:" >&5
13170sed 's/^/| /' conftest.$ac_ext >&5
13171
13172fi
13173rm -f conftest.err conftest.$ac_objext \
13174 conftest$ac_exeext conftest.$ac_ext
13175if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13176
13177 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13178 # Warning - without using the other run time loading flags,
13179 # -berok will link without error, but may produce a broken library.
13180 no_undefined_flag_F77=' ${wl}-bernotok'
13181 allow_undefined_flag_F77=' ${wl}-berok'
13182 # -bexpall does not export symbols beginning with underscore (_)
13183 always_export_symbols_F77=yes
13184 # Exported symbols can be pulled into shared objects from archives
13185 whole_archive_flag_spec_F77=' '
13186 archive_cmds_need_lc_F77=yes
13187 # This is similar to how AIX traditionally builds it's shared libraries.
13188 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13189 fi
13190 fi
13191 ;;
13192
13193 amigaos*)
13194 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)'
13195 hardcode_libdir_flag_spec_F77='-L$libdir'
13196 hardcode_minus_L_F77=yes
13197 # see comment about different semantics on the GNU ld section
13198 ld_shlibs_F77=no
13199 ;;
13200
13201 bsdi4*)
13202 export_dynamic_flag_spec_F77=-rdynamic
13203 ;;
13204
13205 cygwin* | mingw* | pw32*)
13206 # When not using gcc, we currently assume that we are using
13207 # Microsoft Visual C++.
13208 # hardcode_libdir_flag_spec is actually meaningless, as there is
13209 # no search path for DLLs.
13210 hardcode_libdir_flag_spec_F77=' '
13211 allow_undefined_flag_F77=unsupported
13212 # Tell ltmain to make .lib files, not .a files.
13213 libext=lib
13214 # Tell ltmain to make .dll files, not .so files.
13215 shrext=".dll"
13216 # FIXME: Setting linknames here is a bad hack.
13217 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13218 # The linker will automatically build a .lib file if we build a DLL.
13219 old_archive_From_new_cmds_F77='true'
13220 # FIXME: Should let the user specify the lib program.
13221 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13222 fix_srcfile_path='`cygpath -w "$srcfile"`'
13223 enable_shared_with_static_runtimes_F77=yes
13224 ;;
13225
13226 darwin* | rhapsody*)
13227 if test "$GXX" = yes ; then
13228 archive_cmds_need_lc_F77=no
13229 case "$host_os" in
13230 rhapsody* | darwin1.[012])
13231 allow_undefined_flag_F77='-undefined suppress'
13232 ;;
13233 *) # Darwin 1.3 on
13234 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13235 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13236 else
13237 case ${MACOSX_DEPLOYMENT_TARGET} in
13238 10.[012])
13239 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13240 ;;
13241 10.*)
13242 allow_undefined_flag_F77='-undefined dynamic_lookup'
13243 ;;
13244 esac
13245 fi
13246 ;;
13247 esac
13248 lt_int_apple_cc_single_mod=no
13249 output_verbose_link_cmd='echo'
13250 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13251 lt_int_apple_cc_single_mod=yes
13252 fi
13253 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13254 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13255 else
13256 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13257 fi
13258 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13259 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13260 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13261 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13262 else
13263 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13264 fi
13265 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}'
13266 hardcode_direct_F77=no
13267 hardcode_automatic_F77=yes
13268 hardcode_shlibpath_var_F77=unsupported
13269 whole_archive_flag_spec_F77='-all_load $convenience'
13270 link_all_deplibs_F77=yes
13271 else
13272 ld_shlibs_F77=no
13273 fi
13274 ;;
13275
13276 dgux*)
13277 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13278 hardcode_libdir_flag_spec_F77='-L$libdir'
13279 hardcode_shlibpath_var_F77=no
13280 ;;
13281
13282 freebsd1*)
13283 ld_shlibs_F77=no
13284 ;;
13285
13286 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13287 # support. Future versions do this automatically, but an explicit c++rt0.o
13288 # does not break anything, and helps significantly (at the cost of a little
13289 # extra space).
13290 freebsd2.2*)
13291 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13292 hardcode_libdir_flag_spec_F77='-R$libdir'
13293 hardcode_direct_F77=yes
13294 hardcode_shlibpath_var_F77=no
13295 ;;
13296
13297 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13298 freebsd2*)
13299 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13300 hardcode_direct_F77=yes
13301 hardcode_minus_L_F77=yes
13302 hardcode_shlibpath_var_F77=no
13303 ;;
13304
13305 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13306 freebsd* | kfreebsd*-gnu)
13307 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13308 hardcode_libdir_flag_spec_F77='-R$libdir'
13309 hardcode_direct_F77=yes
13310 hardcode_shlibpath_var_F77=no
13311 ;;
13312
13313 hpux9*)
13314 if test "$GCC" = yes; then
13315 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'
13316 else
13317 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'
13318 fi
13319 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13320 hardcode_libdir_separator_F77=:
13321 hardcode_direct_F77=yes
13322
13323 # hardcode_minus_L: Not really in the search PATH,
13324 # but as the default location of the library.
13325 hardcode_minus_L_F77=yes
13326 export_dynamic_flag_spec_F77='${wl}-E'
13327 ;;
13328
13329 hpux10* | hpux11*)
13330 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13331 case "$host_cpu" in
13332 hppa*64*|ia64*)
13333 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13334 ;;
13335 *)
13336 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13337 ;;
13338 esac
13339 else
13340 case "$host_cpu" in
13341 hppa*64*|ia64*)
13342 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13343 ;;
13344 *)
13345 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13346 ;;
13347 esac
13348 fi
13349 if test "$with_gnu_ld" = no; then
13350 case "$host_cpu" in
13351 hppa*64*)
13352 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13353 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13354 hardcode_libdir_separator_F77=:
13355 hardcode_direct_F77=no
13356 hardcode_shlibpath_var_F77=no
13357 ;;
13358 ia64*)
13359 hardcode_libdir_flag_spec_F77='-L$libdir'
13360 hardcode_direct_F77=no
13361 hardcode_shlibpath_var_F77=no
13362
13363 # hardcode_minus_L: Not really in the search PATH,
13364 # but as the default location of the library.
13365 hardcode_minus_L_F77=yes
13366 ;;
13367 *)
13368 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13369 hardcode_libdir_separator_F77=:
13370 hardcode_direct_F77=yes
13371 export_dynamic_flag_spec_F77='${wl}-E'
13372
13373 # hardcode_minus_L: Not really in the search PATH,
13374 # but as the default location of the library.
13375 hardcode_minus_L_F77=yes
13376 ;;
13377 esac
13378 fi
13379 ;;
13380
13381 irix5* | irix6* | nonstopux*)
13382 if test "$GCC" = yes; then
13383 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'
13384 else
13385 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'
13386 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13387 fi
13388 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13389 hardcode_libdir_separator_F77=:
13390 link_all_deplibs_F77=yes
13391 ;;
13392
13393 netbsd* | knetbsd*-gnu)
13394 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13395 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13396 else
13397 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13398 fi
13399 hardcode_libdir_flag_spec_F77='-R$libdir'
13400 hardcode_direct_F77=yes
13401 hardcode_shlibpath_var_F77=no
13402 ;;
13403
13404 newsos6)
13405 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13406 hardcode_direct_F77=yes
13407 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13408 hardcode_libdir_separator_F77=:
13409 hardcode_shlibpath_var_F77=no
13410 ;;
13411
13412 openbsd*)
13413 hardcode_direct_F77=yes
13414 hardcode_shlibpath_var_F77=no
13415 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13416 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13417 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13418 export_dynamic_flag_spec_F77='${wl}-E'
13419 else
13420 case $host_os in
13421 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13422 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13423 hardcode_libdir_flag_spec_F77='-R$libdir'
13424 ;;
13425 *)
13426 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13427 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13428 ;;
13429 esac
13430 fi
13431 ;;
13432
13433 os2*)
13434 hardcode_libdir_flag_spec_F77='-L$libdir'
13435 hardcode_minus_L_F77=yes
13436 allow_undefined_flag_F77=unsupported
13437 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'
13438 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13439 ;;
13440
13441 osf3*)
13442 if test "$GCC" = yes; then
13443 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13444 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'
13445 else
13446 allow_undefined_flag_F77=' -expect_unresolved \*'
13447 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'
13448 fi
13449 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13450 hardcode_libdir_separator_F77=:
13451 ;;
13452
13453 osf4* | osf5*) # as osf3* with the addition of -msym flag
13454 if test "$GCC" = yes; then
13455 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13456 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'
13457 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13458 else
13459 allow_undefined_flag_F77=' -expect_unresolved \*'
13460 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'
13461 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~
13462 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13463
13464 # Both c and cxx compiler support -rpath directly
13465 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13466 fi
13467 hardcode_libdir_separator_F77=:
13468 ;;
13469
13470 sco3.2v5*)
13471 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13472 hardcode_shlibpath_var_F77=no
13473 export_dynamic_flag_spec_F77='${wl}-Bexport'
13474 runpath_var=LD_RUN_PATH
13475 hardcode_runpath_var=yes
13476 ;;
13477
13478 solaris*)
13479 no_undefined_flag_F77=' -z text'
13480 if test "$GCC" = yes; then
13481 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13482 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13483 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13484 else
13485 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13486 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13487 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13488 fi
13489 hardcode_libdir_flag_spec_F77='-R$libdir'
13490 hardcode_shlibpath_var_F77=no
13491 case $host_os in
13492 solaris2.[0-5] | solaris2.[0-5].*) ;;
13493 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13494 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13495 esac
13496 link_all_deplibs_F77=yes
13497 ;;
13498
13499 sunos4*)
13500 if test "x$host_vendor" = xsequent; then
13501 # Use $CC to link under sequent, because it throws in some extra .o
13502 # files that make .init and .fini sections work.
13503 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13504 else
13505 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13506 fi
13507 hardcode_libdir_flag_spec_F77='-L$libdir'
13508 hardcode_direct_F77=yes
13509 hardcode_minus_L_F77=yes
13510 hardcode_shlibpath_var_F77=no
13511 ;;
13512
13513 sysv4)
13514 case $host_vendor in
13515 sni)
13516 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13517 hardcode_direct_F77=yes # is this really true???
13518 ;;
13519 siemens)
13520 ## LD is ld it makes a PLAMLIB
13521 ## CC just makes a GrossModule.
13522 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13523 reload_cmds_F77='$CC -r -o $output$reload_objs'
13524 hardcode_direct_F77=no
13525 ;;
13526 motorola)
13527 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13528 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13529 ;;
13530 esac
13531 runpath_var='LD_RUN_PATH'
13532 hardcode_shlibpath_var_F77=no
13533 ;;
13534
13535 sysv4.3*)
13536 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13537 hardcode_shlibpath_var_F77=no
13538 export_dynamic_flag_spec_F77='-Bexport'
13539 ;;
13540
13541 sysv4*MP*)
13542 if test -d /usr/nec; then
13543 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13544 hardcode_shlibpath_var_F77=no
13545 runpath_var=LD_RUN_PATH
13546 hardcode_runpath_var=yes
13547 ld_shlibs_F77=yes
13548 fi
13549 ;;
13550
13551 sysv4.2uw2*)
13552 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13553 hardcode_direct_F77=yes
13554 hardcode_minus_L_F77=no
13555 hardcode_shlibpath_var_F77=no
13556 hardcode_runpath_var=yes
13557 runpath_var=LD_RUN_PATH
13558 ;;
13559
13560 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13561 no_undefined_flag_F77='${wl}-z ${wl}text'
13562 if test "$GCC" = yes; then
13563 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13564 else
13565 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13566 fi
13567 runpath_var='LD_RUN_PATH'
13568 hardcode_shlibpath_var_F77=no
13569 ;;
13570
13571 sysv5*)
13572 no_undefined_flag_F77=' -z text'
13573 # $CC -shared without GNU ld will not create a library from C++
13574 # object files and a static libstdc++, better avoid it by now
13575 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13576 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13577 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13578 hardcode_libdir_flag_spec_F77=
13579 hardcode_shlibpath_var_F77=no
13580 runpath_var='LD_RUN_PATH'
13581 ;;
13582
13583 uts4*)
13584 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13585 hardcode_libdir_flag_spec_F77='-L$libdir'
13586 hardcode_shlibpath_var_F77=no
13587 ;;
13588
13589 *)
13590 ld_shlibs_F77=no
13591 ;;
13592 esac
13593 fi
13594
13595echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13596echo "${ECHO_T}$ld_shlibs_F77" >&6
13597test "$ld_shlibs_F77" = no && can_build_shared=no
13598
13599variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13600if test "$GCC" = yes; then
13601 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13602fi
13603
13604#
13605# Do we need to explicitly link libc?
13606#
13607case "x$archive_cmds_need_lc_F77" in
13608x|xyes)
13609 # Assume -lc should be added
13610 archive_cmds_need_lc_F77=yes
13611
13612 if test "$enable_shared" = yes && test "$GCC" = yes; then
13613 case $archive_cmds_F77 in
13614 *'~'*)
13615 # FIXME: we may have to deal with multi-command sequences.
13616 ;;
13617 '$CC '*)
13618 # Test whether the compiler implicitly links with -lc since on some
13619 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13620 # to ld, don't add -lc before -lgcc.
13621 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13622echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13623 $rm conftest*
13624 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13625
13626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13627 (eval $ac_compile) 2>&5
13628 ac_status=$?
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); } 2>conftest.err; then
13631 soname=conftest
13632 lib=conftest
13633 libobjs=conftest.$ac_objext
13634 deplibs=
13635 wl=$lt_prog_compiler_wl_F77
13636 compiler_flags=-v
13637 linker_flags=-v
13638 verstring=
13639 output_objdir=.
13640 libname=conftest
13641 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13642 allow_undefined_flag_F77=
13643 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13644 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13645 ac_status=$?
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }
13648 then
13649 archive_cmds_need_lc_F77=no
13650 else
13651 archive_cmds_need_lc_F77=yes
13652 fi
13653 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13654 else
13655 cat conftest.err 1>&5
13656 fi
13657 $rm conftest*
13658 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13659echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13660 ;;
13661 esac
13662 fi
13663 ;;
13664esac
13665
13666echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13667echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13668library_names_spec=
13669libname_spec='lib$name'
13670soname_spec=
13671shrext=".so"
13672postinstall_cmds=
13673postuninstall_cmds=
13674finish_cmds=
13675finish_eval=
13676shlibpath_var=
13677shlibpath_overrides_runpath=unknown
13678version_type=none
13679dynamic_linker="$host_os ld.so"
13680sys_lib_dlsearch_path_spec="/lib /usr/lib"
13681if test "$GCC" = yes; then
13682 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13683 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13684 # if the path contains ";" then we assume it to be the separator
13685 # otherwise default to the standard path separator (i.e. ":") - it is
13686 # assumed that no part of a normal pathname contains ";" but that should
13687 # okay in the real world where ";" in dirpaths is itself problematic.
13688 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13689 else
13690 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13691 fi
13692else
13693 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13694fi
13695need_lib_prefix=unknown
13696hardcode_into_libs=no
13697
13698# when you set need_version to no, make sure it does not cause -set_version
13699# flags to be left without arguments
13700need_version=unknown
13701
13702case $host_os in
13703aix3*)
13704 version_type=linux
13705 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13706 shlibpath_var=LIBPATH
13707
13708 # AIX 3 has no versioning support, so we append a major version to the name.
13709 soname_spec='${libname}${release}${shared_ext}$major'
13710 ;;
13711
13712aix4* | aix5*)
13713 version_type=linux
13714 need_lib_prefix=no
13715 need_version=no
13716 hardcode_into_libs=yes
13717 if test "$host_cpu" = ia64; then
13718 # AIX 5 supports IA64
13719 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13720 shlibpath_var=LD_LIBRARY_PATH
13721 else
13722 # With GCC up to 2.95.x, collect2 would create an import file
13723 # for dependence libraries. The import file would start with
13724 # the line `#! .'. This would cause the generated library to
13725 # depend on `.', always an invalid library. This was fixed in
13726 # development snapshots of GCC prior to 3.0.
13727 case $host_os in
13728 aix4 | aix4.[01] | aix4.[01].*)
13729 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13730 echo ' yes '
13731 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13732 :
13733 else
13734 can_build_shared=no
13735 fi
13736 ;;
13737 esac
13738 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13739 # soname into executable. Probably we can add versioning support to
13740 # collect2, so additional links can be useful in future.
13741 if test "$aix_use_runtimelinking" = yes; then
13742 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13743 # instead of lib<name>.a to let people know that these are not
13744 # typical AIX shared libraries.
13745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13746 else
13747 # We preserve .a as extension for shared libraries through AIX4.2
13748 # and later when we are not doing run time linking.
13749 library_names_spec='${libname}${release}.a $libname.a'
13750 soname_spec='${libname}${release}${shared_ext}$major'
13751 fi
13752 shlibpath_var=LIBPATH
13753 fi
13754 ;;
13755
13756amigaos*)
13757 library_names_spec='$libname.ixlibrary $libname.a'
13758 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13759 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'
13760 ;;
13761
13762beos*)
13763 library_names_spec='${libname}${shared_ext}'
13764 dynamic_linker="$host_os ld.so"
13765 shlibpath_var=LIBRARY_PATH
13766 ;;
13767
13768bsdi4*)
13769 version_type=linux
13770 need_version=no
13771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13772 soname_spec='${libname}${release}${shared_ext}$major'
13773 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13774 shlibpath_var=LD_LIBRARY_PATH
13775 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13776 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13777 # the default ld.so.conf also contains /usr/contrib/lib and
13778 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13779 # libtool to hard-code these into programs
13780 ;;
13781
13782cygwin* | mingw* | pw32*)
13783 version_type=windows
13784 shrext=".dll"
13785 need_version=no
13786 need_lib_prefix=no
13787
13788 case $GCC,$host_os in
13789 yes,cygwin* | yes,mingw* | yes,pw32*)
13790 library_names_spec='$libname.dll.a'
13791 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13792 postinstall_cmds='base_file=`basename \${file}`~
13793 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13794 dldir=$destdir/`dirname \$dlpath`~
13795 test -d \$dldir || mkdir -p \$dldir~
13796 $install_prog $dir/$dlname \$dldir/$dlname'
13797 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13798 dlpath=$dir/\$dldll~
13799 $rm \$dlpath'
13800 shlibpath_overrides_runpath=yes
13801
13802 case $host_os in
13803 cygwin*)
13804 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13805 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13806 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13807 ;;
13808 mingw*)
13809 # MinGW DLLs use traditional 'lib' prefix
13810 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13811 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13812 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13813 # It is most probably a Windows format PATH printed by
13814 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13815 # path with ; separators, and with drive letters. We can handle the
13816 # drive letters (cygwin fileutils understands them), so leave them,
13817 # especially as we might pass files found there to a mingw objdump,
13818 # which wouldn't understand a cygwinified path. Ahh.
13819 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13820 else
13821 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13822 fi
13823 ;;
13824 pw32*)
13825 # pw32 DLLs use 'pw' prefix rather than 'lib'
13826 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13827 ;;
13828 esac
13829 ;;
13830
13831 *)
13832 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13833 ;;
13834 esac
13835 dynamic_linker='Win32 ld.exe'
13836 # FIXME: first we should search . and the directory the executable is in
13837 shlibpath_var=PATH
13838 ;;
13839
13840darwin* | rhapsody*)
13841 dynamic_linker="$host_os dyld"
13842 version_type=darwin
13843 need_lib_prefix=no
13844 need_version=no
13845 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13846 soname_spec='${libname}${release}${major}$shared_ext'
13847 shlibpath_overrides_runpath=yes
13848 shlibpath_var=DYLD_LIBRARY_PATH
13849 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13850 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13851 if test "$GCC" = yes; then
13852 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"`
13853 else
13854 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13855 fi
13856 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13857 ;;
13858
13859dgux*)
13860 version_type=linux
13861 need_lib_prefix=no
13862 need_version=no
13863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13864 soname_spec='${libname}${release}${shared_ext}$major'
13865 shlibpath_var=LD_LIBRARY_PATH
13866 ;;
13867
13868freebsd1*)
13869 dynamic_linker=no
13870 ;;
13871
13872kfreebsd*-gnu)
13873 version_type=linux
13874 need_lib_prefix=no
13875 need_version=no
13876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13877 soname_spec='${libname}${release}${shared_ext}$major'
13878 shlibpath_var=LD_LIBRARY_PATH
13879 shlibpath_overrides_runpath=no
13880 hardcode_into_libs=yes
13881 dynamic_linker='GNU ld.so'
13882 ;;
13883
13884freebsd*)
13885 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13886 version_type=freebsd-$objformat
13887 case $version_type in
13888 freebsd-elf*)
13889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13890 need_version=no
13891 need_lib_prefix=no
13892 ;;
13893 freebsd-*)
13894 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13895 need_version=yes
13896 ;;
13897 esac
13898 shlibpath_var=LD_LIBRARY_PATH
13899 case $host_os in
13900 freebsd2*)
13901 shlibpath_overrides_runpath=yes
13902 ;;
13903 freebsd3.01* | freebsdelf3.01*)
13904 shlibpath_overrides_runpath=yes
13905 hardcode_into_libs=yes
13906 ;;
13907 *) # from 3.2 on
13908 shlibpath_overrides_runpath=no
13909 hardcode_into_libs=yes
13910 ;;
13911 esac
13912 ;;
13913
13914gnu*)
13915 version_type=linux
13916 need_lib_prefix=no
13917 need_version=no
13918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13919 soname_spec='${libname}${release}${shared_ext}$major'
13920 shlibpath_var=LD_LIBRARY_PATH
13921 hardcode_into_libs=yes
13922 ;;
13923
13924hpux9* | hpux10* | hpux11*)
13925 # Give a soname corresponding to the major version so that dld.sl refuses to
13926 # link against other versions.
13927 version_type=sunos
13928 need_lib_prefix=no
13929 need_version=no
13930 case "$host_cpu" in
13931 ia64*)
13932 shrext='.so'
13933 hardcode_into_libs=yes
13934 dynamic_linker="$host_os dld.so"
13935 shlibpath_var=LD_LIBRARY_PATH
13936 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13938 soname_spec='${libname}${release}${shared_ext}$major'
13939 if test "X$HPUX_IA64_MODE" = X32; then
13940 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13941 else
13942 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13943 fi
13944 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13945 ;;
13946 hppa*64*)
13947 shrext='.sl'
13948 hardcode_into_libs=yes
13949 dynamic_linker="$host_os dld.sl"
13950 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13951 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13953 soname_spec='${libname}${release}${shared_ext}$major'
13954 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13955 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13956 ;;
13957 *)
13958 shrext='.sl'
13959 dynamic_linker="$host_os dld.sl"
13960 shlibpath_var=SHLIB_PATH
13961 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13963 soname_spec='${libname}${release}${shared_ext}$major'
13964 ;;
13965 esac
13966 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13967 postinstall_cmds='chmod 555 $lib'
13968 ;;
13969
13970irix5* | irix6* | nonstopux*)
13971 case $host_os in
13972 nonstopux*) version_type=nonstopux ;;
13973 *)
13974 if test "$lt_cv_prog_gnu_ld" = yes; then
13975 version_type=linux
13976 else
13977 version_type=irix
13978 fi ;;
13979 esac
13980 need_lib_prefix=no
13981 need_version=no
13982 soname_spec='${libname}${release}${shared_ext}$major'
13983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13984 case $host_os in
13985 irix5* | nonstopux*)
13986 libsuff= shlibsuff=
13987 ;;
13988 *)
13989 case $LD in # libtool.m4 will add one of these switches to LD
13990 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13991 libsuff= shlibsuff= libmagic=32-bit;;
13992 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13993 libsuff=32 shlibsuff=N32 libmagic=N32;;
13994 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13995 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13996 *) libsuff= shlibsuff= libmagic=never-match;;
13997 esac
13998 ;;
13999 esac
14000 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14001 shlibpath_overrides_runpath=no
14002 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14003 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14004 hardcode_into_libs=yes
14005 ;;
14006
14007# No shared lib support for Linux oldld, aout, or coff.
14008linux*oldld* | linux*aout* | linux*coff*)
14009 dynamic_linker=no
14010 ;;
14011
14012# This must be Linux ELF.
14013linux*)
14014 version_type=linux
14015 need_lib_prefix=no
14016 need_version=no
14017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14018 soname_spec='${libname}${release}${shared_ext}$major'
14019 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14020 shlibpath_var=LD_LIBRARY_PATH
14021 shlibpath_overrides_runpath=no
14022 # This implies no fast_install, which is unacceptable.
14023 # Some rework will be needed to allow for fast_install
14024 # before this can be enabled.
14025 hardcode_into_libs=yes
14026
14027 # Append ld.so.conf contents to the search path
14028 if test -f /etc/ld.so.conf; then
14029 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14030 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14031 fi
14032
14033 # We used to test for /lib/ld.so.1 and disable shared libraries on
14034 # powerpc, because MkLinux only supported shared libraries with the
14035 # GNU dynamic linker. Since this was broken with cross compilers,
14036 # most powerpc-linux boxes support dynamic linking these days and
14037 # people can always --disable-shared, the test was removed, and we
14038 # assume the GNU/Linux dynamic linker is in use.
14039 dynamic_linker='GNU/Linux ld.so'
14040 ;;
14041
14042knetbsd*-gnu)
14043 version_type=linux
14044 need_lib_prefix=no
14045 need_version=no
14046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14047 soname_spec='${libname}${release}${shared_ext}$major'
14048 shlibpath_var=LD_LIBRARY_PATH
14049 shlibpath_overrides_runpath=no
14050 hardcode_into_libs=yes
14051 dynamic_linker='GNU ld.so'
14052 ;;
14053
14054netbsd*)
14055 version_type=sunos
14056 need_lib_prefix=no
14057 need_version=no
14058 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14060 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14061 dynamic_linker='NetBSD (a.out) ld.so'
14062 else
14063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14064 soname_spec='${libname}${release}${shared_ext}$major'
14065 dynamic_linker='NetBSD ld.elf_so'
14066 fi
14067 shlibpath_var=LD_LIBRARY_PATH
14068 shlibpath_overrides_runpath=yes
14069 hardcode_into_libs=yes
14070 ;;
14071
14072newsos6)
14073 version_type=linux
14074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14075 shlibpath_var=LD_LIBRARY_PATH
14076 shlibpath_overrides_runpath=yes
14077 ;;
14078
14079nto-qnx*)
14080 version_type=linux
14081 need_lib_prefix=no
14082 need_version=no
14083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14084 soname_spec='${libname}${release}${shared_ext}$major'
14085 shlibpath_var=LD_LIBRARY_PATH
14086 shlibpath_overrides_runpath=yes
14087 ;;
14088
14089openbsd*)
14090 version_type=sunos
14091 need_lib_prefix=no
14092 need_version=yes
14093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14095 shlibpath_var=LD_LIBRARY_PATH
14096 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14097 case $host_os in
14098 openbsd2.[89] | openbsd2.[89].*)
14099 shlibpath_overrides_runpath=no
14100 ;;
14101 *)
14102 shlibpath_overrides_runpath=yes
14103 ;;
14104 esac
14105 else
14106 shlibpath_overrides_runpath=yes
14107 fi
14108 ;;
14109
14110os2*)
14111 libname_spec='$name'
14112 shrext=".dll"
14113 need_lib_prefix=no
14114 library_names_spec='$libname${shared_ext} $libname.a'
14115 dynamic_linker='OS/2 ld.exe'
14116 shlibpath_var=LIBPATH
14117 ;;
14118
14119osf3* | osf4* | osf5*)
14120 version_type=osf
14121 need_lib_prefix=no
14122 need_version=no
14123 soname_spec='${libname}${release}${shared_ext}$major'
14124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14125 shlibpath_var=LD_LIBRARY_PATH
14126 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14127 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14128 ;;
14129
14130sco3.2v5*)
14131 version_type=osf
14132 soname_spec='${libname}${release}${shared_ext}$major'
14133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14134 shlibpath_var=LD_LIBRARY_PATH
14135 ;;
14136
14137solaris*)
14138 version_type=linux
14139 need_lib_prefix=no
14140 need_version=no
14141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14142 soname_spec='${libname}${release}${shared_ext}$major'
14143 shlibpath_var=LD_LIBRARY_PATH
14144 shlibpath_overrides_runpath=yes
14145 hardcode_into_libs=yes
14146 # ldd complains unless libraries are executable
14147 postinstall_cmds='chmod +x $lib'
14148 ;;
14149
14150sunos4*)
14151 version_type=sunos
14152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14153 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14154 shlibpath_var=LD_LIBRARY_PATH
14155 shlibpath_overrides_runpath=yes
14156 if test "$with_gnu_ld" = yes; then
14157 need_lib_prefix=no
14158 fi
14159 need_version=yes
14160 ;;
14161
14162sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14163 version_type=linux
14164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14165 soname_spec='${libname}${release}${shared_ext}$major'
14166 shlibpath_var=LD_LIBRARY_PATH
14167 case $host_vendor in
14168 sni)
14169 shlibpath_overrides_runpath=no
14170 need_lib_prefix=no
14171 export_dynamic_flag_spec='${wl}-Blargedynsym'
14172 runpath_var=LD_RUN_PATH
14173 ;;
14174 siemens)
14175 need_lib_prefix=no
14176 ;;
14177 motorola)
14178 need_lib_prefix=no
14179 need_version=no
14180 shlibpath_overrides_runpath=no
14181 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14182 ;;
14183 esac
14184 ;;
14185
14186sysv4*MP*)
14187 if test -d /usr/nec ;then
14188 version_type=linux
14189 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14190 soname_spec='$libname${shared_ext}.$major'
14191 shlibpath_var=LD_LIBRARY_PATH
14192 fi
14193 ;;
14194
14195uts4*)
14196 version_type=linux
14197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14198 soname_spec='${libname}${release}${shared_ext}$major'
14199 shlibpath_var=LD_LIBRARY_PATH
14200 ;;
14201
14202*)
14203 dynamic_linker=no
14204 ;;
14205esac
14206echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14207echo "${ECHO_T}$dynamic_linker" >&6
14208test "$dynamic_linker" = no && can_build_shared=no
14209
14210echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14211echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14212hardcode_action_F77=
14213if test -n "$hardcode_libdir_flag_spec_F77" || \
14214 test -n "$runpath_var F77" || \
14215 test "X$hardcode_automatic_F77"="Xyes" ; then
14216
14217 # We can hardcode non-existant directories.
14218 if test "$hardcode_direct_F77" != no &&
14219 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14220 # have to relink, otherwise we might link with an installed library
14221 # when we should be linking with a yet-to-be-installed one
14222 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14223 test "$hardcode_minus_L_F77" != no; then
14224 # Linking always hardcodes the temporary library directory.
14225 hardcode_action_F77=relink
14226 else
14227 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14228 hardcode_action_F77=immediate
14229 fi
14230else
14231 # We cannot hardcode anything, or else we can only hardcode existing
14232 # directories.
14233 hardcode_action_F77=unsupported
14234fi
14235echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14236echo "${ECHO_T}$hardcode_action_F77" >&6
14237
14238if test "$hardcode_action_F77" = relink; then
14239 # Fast installation is not supported
14240 enable_fast_install=no
14241elif test "$shlibpath_overrides_runpath" = yes ||
14242 test "$enable_shared" = no; then
14243 # Fast installation is not necessary
14244 enable_fast_install=needless
14245fi
14246
14247striplib=
14248old_striplib=
14249echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14250echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14251if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14252 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14253 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14254 echo "$as_me:$LINENO: result: yes" >&5
14255echo "${ECHO_T}yes" >&6
14256else
14257# FIXME - insert some real tests, host_os isn't really good enough
14258 case $host_os in
14259 darwin*)
14260 if test -n "$STRIP" ; then
14261 striplib="$STRIP -x"
14262 echo "$as_me:$LINENO: result: yes" >&5
14263echo "${ECHO_T}yes" >&6
14264 else
14265 echo "$as_me:$LINENO: result: no" >&5
14266echo "${ECHO_T}no" >&6
14267fi
14268 ;;
14269 *)
14270 echo "$as_me:$LINENO: result: no" >&5
14271echo "${ECHO_T}no" >&6
14272 ;;
14273 esac
14274fi
14275
14276
14277
14278# The else clause should only fire when bootstrapping the
14279# libtool distribution, otherwise you forgot to ship ltmain.sh
14280# with your package, and you will get complaints that there are
14281# no rules to generate ltmain.sh.
14282if test -f "$ltmain"; then
14283 # See if we are running on zsh, and set the options which allow our commands through
14284 # without removal of \ escapes.
14285 if test -n "${ZSH_VERSION+set}" ; then
14286 setopt NO_GLOB_SUBST
14287 fi
14288 # Now quote all the things that may contain metacharacters while being
14289 # careful not to overquote the AC_SUBSTed values. We take copies of the
14290 # variables and quote the copies for generation of the libtool script.
14291 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14292 SED SHELL STRIP \
14293 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14294 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14295 deplibs_check_method reload_flag reload_cmds need_locks \
14296 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14297 lt_cv_sys_global_symbol_to_c_name_address \
14298 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14299 old_postinstall_cmds old_postuninstall_cmds \
14300 compiler_F77 \
14301 CC_F77 \
14302 LD_F77 \
14303 lt_prog_compiler_wl_F77 \
14304 lt_prog_compiler_pic_F77 \
14305 lt_prog_compiler_static_F77 \
14306 lt_prog_compiler_no_builtin_flag_F77 \
14307 export_dynamic_flag_spec_F77 \
14308 thread_safe_flag_spec_F77 \
14309 whole_archive_flag_spec_F77 \
14310 enable_shared_with_static_runtimes_F77 \
14311 old_archive_cmds_F77 \
14312 old_archive_from_new_cmds_F77 \
14313 predep_objects_F77 \
14314 postdep_objects_F77 \
14315 predeps_F77 \
14316 postdeps_F77 \
14317 compiler_lib_search_path_F77 \
14318 archive_cmds_F77 \
14319 archive_expsym_cmds_F77 \
14320 postinstall_cmds_F77 \
14321 postuninstall_cmds_F77 \
14322 old_archive_from_expsyms_cmds_F77 \
14323 allow_undefined_flag_F77 \
14324 no_undefined_flag_F77 \
14325 export_symbols_cmds_F77 \
14326 hardcode_libdir_flag_spec_F77 \
14327 hardcode_libdir_flag_spec_ld_F77 \
14328 hardcode_libdir_separator_F77 \
14329 hardcode_automatic_F77 \
14330 module_cmds_F77 \
14331 module_expsym_cmds_F77 \
14332 lt_cv_prog_compiler_c_o_F77 \
14333 exclude_expsyms_F77 \
14334 include_expsyms_F77; do
14335
14336 case $var in
14337 old_archive_cmds_F77 | \
14338 old_archive_from_new_cmds_F77 | \
14339 archive_cmds_F77 | \
14340 archive_expsym_cmds_F77 | \
14341 module_cmds_F77 | \
14342 module_expsym_cmds_F77 | \
14343 old_archive_from_expsyms_cmds_F77 | \
14344 export_symbols_cmds_F77 | \
14345 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14346 postinstall_cmds | postuninstall_cmds | \
14347 old_postinstall_cmds | old_postuninstall_cmds | \
14348 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14349 # Double-quote double-evaled strings.
14350 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14351 ;;
14352 *)
14353 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14354 ;;
14355 esac
14356 done
14357
14358 case $lt_echo in
14359 *'\$0 --fallback-echo"')
14360 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14361 ;;
14362 esac
14363
14364cfgfile="$ofile"
14365
14366 cat <<__EOF__ >> "$cfgfile"
14367# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14368
14369# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14370
14371# Shell to use when invoking shell scripts.
14372SHELL=$lt_SHELL
14373
14374# Whether or not to build shared libraries.
14375build_libtool_libs=$enable_shared
14376
14377# Whether or not to build static libraries.
14378build_old_libs=$enable_static
14379
14380# Whether or not to add -lc for building shared libraries.
14381build_libtool_need_lc=$archive_cmds_need_lc_F77
14382
14383# Whether or not to disallow shared libs when runtime libs are static
14384allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14385
14386# Whether or not to optimize for fast installation.
14387fast_install=$enable_fast_install
14388
14389# The host system.
14390host_alias=$host_alias
14391host=$host
14392
14393# An echo program that does not interpret backslashes.
14394echo=$lt_echo
14395
14396# The archiver.
14397AR=$lt_AR
14398AR_FLAGS=$lt_AR_FLAGS
14399
14400# A C compiler.
14401LTCC=$lt_LTCC
14402
14403# A language-specific compiler.
14404CC=$lt_compiler_F77
14405
14406# Is the compiler the GNU C compiler?
14407with_gcc=$GCC_F77
14408
14409# An ERE matcher.
14410EGREP=$lt_EGREP
14411
14412# The linker used to build libraries.
14413LD=$lt_LD_F77
14414
14415# Whether we need hard or soft links.
14416LN_S=$lt_LN_S
14417
14418# A BSD-compatible nm program.
14419NM=$lt_NM
14420
14421# A symbol stripping program
14422STRIP=$lt_STRIP
14423
14424# Used to examine libraries when file_magic_cmd begins "file"
14425MAGIC_CMD=$MAGIC_CMD
14426
14427# Used on cygwin: DLL creation program.
14428DLLTOOL="$DLLTOOL"
14429
14430# Used on cygwin: object dumper.
14431OBJDUMP="$OBJDUMP"
14432
14433# Used on cygwin: assembler.
14434AS="$AS"
14435
14436# The name of the directory that contains temporary libtool files.
14437objdir=$objdir
14438
14439# How to create reloadable object files.
14440reload_flag=$lt_reload_flag
14441reload_cmds=$lt_reload_cmds
14442
14443# How to pass a linker flag through the compiler.
14444wl=$lt_lt_prog_compiler_wl_F77
14445
14446# Object file suffix (normally "o").
14447objext="$ac_objext"
14448
14449# Old archive suffix (normally "a").
14450libext="$libext"
14451
14452# Shared library suffix (normally ".so").
14453shrext='$shrext'
14454
14455# Executable file suffix (normally "").
14456exeext="$exeext"
14457
14458# Additional compiler flags for building library objects.
14459pic_flag=$lt_lt_prog_compiler_pic_F77
14460pic_mode=$pic_mode
14461
14462# What is the maximum length of a command?
14463max_cmd_len=$lt_cv_sys_max_cmd_len
14464
14465# Does compiler simultaneously support -c and -o options?
14466compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14467
14468# Must we lock files when doing compilation ?
14469need_locks=$lt_need_locks
14470
14471# Do we need the lib prefix for modules?
14472need_lib_prefix=$need_lib_prefix
14473
14474# Do we need a version for libraries?
14475need_version=$need_version
14476
14477# Whether dlopen is supported.
14478dlopen_support=$enable_dlopen
14479
14480# Whether dlopen of programs is supported.
14481dlopen_self=$enable_dlopen_self
14482
14483# Whether dlopen of statically linked programs is supported.
14484dlopen_self_static=$enable_dlopen_self_static
14485
14486# Compiler flag to prevent dynamic linking.
14487link_static_flag=$lt_lt_prog_compiler_static_F77
14488
14489# Compiler flag to turn off builtin functions.
14490no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14491
14492# Compiler flag to allow reflexive dlopens.
14493export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14494
14495# Compiler flag to generate shared objects directly from archives.
14496whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14497
14498# Compiler flag to generate thread-safe objects.
14499thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14500
14501# Library versioning type.
14502version_type=$version_type
14503
14504# Format of library name prefix.
14505libname_spec=$lt_libname_spec
14506
14507# List of archive names. First name is the real one, the rest are links.
14508# The last name is the one that the linker finds with -lNAME.
14509library_names_spec=$lt_library_names_spec
14510
14511# The coded name of the library, if different from the real name.
14512soname_spec=$lt_soname_spec
14513
14514# Commands used to build and install an old-style archive.
14515RANLIB=$lt_RANLIB
14516old_archive_cmds=$lt_old_archive_cmds_F77
14517old_postinstall_cmds=$lt_old_postinstall_cmds
14518old_postuninstall_cmds=$lt_old_postuninstall_cmds
14519
14520# Create an old-style archive from a shared archive.
14521old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14522
14523# Create a temporary old-style archive to link instead of a shared archive.
14524old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14525
14526# Commands used to build and install a shared archive.
14527archive_cmds=$lt_archive_cmds_F77
14528archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14529postinstall_cmds=$lt_postinstall_cmds
14530postuninstall_cmds=$lt_postuninstall_cmds
14531
14532# Commands used to build a loadable module (assumed same as above if empty)
14533module_cmds=$lt_module_cmds_F77
14534module_expsym_cmds=$lt_module_expsym_cmds_F77
14535
14536# Commands to strip libraries.
14537old_striplib=$lt_old_striplib
14538striplib=$lt_striplib
14539
14540# Dependencies to place before the objects being linked to create a
14541# shared library.
14542predep_objects=$lt_predep_objects_F77
14543
14544# Dependencies to place after the objects being linked to create a
14545# shared library.
14546postdep_objects=$lt_postdep_objects_F77
14547
14548# Dependencies to place before the objects being linked to create a
14549# shared library.
14550predeps=$lt_predeps_F77
14551
14552# Dependencies to place after the objects being linked to create a
14553# shared library.
14554postdeps=$lt_postdeps_F77
14555
14556# The library search path used internally by the compiler when linking
14557# a shared library.
14558compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14559
14560# Method to check whether dependent libraries are shared objects.
14561deplibs_check_method=$lt_deplibs_check_method
14562
14563# Command to use when deplibs_check_method == file_magic.
14564file_magic_cmd=$lt_file_magic_cmd
14565
14566# Flag that allows shared libraries with undefined symbols to be built.
14567allow_undefined_flag=$lt_allow_undefined_flag_F77
14568
14569# Flag that forces no undefined symbols.
14570no_undefined_flag=$lt_no_undefined_flag_F77
14571
14572# Commands used to finish a libtool library installation in a directory.
14573finish_cmds=$lt_finish_cmds
14574
14575# Same as above, but a single script fragment to be evaled but not shown.
14576finish_eval=$lt_finish_eval
14577
14578# Take the output of nm and produce a listing of raw symbols and C names.
14579global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14580
14581# Transform the output of nm in a proper C declaration
14582global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14583
14584# Transform the output of nm in a C name address pair
14585global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14586
14587# This is the shared library runtime path variable.
14588runpath_var=$runpath_var
14589
14590# This is the shared library path variable.
14591shlibpath_var=$shlibpath_var
14592
14593# Is shlibpath searched before the hard-coded library search path?
14594shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14595
14596# How to hardcode a shared library path into an executable.
14597hardcode_action=$hardcode_action_F77
14598
14599# Whether we should hardcode library paths into libraries.
14600hardcode_into_libs=$hardcode_into_libs
14601
14602# Flag to hardcode \$libdir into a binary during linking.
14603# This must work even if \$libdir does not exist.
14604hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14605
14606# If ld is used when linking, flag to hardcode \$libdir into
14607# a binary during linking. This must work even if \$libdir does
14608# not exist.
14609hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14610
14611# Whether we need a single -rpath flag with a separated argument.
14612hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14613
14614# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14615# resulting binary.
14616hardcode_direct=$hardcode_direct_F77
14617
14618# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14619# resulting binary.
14620hardcode_minus_L=$hardcode_minus_L_F77
14621
14622# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14623# the resulting binary.
14624hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14625
14626# Set to yes if building a shared library automatically hardcodes DIR into the library
14627# and all subsequent libraries and executables linked against it.
14628hardcode_automatic=$hardcode_automatic_F77
14629
14630# Variables whose values should be saved in libtool wrapper scripts and
14631# restored at relink time.
14632variables_saved_for_relink="$variables_saved_for_relink"
14633
14634# Whether libtool must link a program against all its dependency libraries.
14635link_all_deplibs=$link_all_deplibs_F77
14636
14637# Compile-time system search path for libraries
14638sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14639
14640# Run-time system search path for libraries
14641sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14642
14643# Fix the shell variable \$srcfile for the compiler.
14644fix_srcfile_path="$fix_srcfile_path_F77"
14645
14646# Set to yes if exported symbols are required.
14647always_export_symbols=$always_export_symbols_F77
14648
14649# The commands to list exported symbols.
14650export_symbols_cmds=$lt_export_symbols_cmds_F77
14651
14652# The commands to extract the exported symbol list from a shared archive.
14653extract_expsyms_cmds=$lt_extract_expsyms_cmds
14654
14655# Symbols that should not be listed in the preloaded symbols.
14656exclude_expsyms=$lt_exclude_expsyms_F77
14657
14658# Symbols that must always be exported.
14659include_expsyms=$lt_include_expsyms_F77
14660
14661# ### END LIBTOOL TAG CONFIG: $tagname
14662
14663__EOF__
14664
14665
14666else
14667 # If there is no Makefile yet, we rely on a make rule to execute
14668 # `config.status --recheck' to rerun these tests and create the
14669 # libtool script then.
14670 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14671 if test -f "$ltmain_in"; then
14672 test -f Makefile && make "$ltmain"
14673 fi
14674fi
14675
14676
14677ac_ext=c
14678ac_cpp='$CPP $CPPFLAGS'
14679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14681ac_compiler_gnu=$ac_cv_c_compiler_gnu
14682
14683CC="$lt_save_CC"
14684
14685 else
14686 tagname=""
14687 fi
14688 ;;
14689
14690 GCJ)
14691 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14692
14693
14694
14695# Source file extension for Java test sources.
14696ac_ext=java
14697
14698# Object file extension for compiled Java test sources.
14699objext=o
14700objext_GCJ=$objext
14701
14702# Code to be used in simple compile tests
14703lt_simple_compile_test_code="class foo {}\n"
14704
14705# Code to be used in simple link tests
14706lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14707
14708# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14709
14710# If no C compiler was specified, use CC.
14711LTCC=${LTCC-"$CC"}
14712
14713# Allow CC to be a program name with arguments.
14714compiler=$CC
14715
14716
14717# Allow CC to be a program name with arguments.
14718lt_save_CC="$CC"
14719CC=${GCJ-"gcj"}
14720compiler=$CC
14721compiler_GCJ=$CC
14722
14723# GCJ did not exist at the time GCC didn't implicitly link libc in.
14724archive_cmds_need_lc_GCJ=no
14725
14726
14727lt_prog_compiler_no_builtin_flag_GCJ=
14728
14729if test "$GCC" = yes; then
14730 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14731
14732
14733echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14734echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14735if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14736 echo $ECHO_N "(cached) $ECHO_C" >&6
14737else
14738 lt_cv_prog_compiler_rtti_exceptions=no
14739 ac_outfile=conftest.$ac_objext
14740 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14741 lt_compiler_flag="-fno-rtti -fno-exceptions"
14742 # Insert the option either (1) after the last *FLAGS variable, or
14743 # (2) before a word containing "conftest.", or (3) at the end.
14744 # Note that $ac_compile itself does not contain backslashes and begins
14745 # with a dollar sign (not a hyphen), so the echo should work correctly.
14746 # The option is referenced via a variable to avoid confusing sed.
14747 lt_compile=`echo "$ac_compile" | $SED \
14748 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14749 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14750 -e 's:$: $lt_compiler_flag:'`
drh8e2e2a12006-02-01 01:55:17 +000014751 (eval echo "\"\$as_me:14751: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000014752 (eval "$lt_compile" 2>conftest.err)
14753 ac_status=$?
14754 cat conftest.err >&5
drh8e2e2a12006-02-01 01:55:17 +000014755 echo "$as_me:14755: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000014756 if (exit $ac_status) && test -s "$ac_outfile"; then
14757 # The compiler can only warn and ignore the option if not recognized
14758 # So say no if there are warnings
14759 if test ! -s conftest.err; then
14760 lt_cv_prog_compiler_rtti_exceptions=yes
14761 fi
14762 fi
14763 $rm conftest*
14764
14765fi
14766echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14767echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14768
14769if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14770 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14771else
14772 :
14773fi
14774
14775fi
14776
14777lt_prog_compiler_wl_GCJ=
14778lt_prog_compiler_pic_GCJ=
14779lt_prog_compiler_static_GCJ=
14780
14781echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14782echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14783
14784 if test "$GCC" = yes; then
14785 lt_prog_compiler_wl_GCJ='-Wl,'
14786 lt_prog_compiler_static_GCJ='-static'
14787
14788 case $host_os in
14789 aix*)
14790 # All AIX code is PIC.
14791 if test "$host_cpu" = ia64; then
14792 # AIX 5 now supports IA64 processor
14793 lt_prog_compiler_static_GCJ='-Bstatic'
14794 fi
14795 ;;
14796
14797 amigaos*)
14798 # FIXME: we need at least 68020 code to build shared libraries, but
14799 # adding the `-m68020' flag to GCC prevents building anything better,
14800 # like `-m68040'.
14801 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14802 ;;
14803
14804 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14805 # PIC is the default for these OSes.
14806 ;;
14807
14808 mingw* | pw32* | os2*)
14809 # This hack is so that the source file can tell whether it is being
14810 # built for inclusion in a dll (and should export symbols for example).
14811 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14812 ;;
14813
14814 darwin* | rhapsody*)
14815 # PIC is the default on this platform
14816 # Common symbols not allowed in MH_DYLIB files
14817 lt_prog_compiler_pic_GCJ='-fno-common'
14818 ;;
14819
14820 msdosdjgpp*)
14821 # Just because we use GCC doesn't mean we suddenly get shared libraries
14822 # on systems that don't support them.
14823 lt_prog_compiler_can_build_shared_GCJ=no
14824 enable_shared=no
14825 ;;
14826
14827 sysv4*MP*)
14828 if test -d /usr/nec; then
14829 lt_prog_compiler_pic_GCJ=-Kconform_pic
14830 fi
14831 ;;
14832
14833 hpux*)
14834 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14835 # not for PA HP-UX.
14836 case "$host_cpu" in
14837 hppa*64*|ia64*)
14838 # +Z the default
14839 ;;
14840 *)
14841 lt_prog_compiler_pic_GCJ='-fPIC'
14842 ;;
14843 esac
14844 ;;
14845
14846 *)
14847 lt_prog_compiler_pic_GCJ='-fPIC'
14848 ;;
14849 esac
14850 else
14851 # PORTME Check for flag to pass linker flags through the system compiler.
14852 case $host_os in
14853 aix*)
14854 lt_prog_compiler_wl_GCJ='-Wl,'
14855 if test "$host_cpu" = ia64; then
14856 # AIX 5 now supports IA64 processor
14857 lt_prog_compiler_static_GCJ='-Bstatic'
14858 else
14859 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14860 fi
14861 ;;
14862
14863 mingw* | pw32* | os2*)
14864 # This hack is so that the source file can tell whether it is being
14865 # built for inclusion in a dll (and should export symbols for example).
14866 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14867 ;;
14868
14869 hpux9* | hpux10* | hpux11*)
14870 lt_prog_compiler_wl_GCJ='-Wl,'
14871 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14872 # not for PA HP-UX.
14873 case "$host_cpu" in
14874 hppa*64*|ia64*)
14875 # +Z the default
14876 ;;
14877 *)
14878 lt_prog_compiler_pic_GCJ='+Z'
14879 ;;
14880 esac
14881 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14882 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14883 ;;
14884
14885 irix5* | irix6* | nonstopux*)
14886 lt_prog_compiler_wl_GCJ='-Wl,'
14887 # PIC (with -KPIC) is the default.
14888 lt_prog_compiler_static_GCJ='-non_shared'
14889 ;;
14890
14891 newsos6)
14892 lt_prog_compiler_pic_GCJ='-KPIC'
14893 lt_prog_compiler_static_GCJ='-Bstatic'
14894 ;;
14895
14896 linux*)
14897 case $CC in
14898 icc* | ecc*)
14899 lt_prog_compiler_wl_GCJ='-Wl,'
14900 lt_prog_compiler_pic_GCJ='-KPIC'
14901 lt_prog_compiler_static_GCJ='-static'
14902 ;;
14903 ccc*)
14904 lt_prog_compiler_wl_GCJ='-Wl,'
14905 # All Alpha code is PIC.
14906 lt_prog_compiler_static_GCJ='-non_shared'
14907 ;;
14908 esac
14909 ;;
14910
14911 osf3* | osf4* | osf5*)
14912 lt_prog_compiler_wl_GCJ='-Wl,'
14913 # All OSF/1 code is PIC.
14914 lt_prog_compiler_static_GCJ='-non_shared'
14915 ;;
14916
14917 sco3.2v5*)
14918 lt_prog_compiler_pic_GCJ='-Kpic'
14919 lt_prog_compiler_static_GCJ='-dn'
14920 ;;
14921
14922 solaris*)
14923 lt_prog_compiler_wl_GCJ='-Wl,'
14924 lt_prog_compiler_pic_GCJ='-KPIC'
14925 lt_prog_compiler_static_GCJ='-Bstatic'
14926 ;;
14927
14928 sunos4*)
14929 lt_prog_compiler_wl_GCJ='-Qoption ld '
14930 lt_prog_compiler_pic_GCJ='-PIC'
14931 lt_prog_compiler_static_GCJ='-Bstatic'
14932 ;;
14933
14934 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14935 lt_prog_compiler_wl_GCJ='-Wl,'
14936 lt_prog_compiler_pic_GCJ='-KPIC'
14937 lt_prog_compiler_static_GCJ='-Bstatic'
14938 ;;
14939
14940 sysv4*MP*)
14941 if test -d /usr/nec ;then
14942 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14943 lt_prog_compiler_static_GCJ='-Bstatic'
14944 fi
14945 ;;
14946
14947 uts4*)
14948 lt_prog_compiler_pic_GCJ='-pic'
14949 lt_prog_compiler_static_GCJ='-Bstatic'
14950 ;;
14951
14952 *)
14953 lt_prog_compiler_can_build_shared_GCJ=no
14954 ;;
14955 esac
14956 fi
14957
14958echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14959echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14960
14961#
14962# Check to make sure the PIC flag actually works.
14963#
14964if test -n "$lt_prog_compiler_pic_GCJ"; then
14965
14966echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14967echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14968if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14969 echo $ECHO_N "(cached) $ECHO_C" >&6
14970else
14971 lt_prog_compiler_pic_works_GCJ=no
14972 ac_outfile=conftest.$ac_objext
14973 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14974 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14975 # Insert the option either (1) after the last *FLAGS variable, or
14976 # (2) before a word containing "conftest.", or (3) at the end.
14977 # Note that $ac_compile itself does not contain backslashes and begins
14978 # with a dollar sign (not a hyphen), so the echo should work correctly.
14979 # The option is referenced via a variable to avoid confusing sed.
14980 lt_compile=`echo "$ac_compile" | $SED \
14981 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14982 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14983 -e 's:$: $lt_compiler_flag:'`
drh8e2e2a12006-02-01 01:55:17 +000014984 (eval echo "\"\$as_me:14984: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000014985 (eval "$lt_compile" 2>conftest.err)
14986 ac_status=$?
14987 cat conftest.err >&5
drh8e2e2a12006-02-01 01:55:17 +000014988 echo "$as_me:14988: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000014989 if (exit $ac_status) && test -s "$ac_outfile"; then
14990 # The compiler can only warn and ignore the option if not recognized
14991 # So say no if there are warnings
14992 if test ! -s conftest.err; then
14993 lt_prog_compiler_pic_works_GCJ=yes
14994 fi
14995 fi
14996 $rm conftest*
14997
14998fi
14999echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15000echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15001
15002if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15003 case $lt_prog_compiler_pic_GCJ in
15004 "" | " "*) ;;
15005 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15006 esac
15007else
15008 lt_prog_compiler_pic_GCJ=
15009 lt_prog_compiler_can_build_shared_GCJ=no
15010fi
15011
15012fi
15013case "$host_os" in
15014 # For platforms which do not support PIC, -DPIC is meaningless:
15015 *djgpp*)
15016 lt_prog_compiler_pic_GCJ=
15017 ;;
15018 *)
15019 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15020 ;;
15021esac
15022
15023echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15024echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15025if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15026 echo $ECHO_N "(cached) $ECHO_C" >&6
15027else
15028 lt_cv_prog_compiler_c_o_GCJ=no
15029 $rm -r conftest 2>/dev/null
15030 mkdir conftest
15031 cd conftest
15032 mkdir out
15033 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15034
15035 lt_compiler_flag="-o out/conftest2.$ac_objext"
15036 # Insert the option either (1) after the last *FLAGS variable, or
15037 # (2) before a word containing "conftest.", or (3) at the end.
15038 # Note that $ac_compile itself does not contain backslashes and begins
15039 # with a dollar sign (not a hyphen), so the echo should work correctly.
15040 lt_compile=`echo "$ac_compile" | $SED \
15041 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15042 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15043 -e 's:$: $lt_compiler_flag:'`
drh8e2e2a12006-02-01 01:55:17 +000015044 (eval echo "\"\$as_me:15044: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000015045 (eval "$lt_compile" 2>out/conftest.err)
15046 ac_status=$?
15047 cat out/conftest.err >&5
drh8e2e2a12006-02-01 01:55:17 +000015048 echo "$as_me:15048: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000015049 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15050 then
15051 # The compiler can only warn and ignore the option if not recognized
15052 # So say no if there are warnings
15053 if test ! -s out/conftest.err; then
15054 lt_cv_prog_compiler_c_o_GCJ=yes
15055 fi
15056 fi
15057 chmod u+w .
15058 $rm conftest*
15059 # SGI C++ compiler will create directory out/ii_files/ for
15060 # template instantiation
15061 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15062 $rm out/* && rmdir out
15063 cd ..
15064 rmdir conftest
15065 $rm conftest*
15066
15067fi
15068echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15069echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15070
15071
15072hard_links="nottested"
15073if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15074 # do not overwrite the value of need_locks provided by the user
15075 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15076echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15077 hard_links=yes
15078 $rm conftest*
15079 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15080 touch conftest.a
15081 ln conftest.a conftest.b 2>&5 || hard_links=no
15082 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15083 echo "$as_me:$LINENO: result: $hard_links" >&5
15084echo "${ECHO_T}$hard_links" >&6
15085 if test "$hard_links" = no; then
15086 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15087echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15088 need_locks=warn
15089 fi
15090else
15091 need_locks=no
15092fi
15093
15094echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15095echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15096
15097 runpath_var=
15098 allow_undefined_flag_GCJ=
15099 enable_shared_with_static_runtimes_GCJ=no
15100 archive_cmds_GCJ=
15101 archive_expsym_cmds_GCJ=
15102 old_archive_From_new_cmds_GCJ=
15103 old_archive_from_expsyms_cmds_GCJ=
15104 export_dynamic_flag_spec_GCJ=
15105 whole_archive_flag_spec_GCJ=
15106 thread_safe_flag_spec_GCJ=
15107 hardcode_libdir_flag_spec_GCJ=
15108 hardcode_libdir_flag_spec_ld_GCJ=
15109 hardcode_libdir_separator_GCJ=
15110 hardcode_direct_GCJ=no
15111 hardcode_minus_L_GCJ=no
15112 hardcode_shlibpath_var_GCJ=unsupported
15113 link_all_deplibs_GCJ=unknown
15114 hardcode_automatic_GCJ=no
15115 module_cmds_GCJ=
15116 module_expsym_cmds_GCJ=
15117 always_export_symbols_GCJ=no
15118 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15119 # include_expsyms should be a list of space-separated symbols to be *always*
15120 # included in the symbol list
15121 include_expsyms_GCJ=
15122 # exclude_expsyms can be an extended regexp of symbols to exclude
15123 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15124 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15125 # as well as any symbol that contains `d'.
15126 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15127 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15128 # platforms (ab)use it in PIC code, but their linkers get confused if
15129 # the symbol is explicitly referenced. Since portable code cannot
15130 # rely on this symbol name, it's probably fine to never include it in
15131 # preloaded symbol tables.
15132 extract_expsyms_cmds=
15133
15134 case $host_os in
15135 cygwin* | mingw* | pw32*)
15136 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15137 # When not using gcc, we currently assume that we are using
15138 # Microsoft Visual C++.
15139 if test "$GCC" != yes; then
15140 with_gnu_ld=no
15141 fi
15142 ;;
15143 openbsd*)
15144 with_gnu_ld=no
15145 ;;
15146 esac
15147
15148 ld_shlibs_GCJ=yes
15149 if test "$with_gnu_ld" = yes; then
15150 # If archive_cmds runs LD, not CC, wlarc should be empty
15151 wlarc='${wl}'
15152
15153 # See if GNU ld supports shared libraries.
15154 case $host_os in
15155 aix3* | aix4* | aix5*)
15156 # On AIX/PPC, the GNU linker is very broken
15157 if test "$host_cpu" != ia64; then
15158 ld_shlibs_GCJ=no
15159 cat <<EOF 1>&2
15160
15161*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15162*** to be unable to reliably create shared libraries on AIX.
15163*** Therefore, libtool is disabling shared libraries support. If you
15164*** really care for shared libraries, you may want to modify your PATH
15165*** so that a non-GNU linker is found, and then restart.
15166
15167EOF
15168 fi
15169 ;;
15170
15171 amigaos*)
15172 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)'
15173 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15174 hardcode_minus_L_GCJ=yes
15175
15176 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15177 # that the semantics of dynamic libraries on AmigaOS, at least up
15178 # to version 4, is to share data among multiple programs linked
15179 # with the same dynamic library. Since this doesn't match the
15180 # behavior of shared libraries on other platforms, we can't use
15181 # them.
15182 ld_shlibs_GCJ=no
15183 ;;
15184
15185 beos*)
15186 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15187 allow_undefined_flag_GCJ=unsupported
15188 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15189 # support --undefined. This deserves some investigation. FIXME
15190 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15191 else
15192 ld_shlibs_GCJ=no
15193 fi
15194 ;;
15195
15196 cygwin* | mingw* | pw32*)
15197 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15198 # as there is no search path for DLLs.
15199 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15200 allow_undefined_flag_GCJ=unsupported
15201 always_export_symbols_GCJ=no
15202 enable_shared_with_static_runtimes_GCJ=yes
15203 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15204
15205 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15206 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15207 # If the export-symbols file already is a .def file (1st line
15208 # is EXPORTS), use it as is; otherwise, prepend...
15209 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15210 cp $export_symbols $output_objdir/$soname.def;
15211 else
15212 echo EXPORTS > $output_objdir/$soname.def;
15213 cat $export_symbols >> $output_objdir/$soname.def;
15214 fi~
15215 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15216 else
15217 ld_shlibs=no
15218 fi
15219 ;;
15220
15221 netbsd* | knetbsd*-gnu)
15222 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15223 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15224 wlarc=
15225 else
15226 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15227 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15228 fi
15229 ;;
15230
15231 solaris* | sysv5*)
15232 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15233 ld_shlibs_GCJ=no
15234 cat <<EOF 1>&2
15235
15236*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15237*** create shared libraries on Solaris systems. Therefore, libtool
15238*** is disabling shared libraries support. We urge you to upgrade GNU
15239*** binutils to release 2.9.1 or newer. Another option is to modify
15240*** your PATH or compiler configuration so that the native linker is
15241*** used, and then restart.
15242
15243EOF
15244 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15245 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15246 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15247 else
15248 ld_shlibs_GCJ=no
15249 fi
15250 ;;
15251
15252 sunos4*)
15253 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15254 wlarc=
15255 hardcode_direct_GCJ=yes
15256 hardcode_shlibpath_var_GCJ=no
15257 ;;
15258
15259 linux*)
15260 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15261 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15262 archive_cmds_GCJ="$tmp_archive_cmds"
15263 supports_anon_versioning=no
15264 case `$LD -v 2>/dev/null` in
15265 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15266 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15267 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15268 *\ 2.11.*) ;; # other 2.11 versions
15269 *) supports_anon_versioning=yes ;;
15270 esac
15271 if test $supports_anon_versioning = yes; then
15272 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15273cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15274$echo "local: *; };" >> $output_objdir/$libname.ver~
15275 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15276 else
15277 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15278 fi
15279 else
15280 ld_shlibs_GCJ=no
15281 fi
15282 ;;
15283
15284 *)
15285 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15286 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15287 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15288 else
15289 ld_shlibs_GCJ=no
15290 fi
15291 ;;
15292 esac
15293
15294 if test "$ld_shlibs_GCJ" = yes; then
15295 runpath_var=LD_RUN_PATH
15296 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15297 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15298 # ancient GNU ld didn't support --whole-archive et. al.
15299 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15300 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15301 else
15302 whole_archive_flag_spec_GCJ=
15303 fi
15304 fi
15305 else
15306 # PORTME fill in a description of your system's linker (not GNU ld)
15307 case $host_os in
15308 aix3*)
15309 allow_undefined_flag_GCJ=unsupported
15310 always_export_symbols_GCJ=yes
15311 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'
15312 # Note: this linker hardcodes the directories in LIBPATH if there
15313 # are no directories specified by -L.
15314 hardcode_minus_L_GCJ=yes
15315 if test "$GCC" = yes && test -z "$link_static_flag"; then
15316 # Neither direct hardcoding nor static linking is supported with a
15317 # broken collect2.
15318 hardcode_direct_GCJ=unsupported
15319 fi
15320 ;;
15321
15322 aix4* | aix5*)
15323 if test "$host_cpu" = ia64; then
15324 # On IA64, the linker does run time linking by default, so we don't
15325 # have to do anything special.
15326 aix_use_runtimelinking=no
15327 exp_sym_flag='-Bexport'
15328 no_entry_flag=""
15329 else
15330 # If we're using GNU nm, then we don't want the "-C" option.
15331 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15332 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15333 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'
15334 else
15335 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'
15336 fi
15337 aix_use_runtimelinking=no
15338
15339 # Test if we are trying to use run time linking or normal
15340 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15341 # need to do runtime linking.
15342 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15343 for ld_flag in $LDFLAGS; do
15344 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15345 aix_use_runtimelinking=yes
15346 break
15347 fi
15348 done
15349 esac
15350
15351 exp_sym_flag='-bexport'
15352 no_entry_flag='-bnoentry'
15353 fi
15354
15355 # When large executables or shared objects are built, AIX ld can
15356 # have problems creating the table of contents. If linking a library
15357 # or program results in "error TOC overflow" add -mminimal-toc to
15358 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15359 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15360
15361 archive_cmds_GCJ=''
15362 hardcode_direct_GCJ=yes
15363 hardcode_libdir_separator_GCJ=':'
15364 link_all_deplibs_GCJ=yes
15365
15366 if test "$GCC" = yes; then
15367 case $host_os in aix4.012|aix4.012.*)
15368 # We only want to do this on AIX 4.2 and lower, the check
15369 # below for broken collect2 doesn't work under 4.3+
15370 collect2name=`${CC} -print-prog-name=collect2`
15371 if test -f "$collect2name" && \
15372 strings "$collect2name" | grep resolve_lib_name >/dev/null
15373 then
15374 # We have reworked collect2
15375 hardcode_direct_GCJ=yes
15376 else
15377 # We have old collect2
15378 hardcode_direct_GCJ=unsupported
15379 # It fails to find uninstalled libraries when the uninstalled
15380 # path is not listed in the libpath. Setting hardcode_minus_L
15381 # to unsupported forces relinking
15382 hardcode_minus_L_GCJ=yes
15383 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15384 hardcode_libdir_separator_GCJ=
15385 fi
15386 esac
15387 shared_flag='-shared'
15388 else
15389 # not using gcc
15390 if test "$host_cpu" = ia64; then
15391 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15392 # chokes on -Wl,-G. The following line is correct:
15393 shared_flag='-G'
15394 else
15395 if test "$aix_use_runtimelinking" = yes; then
15396 shared_flag='${wl}-G'
15397 else
15398 shared_flag='${wl}-bM:SRE'
15399 fi
15400 fi
15401 fi
15402
15403 # It seems that -bexpall does not export symbols beginning with
15404 # underscore (_), so it is better to generate a list of symbols to export.
15405 always_export_symbols_GCJ=yes
15406 if test "$aix_use_runtimelinking" = yes; then
15407 # Warning - without using the other runtime loading flags (-brtl),
15408 # -berok will link without error, but may produce a broken library.
15409 allow_undefined_flag_GCJ='-berok'
15410 # Determine the default libpath from the value encoded in an empty executable.
15411 cat >conftest.$ac_ext <<_ACEOF
15412/* confdefs.h. */
15413_ACEOF
15414cat confdefs.h >>conftest.$ac_ext
15415cat >>conftest.$ac_ext <<_ACEOF
15416/* end confdefs.h. */
15417
15418int
15419main ()
15420{
15421
15422 ;
15423 return 0;
15424}
15425_ACEOF
15426rm -f conftest.$ac_objext conftest$ac_exeext
15427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15428 (eval $ac_link) 2>conftest.er1
15429 ac_status=$?
15430 grep -v '^ *+' conftest.er1 >conftest.err
15431 rm -f conftest.er1
15432 cat conftest.err >&5
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000015435 { ac_try='test -z "$ac_c_werror_flag"
15436 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000015437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15438 (eval $ac_try) 2>&5
15439 ac_status=$?
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); }; } &&
15442 { ac_try='test -s conftest$ac_exeext'
15443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15444 (eval $ac_try) 2>&5
15445 ac_status=$?
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); }; }; then
15448
15449aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15450}'`
15451# Check for a 64-bit object if we didn't find anything.
15452if 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; }
15453}'`; fi
15454else
15455 echo "$as_me: failed program was:" >&5
15456sed 's/^/| /' conftest.$ac_ext >&5
15457
15458fi
15459rm -f conftest.err conftest.$ac_objext \
15460 conftest$ac_exeext conftest.$ac_ext
15461if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15462
15463 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15464 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15465 else
15466 if test "$host_cpu" = ia64; then
15467 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15468 allow_undefined_flag_GCJ="-z nodefs"
15469 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15470 else
15471 # Determine the default libpath from the value encoded in an empty executable.
15472 cat >conftest.$ac_ext <<_ACEOF
15473/* confdefs.h. */
15474_ACEOF
15475cat confdefs.h >>conftest.$ac_ext
15476cat >>conftest.$ac_ext <<_ACEOF
15477/* end confdefs.h. */
15478
15479int
15480main ()
15481{
15482
15483 ;
15484 return 0;
15485}
15486_ACEOF
15487rm -f conftest.$ac_objext conftest$ac_exeext
15488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15489 (eval $ac_link) 2>conftest.er1
15490 ac_status=$?
15491 grep -v '^ *+' conftest.er1 >conftest.err
15492 rm -f conftest.er1
15493 cat conftest.err >&5
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000015496 { ac_try='test -z "$ac_c_werror_flag"
15497 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000015498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15499 (eval $ac_try) 2>&5
15500 ac_status=$?
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; } &&
15503 { ac_try='test -s conftest$ac_exeext'
15504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15505 (eval $ac_try) 2>&5
15506 ac_status=$?
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); }; }; then
15509
15510aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15511}'`
15512# Check for a 64-bit object if we didn't find anything.
15513if 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; }
15514}'`; fi
15515else
15516 echo "$as_me: failed program was:" >&5
15517sed 's/^/| /' conftest.$ac_ext >&5
15518
15519fi
15520rm -f conftest.err conftest.$ac_objext \
15521 conftest$ac_exeext conftest.$ac_ext
15522if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15523
15524 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15525 # Warning - without using the other run time loading flags,
15526 # -berok will link without error, but may produce a broken library.
15527 no_undefined_flag_GCJ=' ${wl}-bernotok'
15528 allow_undefined_flag_GCJ=' ${wl}-berok'
15529 # -bexpall does not export symbols beginning with underscore (_)
15530 always_export_symbols_GCJ=yes
15531 # Exported symbols can be pulled into shared objects from archives
15532 whole_archive_flag_spec_GCJ=' '
15533 archive_cmds_need_lc_GCJ=yes
15534 # This is similar to how AIX traditionally builds it's shared libraries.
15535 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15536 fi
15537 fi
15538 ;;
15539
15540 amigaos*)
15541 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)'
15542 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15543 hardcode_minus_L_GCJ=yes
15544 # see comment about different semantics on the GNU ld section
15545 ld_shlibs_GCJ=no
15546 ;;
15547
15548 bsdi4*)
15549 export_dynamic_flag_spec_GCJ=-rdynamic
15550 ;;
15551
15552 cygwin* | mingw* | pw32*)
15553 # When not using gcc, we currently assume that we are using
15554 # Microsoft Visual C++.
15555 # hardcode_libdir_flag_spec is actually meaningless, as there is
15556 # no search path for DLLs.
15557 hardcode_libdir_flag_spec_GCJ=' '
15558 allow_undefined_flag_GCJ=unsupported
15559 # Tell ltmain to make .lib files, not .a files.
15560 libext=lib
15561 # Tell ltmain to make .dll files, not .so files.
15562 shrext=".dll"
15563 # FIXME: Setting linknames here is a bad hack.
15564 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15565 # The linker will automatically build a .lib file if we build a DLL.
15566 old_archive_From_new_cmds_GCJ='true'
15567 # FIXME: Should let the user specify the lib program.
15568 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15569 fix_srcfile_path='`cygpath -w "$srcfile"`'
15570 enable_shared_with_static_runtimes_GCJ=yes
15571 ;;
15572
15573 darwin* | rhapsody*)
15574 if test "$GXX" = yes ; then
15575 archive_cmds_need_lc_GCJ=no
15576 case "$host_os" in
15577 rhapsody* | darwin1.[012])
15578 allow_undefined_flag_GCJ='-undefined suppress'
15579 ;;
15580 *) # Darwin 1.3 on
15581 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15582 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15583 else
15584 case ${MACOSX_DEPLOYMENT_TARGET} in
15585 10.[012])
15586 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15587 ;;
15588 10.*)
15589 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15590 ;;
15591 esac
15592 fi
15593 ;;
15594 esac
15595 lt_int_apple_cc_single_mod=no
15596 output_verbose_link_cmd='echo'
15597 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15598 lt_int_apple_cc_single_mod=yes
15599 fi
15600 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15601 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15602 else
15603 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15604 fi
15605 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15606 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15607 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15608 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15609 else
15610 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15611 fi
15612 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}'
15613 hardcode_direct_GCJ=no
15614 hardcode_automatic_GCJ=yes
15615 hardcode_shlibpath_var_GCJ=unsupported
15616 whole_archive_flag_spec_GCJ='-all_load $convenience'
15617 link_all_deplibs_GCJ=yes
15618 else
15619 ld_shlibs_GCJ=no
15620 fi
15621 ;;
15622
15623 dgux*)
15624 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15625 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15626 hardcode_shlibpath_var_GCJ=no
15627 ;;
15628
15629 freebsd1*)
15630 ld_shlibs_GCJ=no
15631 ;;
15632
15633 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15634 # support. Future versions do this automatically, but an explicit c++rt0.o
15635 # does not break anything, and helps significantly (at the cost of a little
15636 # extra space).
15637 freebsd2.2*)
15638 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15639 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15640 hardcode_direct_GCJ=yes
15641 hardcode_shlibpath_var_GCJ=no
15642 ;;
15643
15644 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15645 freebsd2*)
15646 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15647 hardcode_direct_GCJ=yes
15648 hardcode_minus_L_GCJ=yes
15649 hardcode_shlibpath_var_GCJ=no
15650 ;;
15651
15652 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15653 freebsd* | kfreebsd*-gnu)
15654 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15655 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15656 hardcode_direct_GCJ=yes
15657 hardcode_shlibpath_var_GCJ=no
15658 ;;
15659
15660 hpux9*)
15661 if test "$GCC" = yes; then
15662 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'
15663 else
15664 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'
15665 fi
15666 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15667 hardcode_libdir_separator_GCJ=:
15668 hardcode_direct_GCJ=yes
15669
15670 # hardcode_minus_L: Not really in the search PATH,
15671 # but as the default location of the library.
15672 hardcode_minus_L_GCJ=yes
15673 export_dynamic_flag_spec_GCJ='${wl}-E'
15674 ;;
15675
15676 hpux10* | hpux11*)
15677 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15678 case "$host_cpu" in
15679 hppa*64*|ia64*)
15680 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15681 ;;
15682 *)
15683 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15684 ;;
15685 esac
15686 else
15687 case "$host_cpu" in
15688 hppa*64*|ia64*)
15689 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15690 ;;
15691 *)
15692 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15693 ;;
15694 esac
15695 fi
15696 if test "$with_gnu_ld" = no; then
15697 case "$host_cpu" in
15698 hppa*64*)
15699 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15700 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15701 hardcode_libdir_separator_GCJ=:
15702 hardcode_direct_GCJ=no
15703 hardcode_shlibpath_var_GCJ=no
15704 ;;
15705 ia64*)
15706 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15707 hardcode_direct_GCJ=no
15708 hardcode_shlibpath_var_GCJ=no
15709
15710 # hardcode_minus_L: Not really in the search PATH,
15711 # but as the default location of the library.
15712 hardcode_minus_L_GCJ=yes
15713 ;;
15714 *)
15715 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15716 hardcode_libdir_separator_GCJ=:
15717 hardcode_direct_GCJ=yes
15718 export_dynamic_flag_spec_GCJ='${wl}-E'
15719
15720 # hardcode_minus_L: Not really in the search PATH,
15721 # but as the default location of the library.
15722 hardcode_minus_L_GCJ=yes
15723 ;;
15724 esac
15725 fi
15726 ;;
15727
15728 irix5* | irix6* | nonstopux*)
15729 if test "$GCC" = yes; then
15730 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'
15731 else
15732 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'
15733 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15734 fi
15735 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15736 hardcode_libdir_separator_GCJ=:
15737 link_all_deplibs_GCJ=yes
15738 ;;
15739
15740 netbsd* | knetbsd*-gnu)
15741 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15742 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15743 else
15744 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15745 fi
15746 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15747 hardcode_direct_GCJ=yes
15748 hardcode_shlibpath_var_GCJ=no
15749 ;;
15750
15751 newsos6)
15752 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15753 hardcode_direct_GCJ=yes
15754 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15755 hardcode_libdir_separator_GCJ=:
15756 hardcode_shlibpath_var_GCJ=no
15757 ;;
15758
15759 openbsd*)
15760 hardcode_direct_GCJ=yes
15761 hardcode_shlibpath_var_GCJ=no
15762 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15763 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15764 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15765 export_dynamic_flag_spec_GCJ='${wl}-E'
15766 else
15767 case $host_os in
15768 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15769 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15770 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15771 ;;
15772 *)
15773 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15774 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15775 ;;
15776 esac
15777 fi
15778 ;;
15779
15780 os2*)
15781 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15782 hardcode_minus_L_GCJ=yes
15783 allow_undefined_flag_GCJ=unsupported
15784 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'
15785 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15786 ;;
15787
15788 osf3*)
15789 if test "$GCC" = yes; then
15790 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15791 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'
15792 else
15793 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15794 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'
15795 fi
15796 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15797 hardcode_libdir_separator_GCJ=:
15798 ;;
15799
15800 osf4* | osf5*) # as osf3* with the addition of -msym flag
15801 if test "$GCC" = yes; then
15802 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15803 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'
15804 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15805 else
15806 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15807 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'
15808 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~
15809 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15810
15811 # Both c and cxx compiler support -rpath directly
15812 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15813 fi
15814 hardcode_libdir_separator_GCJ=:
15815 ;;
15816
15817 sco3.2v5*)
15818 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15819 hardcode_shlibpath_var_GCJ=no
15820 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15821 runpath_var=LD_RUN_PATH
15822 hardcode_runpath_var=yes
15823 ;;
15824
15825 solaris*)
15826 no_undefined_flag_GCJ=' -z text'
15827 if test "$GCC" = yes; then
15828 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15829 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15830 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15831 else
15832 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15833 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15834 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15835 fi
15836 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15837 hardcode_shlibpath_var_GCJ=no
15838 case $host_os in
15839 solaris2.[0-5] | solaris2.[0-5].*) ;;
15840 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15841 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15842 esac
15843 link_all_deplibs_GCJ=yes
15844 ;;
15845
15846 sunos4*)
15847 if test "x$host_vendor" = xsequent; then
15848 # Use $CC to link under sequent, because it throws in some extra .o
15849 # files that make .init and .fini sections work.
15850 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15851 else
15852 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15853 fi
15854 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15855 hardcode_direct_GCJ=yes
15856 hardcode_minus_L_GCJ=yes
15857 hardcode_shlibpath_var_GCJ=no
15858 ;;
15859
15860 sysv4)
15861 case $host_vendor in
15862 sni)
15863 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15864 hardcode_direct_GCJ=yes # is this really true???
15865 ;;
15866 siemens)
15867 ## LD is ld it makes a PLAMLIB
15868 ## CC just makes a GrossModule.
15869 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15870 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15871 hardcode_direct_GCJ=no
15872 ;;
15873 motorola)
15874 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15875 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15876 ;;
15877 esac
15878 runpath_var='LD_RUN_PATH'
15879 hardcode_shlibpath_var_GCJ=no
15880 ;;
15881
15882 sysv4.3*)
15883 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15884 hardcode_shlibpath_var_GCJ=no
15885 export_dynamic_flag_spec_GCJ='-Bexport'
15886 ;;
15887
15888 sysv4*MP*)
15889 if test -d /usr/nec; then
15890 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15891 hardcode_shlibpath_var_GCJ=no
15892 runpath_var=LD_RUN_PATH
15893 hardcode_runpath_var=yes
15894 ld_shlibs_GCJ=yes
15895 fi
15896 ;;
15897
15898 sysv4.2uw2*)
15899 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15900 hardcode_direct_GCJ=yes
15901 hardcode_minus_L_GCJ=no
15902 hardcode_shlibpath_var_GCJ=no
15903 hardcode_runpath_var=yes
15904 runpath_var=LD_RUN_PATH
15905 ;;
15906
15907 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15908 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15909 if test "$GCC" = yes; then
15910 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15911 else
15912 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15913 fi
15914 runpath_var='LD_RUN_PATH'
15915 hardcode_shlibpath_var_GCJ=no
15916 ;;
15917
15918 sysv5*)
15919 no_undefined_flag_GCJ=' -z text'
15920 # $CC -shared without GNU ld will not create a library from C++
15921 # object files and a static libstdc++, better avoid it by now
15922 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15923 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15924 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15925 hardcode_libdir_flag_spec_GCJ=
15926 hardcode_shlibpath_var_GCJ=no
15927 runpath_var='LD_RUN_PATH'
15928 ;;
15929
15930 uts4*)
15931 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15932 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15933 hardcode_shlibpath_var_GCJ=no
15934 ;;
15935
15936 *)
15937 ld_shlibs_GCJ=no
15938 ;;
15939 esac
15940 fi
15941
15942echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15943echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15944test "$ld_shlibs_GCJ" = no && can_build_shared=no
15945
15946variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15947if test "$GCC" = yes; then
15948 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15949fi
15950
15951#
15952# Do we need to explicitly link libc?
15953#
15954case "x$archive_cmds_need_lc_GCJ" in
15955x|xyes)
15956 # Assume -lc should be added
15957 archive_cmds_need_lc_GCJ=yes
15958
15959 if test "$enable_shared" = yes && test "$GCC" = yes; then
15960 case $archive_cmds_GCJ in
15961 *'~'*)
15962 # FIXME: we may have to deal with multi-command sequences.
15963 ;;
15964 '$CC '*)
15965 # Test whether the compiler implicitly links with -lc since on some
15966 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15967 # to ld, don't add -lc before -lgcc.
15968 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15969echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15970 $rm conftest*
15971 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15972
15973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15974 (eval $ac_compile) 2>&5
15975 ac_status=$?
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); } 2>conftest.err; then
15978 soname=conftest
15979 lib=conftest
15980 libobjs=conftest.$ac_objext
15981 deplibs=
15982 wl=$lt_prog_compiler_wl_GCJ
15983 compiler_flags=-v
15984 linker_flags=-v
15985 verstring=
15986 output_objdir=.
15987 libname=conftest
15988 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15989 allow_undefined_flag_GCJ=
15990 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15991 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15992 ac_status=$?
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }
15995 then
15996 archive_cmds_need_lc_GCJ=no
15997 else
15998 archive_cmds_need_lc_GCJ=yes
15999 fi
16000 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16001 else
16002 cat conftest.err 1>&5
16003 fi
16004 $rm conftest*
16005 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16006echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16007 ;;
16008 esac
16009 fi
16010 ;;
16011esac
16012
16013echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16014echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16015library_names_spec=
16016libname_spec='lib$name'
16017soname_spec=
16018shrext=".so"
16019postinstall_cmds=
16020postuninstall_cmds=
16021finish_cmds=
16022finish_eval=
16023shlibpath_var=
16024shlibpath_overrides_runpath=unknown
16025version_type=none
16026dynamic_linker="$host_os ld.so"
16027sys_lib_dlsearch_path_spec="/lib /usr/lib"
16028if test "$GCC" = yes; then
16029 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16030 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16031 # if the path contains ";" then we assume it to be the separator
16032 # otherwise default to the standard path separator (i.e. ":") - it is
16033 # assumed that no part of a normal pathname contains ";" but that should
16034 # okay in the real world where ";" in dirpaths is itself problematic.
16035 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16036 else
16037 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16038 fi
16039else
16040 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16041fi
16042need_lib_prefix=unknown
16043hardcode_into_libs=no
16044
16045# when you set need_version to no, make sure it does not cause -set_version
16046# flags to be left without arguments
16047need_version=unknown
16048
16049case $host_os in
16050aix3*)
16051 version_type=linux
16052 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16053 shlibpath_var=LIBPATH
16054
16055 # AIX 3 has no versioning support, so we append a major version to the name.
16056 soname_spec='${libname}${release}${shared_ext}$major'
16057 ;;
16058
16059aix4* | aix5*)
16060 version_type=linux
16061 need_lib_prefix=no
16062 need_version=no
16063 hardcode_into_libs=yes
16064 if test "$host_cpu" = ia64; then
16065 # AIX 5 supports IA64
16066 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16067 shlibpath_var=LD_LIBRARY_PATH
16068 else
16069 # With GCC up to 2.95.x, collect2 would create an import file
16070 # for dependence libraries. The import file would start with
16071 # the line `#! .'. This would cause the generated library to
16072 # depend on `.', always an invalid library. This was fixed in
16073 # development snapshots of GCC prior to 3.0.
16074 case $host_os in
16075 aix4 | aix4.[01] | aix4.[01].*)
16076 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16077 echo ' yes '
16078 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16079 :
16080 else
16081 can_build_shared=no
16082 fi
16083 ;;
16084 esac
16085 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16086 # soname into executable. Probably we can add versioning support to
16087 # collect2, so additional links can be useful in future.
16088 if test "$aix_use_runtimelinking" = yes; then
16089 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16090 # instead of lib<name>.a to let people know that these are not
16091 # typical AIX shared libraries.
16092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16093 else
16094 # We preserve .a as extension for shared libraries through AIX4.2
16095 # and later when we are not doing run time linking.
16096 library_names_spec='${libname}${release}.a $libname.a'
16097 soname_spec='${libname}${release}${shared_ext}$major'
16098 fi
16099 shlibpath_var=LIBPATH
16100 fi
16101 ;;
16102
16103amigaos*)
16104 library_names_spec='$libname.ixlibrary $libname.a'
16105 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16106 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'
16107 ;;
16108
16109beos*)
16110 library_names_spec='${libname}${shared_ext}'
16111 dynamic_linker="$host_os ld.so"
16112 shlibpath_var=LIBRARY_PATH
16113 ;;
16114
16115bsdi4*)
16116 version_type=linux
16117 need_version=no
16118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16119 soname_spec='${libname}${release}${shared_ext}$major'
16120 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16121 shlibpath_var=LD_LIBRARY_PATH
16122 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16123 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16124 # the default ld.so.conf also contains /usr/contrib/lib and
16125 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16126 # libtool to hard-code these into programs
16127 ;;
16128
16129cygwin* | mingw* | pw32*)
16130 version_type=windows
16131 shrext=".dll"
16132 need_version=no
16133 need_lib_prefix=no
16134
16135 case $GCC,$host_os in
16136 yes,cygwin* | yes,mingw* | yes,pw32*)
16137 library_names_spec='$libname.dll.a'
16138 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16139 postinstall_cmds='base_file=`basename \${file}`~
16140 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16141 dldir=$destdir/`dirname \$dlpath`~
16142 test -d \$dldir || mkdir -p \$dldir~
16143 $install_prog $dir/$dlname \$dldir/$dlname'
16144 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16145 dlpath=$dir/\$dldll~
16146 $rm \$dlpath'
16147 shlibpath_overrides_runpath=yes
16148
16149 case $host_os in
16150 cygwin*)
16151 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16152 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16153 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16154 ;;
16155 mingw*)
16156 # MinGW DLLs use traditional 'lib' prefix
16157 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16158 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16159 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16160 # It is most probably a Windows format PATH printed by
16161 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16162 # path with ; separators, and with drive letters. We can handle the
16163 # drive letters (cygwin fileutils understands them), so leave them,
16164 # especially as we might pass files found there to a mingw objdump,
16165 # which wouldn't understand a cygwinified path. Ahh.
16166 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16167 else
16168 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16169 fi
16170 ;;
16171 pw32*)
16172 # pw32 DLLs use 'pw' prefix rather than 'lib'
16173 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16174 ;;
16175 esac
16176 ;;
16177
16178 *)
16179 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16180 ;;
16181 esac
16182 dynamic_linker='Win32 ld.exe'
16183 # FIXME: first we should search . and the directory the executable is in
16184 shlibpath_var=PATH
16185 ;;
16186
16187darwin* | rhapsody*)
16188 dynamic_linker="$host_os dyld"
16189 version_type=darwin
16190 need_lib_prefix=no
16191 need_version=no
16192 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16193 soname_spec='${libname}${release}${major}$shared_ext'
16194 shlibpath_overrides_runpath=yes
16195 shlibpath_var=DYLD_LIBRARY_PATH
16196 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16197 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16198 if test "$GCC" = yes; then
16199 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"`
16200 else
16201 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16202 fi
16203 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16204 ;;
16205
16206dgux*)
16207 version_type=linux
16208 need_lib_prefix=no
16209 need_version=no
16210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16211 soname_spec='${libname}${release}${shared_ext}$major'
16212 shlibpath_var=LD_LIBRARY_PATH
16213 ;;
16214
16215freebsd1*)
16216 dynamic_linker=no
16217 ;;
16218
16219kfreebsd*-gnu)
16220 version_type=linux
16221 need_lib_prefix=no
16222 need_version=no
16223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16224 soname_spec='${libname}${release}${shared_ext}$major'
16225 shlibpath_var=LD_LIBRARY_PATH
16226 shlibpath_overrides_runpath=no
16227 hardcode_into_libs=yes
16228 dynamic_linker='GNU ld.so'
16229 ;;
16230
16231freebsd*)
16232 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16233 version_type=freebsd-$objformat
16234 case $version_type in
16235 freebsd-elf*)
16236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16237 need_version=no
16238 need_lib_prefix=no
16239 ;;
16240 freebsd-*)
16241 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16242 need_version=yes
16243 ;;
16244 esac
16245 shlibpath_var=LD_LIBRARY_PATH
16246 case $host_os in
16247 freebsd2*)
16248 shlibpath_overrides_runpath=yes
16249 ;;
16250 freebsd3.01* | freebsdelf3.01*)
16251 shlibpath_overrides_runpath=yes
16252 hardcode_into_libs=yes
16253 ;;
16254 *) # from 3.2 on
16255 shlibpath_overrides_runpath=no
16256 hardcode_into_libs=yes
16257 ;;
16258 esac
16259 ;;
16260
16261gnu*)
16262 version_type=linux
16263 need_lib_prefix=no
16264 need_version=no
16265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16266 soname_spec='${libname}${release}${shared_ext}$major'
16267 shlibpath_var=LD_LIBRARY_PATH
16268 hardcode_into_libs=yes
16269 ;;
16270
16271hpux9* | hpux10* | hpux11*)
16272 # Give a soname corresponding to the major version so that dld.sl refuses to
16273 # link against other versions.
16274 version_type=sunos
16275 need_lib_prefix=no
16276 need_version=no
16277 case "$host_cpu" in
16278 ia64*)
16279 shrext='.so'
16280 hardcode_into_libs=yes
16281 dynamic_linker="$host_os dld.so"
16282 shlibpath_var=LD_LIBRARY_PATH
16283 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16285 soname_spec='${libname}${release}${shared_ext}$major'
16286 if test "X$HPUX_IA64_MODE" = X32; then
16287 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16288 else
16289 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16290 fi
16291 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16292 ;;
16293 hppa*64*)
16294 shrext='.sl'
16295 hardcode_into_libs=yes
16296 dynamic_linker="$host_os dld.sl"
16297 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16298 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16300 soname_spec='${libname}${release}${shared_ext}$major'
16301 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16302 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16303 ;;
16304 *)
16305 shrext='.sl'
16306 dynamic_linker="$host_os dld.sl"
16307 shlibpath_var=SHLIB_PATH
16308 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16310 soname_spec='${libname}${release}${shared_ext}$major'
16311 ;;
16312 esac
16313 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16314 postinstall_cmds='chmod 555 $lib'
16315 ;;
16316
16317irix5* | irix6* | nonstopux*)
16318 case $host_os in
16319 nonstopux*) version_type=nonstopux ;;
16320 *)
16321 if test "$lt_cv_prog_gnu_ld" = yes; then
16322 version_type=linux
16323 else
16324 version_type=irix
16325 fi ;;
16326 esac
16327 need_lib_prefix=no
16328 need_version=no
16329 soname_spec='${libname}${release}${shared_ext}$major'
16330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16331 case $host_os in
16332 irix5* | nonstopux*)
16333 libsuff= shlibsuff=
16334 ;;
16335 *)
16336 case $LD in # libtool.m4 will add one of these switches to LD
16337 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16338 libsuff= shlibsuff= libmagic=32-bit;;
16339 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16340 libsuff=32 shlibsuff=N32 libmagic=N32;;
16341 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16342 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16343 *) libsuff= shlibsuff= libmagic=never-match;;
16344 esac
16345 ;;
16346 esac
16347 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16348 shlibpath_overrides_runpath=no
16349 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16350 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16351 hardcode_into_libs=yes
16352 ;;
16353
16354# No shared lib support for Linux oldld, aout, or coff.
16355linux*oldld* | linux*aout* | linux*coff*)
16356 dynamic_linker=no
16357 ;;
16358
16359# This must be Linux ELF.
16360linux*)
16361 version_type=linux
16362 need_lib_prefix=no
16363 need_version=no
16364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16365 soname_spec='${libname}${release}${shared_ext}$major'
16366 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16367 shlibpath_var=LD_LIBRARY_PATH
16368 shlibpath_overrides_runpath=no
16369 # This implies no fast_install, which is unacceptable.
16370 # Some rework will be needed to allow for fast_install
16371 # before this can be enabled.
16372 hardcode_into_libs=yes
16373
16374 # Append ld.so.conf contents to the search path
16375 if test -f /etc/ld.so.conf; then
16376 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
16377 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
16378 fi
16379
16380 # We used to test for /lib/ld.so.1 and disable shared libraries on
16381 # powerpc, because MkLinux only supported shared libraries with the
16382 # GNU dynamic linker. Since this was broken with cross compilers,
16383 # most powerpc-linux boxes support dynamic linking these days and
16384 # people can always --disable-shared, the test was removed, and we
16385 # assume the GNU/Linux dynamic linker is in use.
16386 dynamic_linker='GNU/Linux ld.so'
16387 ;;
16388
16389knetbsd*-gnu)
16390 version_type=linux
16391 need_lib_prefix=no
16392 need_version=no
16393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16394 soname_spec='${libname}${release}${shared_ext}$major'
16395 shlibpath_var=LD_LIBRARY_PATH
16396 shlibpath_overrides_runpath=no
16397 hardcode_into_libs=yes
16398 dynamic_linker='GNU ld.so'
16399 ;;
16400
16401netbsd*)
16402 version_type=sunos
16403 need_lib_prefix=no
16404 need_version=no
16405 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16407 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16408 dynamic_linker='NetBSD (a.out) ld.so'
16409 else
16410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16411 soname_spec='${libname}${release}${shared_ext}$major'
16412 dynamic_linker='NetBSD ld.elf_so'
16413 fi
16414 shlibpath_var=LD_LIBRARY_PATH
16415 shlibpath_overrides_runpath=yes
16416 hardcode_into_libs=yes
16417 ;;
16418
16419newsos6)
16420 version_type=linux
16421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16422 shlibpath_var=LD_LIBRARY_PATH
16423 shlibpath_overrides_runpath=yes
16424 ;;
16425
16426nto-qnx*)
16427 version_type=linux
16428 need_lib_prefix=no
16429 need_version=no
16430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16431 soname_spec='${libname}${release}${shared_ext}$major'
16432 shlibpath_var=LD_LIBRARY_PATH
16433 shlibpath_overrides_runpath=yes
16434 ;;
16435
16436openbsd*)
16437 version_type=sunos
16438 need_lib_prefix=no
16439 need_version=yes
16440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16441 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16442 shlibpath_var=LD_LIBRARY_PATH
16443 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16444 case $host_os in
16445 openbsd2.[89] | openbsd2.[89].*)
16446 shlibpath_overrides_runpath=no
16447 ;;
16448 *)
16449 shlibpath_overrides_runpath=yes
16450 ;;
16451 esac
16452 else
16453 shlibpath_overrides_runpath=yes
16454 fi
16455 ;;
16456
16457os2*)
16458 libname_spec='$name'
16459 shrext=".dll"
16460 need_lib_prefix=no
16461 library_names_spec='$libname${shared_ext} $libname.a'
16462 dynamic_linker='OS/2 ld.exe'
16463 shlibpath_var=LIBPATH
16464 ;;
16465
16466osf3* | osf4* | osf5*)
16467 version_type=osf
16468 need_lib_prefix=no
16469 need_version=no
16470 soname_spec='${libname}${release}${shared_ext}$major'
16471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16472 shlibpath_var=LD_LIBRARY_PATH
16473 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16474 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16475 ;;
16476
16477sco3.2v5*)
16478 version_type=osf
16479 soname_spec='${libname}${release}${shared_ext}$major'
16480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16481 shlibpath_var=LD_LIBRARY_PATH
16482 ;;
16483
16484solaris*)
16485 version_type=linux
16486 need_lib_prefix=no
16487 need_version=no
16488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16489 soname_spec='${libname}${release}${shared_ext}$major'
16490 shlibpath_var=LD_LIBRARY_PATH
16491 shlibpath_overrides_runpath=yes
16492 hardcode_into_libs=yes
16493 # ldd complains unless libraries are executable
16494 postinstall_cmds='chmod +x $lib'
16495 ;;
16496
16497sunos4*)
16498 version_type=sunos
16499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16500 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16501 shlibpath_var=LD_LIBRARY_PATH
16502 shlibpath_overrides_runpath=yes
16503 if test "$with_gnu_ld" = yes; then
16504 need_lib_prefix=no
16505 fi
16506 need_version=yes
16507 ;;
16508
16509sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16510 version_type=linux
16511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16512 soname_spec='${libname}${release}${shared_ext}$major'
16513 shlibpath_var=LD_LIBRARY_PATH
16514 case $host_vendor in
16515 sni)
16516 shlibpath_overrides_runpath=no
16517 need_lib_prefix=no
16518 export_dynamic_flag_spec='${wl}-Blargedynsym'
16519 runpath_var=LD_RUN_PATH
16520 ;;
16521 siemens)
16522 need_lib_prefix=no
16523 ;;
16524 motorola)
16525 need_lib_prefix=no
16526 need_version=no
16527 shlibpath_overrides_runpath=no
16528 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16529 ;;
16530 esac
16531 ;;
16532
16533sysv4*MP*)
16534 if test -d /usr/nec ;then
16535 version_type=linux
16536 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16537 soname_spec='$libname${shared_ext}.$major'
16538 shlibpath_var=LD_LIBRARY_PATH
16539 fi
16540 ;;
16541
16542uts4*)
16543 version_type=linux
16544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16545 soname_spec='${libname}${release}${shared_ext}$major'
16546 shlibpath_var=LD_LIBRARY_PATH
16547 ;;
16548
16549*)
16550 dynamic_linker=no
16551 ;;
16552esac
16553echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16554echo "${ECHO_T}$dynamic_linker" >&6
16555test "$dynamic_linker" = no && can_build_shared=no
16556
16557echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16558echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16559hardcode_action_GCJ=
16560if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16561 test -n "$runpath_var GCJ" || \
16562 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16563
16564 # We can hardcode non-existant directories.
16565 if test "$hardcode_direct_GCJ" != no &&
16566 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16567 # have to relink, otherwise we might link with an installed library
16568 # when we should be linking with a yet-to-be-installed one
16569 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16570 test "$hardcode_minus_L_GCJ" != no; then
16571 # Linking always hardcodes the temporary library directory.
16572 hardcode_action_GCJ=relink
16573 else
16574 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16575 hardcode_action_GCJ=immediate
16576 fi
16577else
16578 # We cannot hardcode anything, or else we can only hardcode existing
16579 # directories.
16580 hardcode_action_GCJ=unsupported
16581fi
16582echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16583echo "${ECHO_T}$hardcode_action_GCJ" >&6
16584
16585if test "$hardcode_action_GCJ" = relink; then
16586 # Fast installation is not supported
16587 enable_fast_install=no
16588elif test "$shlibpath_overrides_runpath" = yes ||
16589 test "$enable_shared" = no; then
16590 # Fast installation is not necessary
16591 enable_fast_install=needless
16592fi
16593
16594striplib=
16595old_striplib=
16596echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16597echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16598if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16599 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16600 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16601 echo "$as_me:$LINENO: result: yes" >&5
16602echo "${ECHO_T}yes" >&6
16603else
16604# FIXME - insert some real tests, host_os isn't really good enough
16605 case $host_os in
16606 darwin*)
16607 if test -n "$STRIP" ; then
16608 striplib="$STRIP -x"
16609 echo "$as_me:$LINENO: result: yes" >&5
16610echo "${ECHO_T}yes" >&6
16611 else
16612 echo "$as_me:$LINENO: result: no" >&5
16613echo "${ECHO_T}no" >&6
16614fi
16615 ;;
16616 *)
16617 echo "$as_me:$LINENO: result: no" >&5
16618echo "${ECHO_T}no" >&6
16619 ;;
16620 esac
16621fi
16622
16623if test "x$enable_dlopen" != xyes; then
16624 enable_dlopen=unknown
16625 enable_dlopen_self=unknown
16626 enable_dlopen_self_static=unknown
16627else
16628 lt_cv_dlopen=no
16629 lt_cv_dlopen_libs=
16630
16631 case $host_os in
16632 beos*)
16633 lt_cv_dlopen="load_add_on"
16634 lt_cv_dlopen_libs=
16635 lt_cv_dlopen_self=yes
16636 ;;
16637
16638 mingw* | pw32*)
16639 lt_cv_dlopen="LoadLibrary"
16640 lt_cv_dlopen_libs=
16641 ;;
16642
16643 cygwin*)
16644 lt_cv_dlopen="dlopen"
16645 lt_cv_dlopen_libs=
16646 ;;
16647
16648 darwin*)
16649 # if libdl is installed we need to link against it
16650 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16651echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16652if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16653 echo $ECHO_N "(cached) $ECHO_C" >&6
16654else
16655 ac_check_lib_save_LIBS=$LIBS
16656LIBS="-ldl $LIBS"
16657cat >conftest.$ac_ext <<_ACEOF
16658/* confdefs.h. */
16659_ACEOF
16660cat confdefs.h >>conftest.$ac_ext
16661cat >>conftest.$ac_ext <<_ACEOF
16662/* end confdefs.h. */
16663
16664/* Override any gcc2 internal prototype to avoid an error. */
16665#ifdef __cplusplus
16666extern "C"
16667#endif
16668/* We use char because int might match the return type of a gcc2
16669 builtin and then its argument prototype would still apply. */
16670char dlopen ();
16671int
16672main ()
16673{
16674dlopen ();
16675 ;
16676 return 0;
16677}
16678_ACEOF
16679rm -f conftest.$ac_objext conftest$ac_exeext
16680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16681 (eval $ac_link) 2>conftest.er1
16682 ac_status=$?
16683 grep -v '^ *+' conftest.er1 >conftest.err
16684 rm -f conftest.er1
16685 cat conftest.err >&5
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000016688 { ac_try='test -z "$ac_c_werror_flag"
16689 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000016690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16691 (eval $ac_try) 2>&5
16692 ac_status=$?
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; } &&
16695 { ac_try='test -s conftest$ac_exeext'
16696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16697 (eval $ac_try) 2>&5
16698 ac_status=$?
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); }; }; then
16701 ac_cv_lib_dl_dlopen=yes
16702else
16703 echo "$as_me: failed program was:" >&5
16704sed 's/^/| /' conftest.$ac_ext >&5
16705
16706ac_cv_lib_dl_dlopen=no
16707fi
16708rm -f conftest.err conftest.$ac_objext \
16709 conftest$ac_exeext conftest.$ac_ext
16710LIBS=$ac_check_lib_save_LIBS
16711fi
16712echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16713echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16714if test $ac_cv_lib_dl_dlopen = yes; then
16715 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16716else
16717
16718 lt_cv_dlopen="dyld"
16719 lt_cv_dlopen_libs=
16720 lt_cv_dlopen_self=yes
16721
16722fi
16723
16724 ;;
16725
16726 *)
16727 echo "$as_me:$LINENO: checking for shl_load" >&5
16728echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16729if test "${ac_cv_func_shl_load+set}" = set; then
16730 echo $ECHO_N "(cached) $ECHO_C" >&6
16731else
16732 cat >conftest.$ac_ext <<_ACEOF
16733/* confdefs.h. */
16734_ACEOF
16735cat confdefs.h >>conftest.$ac_ext
16736cat >>conftest.$ac_ext <<_ACEOF
16737/* end confdefs.h. */
16738/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16740#define shl_load innocuous_shl_load
16741
16742/* System header to define __stub macros and hopefully few prototypes,
16743 which can conflict with char shl_load (); below.
16744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16745 <limits.h> exists even on freestanding compilers. */
16746
16747#ifdef __STDC__
16748# include <limits.h>
16749#else
16750# include <assert.h>
16751#endif
16752
16753#undef shl_load
16754
16755/* Override any gcc2 internal prototype to avoid an error. */
16756#ifdef __cplusplus
16757extern "C"
16758{
16759#endif
16760/* We use char because int might match the return type of a gcc2
16761 builtin and then its argument prototype would still apply. */
16762char shl_load ();
16763/* The GNU C library defines this for functions which it implements
16764 to always fail with ENOSYS. Some functions are actually named
16765 something starting with __ and the normal name is an alias. */
16766#if defined (__stub_shl_load) || defined (__stub___shl_load)
16767choke me
16768#else
16769char (*f) () = shl_load;
16770#endif
16771#ifdef __cplusplus
16772}
16773#endif
16774
16775int
16776main ()
16777{
16778return f != shl_load;
16779 ;
16780 return 0;
16781}
16782_ACEOF
16783rm -f conftest.$ac_objext conftest$ac_exeext
16784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16785 (eval $ac_link) 2>conftest.er1
16786 ac_status=$?
16787 grep -v '^ *+' conftest.er1 >conftest.err
16788 rm -f conftest.er1
16789 cat conftest.err >&5
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000016792 { ac_try='test -z "$ac_c_werror_flag"
16793 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000016794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16795 (eval $ac_try) 2>&5
16796 ac_status=$?
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); }; } &&
16799 { ac_try='test -s conftest$ac_exeext'
16800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16801 (eval $ac_try) 2>&5
16802 ac_status=$?
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); }; }; then
16805 ac_cv_func_shl_load=yes
16806else
16807 echo "$as_me: failed program was:" >&5
16808sed 's/^/| /' conftest.$ac_ext >&5
16809
16810ac_cv_func_shl_load=no
16811fi
16812rm -f conftest.err conftest.$ac_objext \
16813 conftest$ac_exeext conftest.$ac_ext
16814fi
16815echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16816echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16817if test $ac_cv_func_shl_load = yes; then
16818 lt_cv_dlopen="shl_load"
16819else
16820 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16821echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16822if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16823 echo $ECHO_N "(cached) $ECHO_C" >&6
16824else
16825 ac_check_lib_save_LIBS=$LIBS
16826LIBS="-ldld $LIBS"
16827cat >conftest.$ac_ext <<_ACEOF
16828/* confdefs.h. */
16829_ACEOF
16830cat confdefs.h >>conftest.$ac_ext
16831cat >>conftest.$ac_ext <<_ACEOF
16832/* end confdefs.h. */
16833
16834/* Override any gcc2 internal prototype to avoid an error. */
16835#ifdef __cplusplus
16836extern "C"
16837#endif
16838/* We use char because int might match the return type of a gcc2
16839 builtin and then its argument prototype would still apply. */
16840char shl_load ();
16841int
16842main ()
16843{
16844shl_load ();
16845 ;
16846 return 0;
16847}
16848_ACEOF
16849rm -f conftest.$ac_objext conftest$ac_exeext
16850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16851 (eval $ac_link) 2>conftest.er1
16852 ac_status=$?
16853 grep -v '^ *+' conftest.er1 >conftest.err
16854 rm -f conftest.er1
16855 cat conftest.err >&5
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000016858 { ac_try='test -z "$ac_c_werror_flag"
16859 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000016860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16861 (eval $ac_try) 2>&5
16862 ac_status=$?
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); }; } &&
16865 { ac_try='test -s conftest$ac_exeext'
16866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16867 (eval $ac_try) 2>&5
16868 ac_status=$?
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); }; }; then
16871 ac_cv_lib_dld_shl_load=yes
16872else
16873 echo "$as_me: failed program was:" >&5
16874sed 's/^/| /' conftest.$ac_ext >&5
16875
16876ac_cv_lib_dld_shl_load=no
16877fi
16878rm -f conftest.err conftest.$ac_objext \
16879 conftest$ac_exeext conftest.$ac_ext
16880LIBS=$ac_check_lib_save_LIBS
16881fi
16882echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16883echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16884if test $ac_cv_lib_dld_shl_load = yes; then
16885 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16886else
16887 echo "$as_me:$LINENO: checking for dlopen" >&5
16888echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16889if test "${ac_cv_func_dlopen+set}" = set; then
16890 echo $ECHO_N "(cached) $ECHO_C" >&6
16891else
16892 cat >conftest.$ac_ext <<_ACEOF
16893/* confdefs.h. */
16894_ACEOF
16895cat confdefs.h >>conftest.$ac_ext
16896cat >>conftest.$ac_ext <<_ACEOF
16897/* end confdefs.h. */
16898/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16900#define dlopen innocuous_dlopen
16901
16902/* System header to define __stub macros and hopefully few prototypes,
16903 which can conflict with char dlopen (); below.
16904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16905 <limits.h> exists even on freestanding compilers. */
16906
16907#ifdef __STDC__
16908# include <limits.h>
16909#else
16910# include <assert.h>
16911#endif
16912
16913#undef dlopen
16914
16915/* Override any gcc2 internal prototype to avoid an error. */
16916#ifdef __cplusplus
16917extern "C"
16918{
16919#endif
16920/* We use char because int might match the return type of a gcc2
16921 builtin and then its argument prototype would still apply. */
16922char dlopen ();
16923/* The GNU C library defines this for functions which it implements
16924 to always fail with ENOSYS. Some functions are actually named
16925 something starting with __ and the normal name is an alias. */
16926#if defined (__stub_dlopen) || defined (__stub___dlopen)
16927choke me
16928#else
16929char (*f) () = dlopen;
16930#endif
16931#ifdef __cplusplus
16932}
16933#endif
16934
16935int
16936main ()
16937{
16938return f != dlopen;
16939 ;
16940 return 0;
16941}
16942_ACEOF
16943rm -f conftest.$ac_objext conftest$ac_exeext
16944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16945 (eval $ac_link) 2>conftest.er1
16946 ac_status=$?
16947 grep -v '^ *+' conftest.er1 >conftest.err
16948 rm -f conftest.er1
16949 cat conftest.err >&5
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000016952 { ac_try='test -z "$ac_c_werror_flag"
16953 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000016954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955 (eval $ac_try) 2>&5
16956 ac_status=$?
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; } &&
16959 { ac_try='test -s conftest$ac_exeext'
16960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16961 (eval $ac_try) 2>&5
16962 ac_status=$?
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); }; }; then
16965 ac_cv_func_dlopen=yes
16966else
16967 echo "$as_me: failed program was:" >&5
16968sed 's/^/| /' conftest.$ac_ext >&5
16969
16970ac_cv_func_dlopen=no
16971fi
16972rm -f conftest.err conftest.$ac_objext \
16973 conftest$ac_exeext conftest.$ac_ext
16974fi
16975echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16976echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16977if test $ac_cv_func_dlopen = yes; then
16978 lt_cv_dlopen="dlopen"
16979else
16980 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16981echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16982if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16983 echo $ECHO_N "(cached) $ECHO_C" >&6
16984else
16985 ac_check_lib_save_LIBS=$LIBS
16986LIBS="-ldl $LIBS"
16987cat >conftest.$ac_ext <<_ACEOF
16988/* confdefs.h. */
16989_ACEOF
16990cat confdefs.h >>conftest.$ac_ext
16991cat >>conftest.$ac_ext <<_ACEOF
16992/* end confdefs.h. */
16993
16994/* Override any gcc2 internal prototype to avoid an error. */
16995#ifdef __cplusplus
16996extern "C"
16997#endif
16998/* We use char because int might match the return type of a gcc2
16999 builtin and then its argument prototype would still apply. */
17000char dlopen ();
17001int
17002main ()
17003{
17004dlopen ();
17005 ;
17006 return 0;
17007}
17008_ACEOF
17009rm -f conftest.$ac_objext conftest$ac_exeext
17010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17011 (eval $ac_link) 2>conftest.er1
17012 ac_status=$?
17013 grep -v '^ *+' conftest.er1 >conftest.err
17014 rm -f conftest.er1
17015 cat conftest.err >&5
17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000017018 { ac_try='test -z "$ac_c_werror_flag"
17019 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000017020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17021 (eval $ac_try) 2>&5
17022 ac_status=$?
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; } &&
17025 { ac_try='test -s conftest$ac_exeext'
17026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17027 (eval $ac_try) 2>&5
17028 ac_status=$?
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; }; then
17031 ac_cv_lib_dl_dlopen=yes
17032else
17033 echo "$as_me: failed program was:" >&5
17034sed 's/^/| /' conftest.$ac_ext >&5
17035
17036ac_cv_lib_dl_dlopen=no
17037fi
17038rm -f conftest.err conftest.$ac_objext \
17039 conftest$ac_exeext conftest.$ac_ext
17040LIBS=$ac_check_lib_save_LIBS
17041fi
17042echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17043echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17044if test $ac_cv_lib_dl_dlopen = yes; then
17045 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17046else
17047 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17048echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17049if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17050 echo $ECHO_N "(cached) $ECHO_C" >&6
17051else
17052 ac_check_lib_save_LIBS=$LIBS
17053LIBS="-lsvld $LIBS"
17054cat >conftest.$ac_ext <<_ACEOF
17055/* confdefs.h. */
17056_ACEOF
17057cat confdefs.h >>conftest.$ac_ext
17058cat >>conftest.$ac_ext <<_ACEOF
17059/* end confdefs.h. */
17060
17061/* Override any gcc2 internal prototype to avoid an error. */
17062#ifdef __cplusplus
17063extern "C"
17064#endif
17065/* We use char because int might match the return type of a gcc2
17066 builtin and then its argument prototype would still apply. */
17067char dlopen ();
17068int
17069main ()
17070{
17071dlopen ();
17072 ;
17073 return 0;
17074}
17075_ACEOF
17076rm -f conftest.$ac_objext conftest$ac_exeext
17077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17078 (eval $ac_link) 2>conftest.er1
17079 ac_status=$?
17080 grep -v '^ *+' conftest.er1 >conftest.err
17081 rm -f conftest.er1
17082 cat conftest.err >&5
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000017085 { ac_try='test -z "$ac_c_werror_flag"
17086 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000017087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17088 (eval $ac_try) 2>&5
17089 ac_status=$?
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); }; } &&
17092 { ac_try='test -s conftest$ac_exeext'
17093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17094 (eval $ac_try) 2>&5
17095 ac_status=$?
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); }; }; then
17098 ac_cv_lib_svld_dlopen=yes
17099else
17100 echo "$as_me: failed program was:" >&5
17101sed 's/^/| /' conftest.$ac_ext >&5
17102
17103ac_cv_lib_svld_dlopen=no
17104fi
17105rm -f conftest.err conftest.$ac_objext \
17106 conftest$ac_exeext conftest.$ac_ext
17107LIBS=$ac_check_lib_save_LIBS
17108fi
17109echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17110echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17111if test $ac_cv_lib_svld_dlopen = yes; then
17112 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17113else
17114 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17115echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17116if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17117 echo $ECHO_N "(cached) $ECHO_C" >&6
17118else
17119 ac_check_lib_save_LIBS=$LIBS
17120LIBS="-ldld $LIBS"
17121cat >conftest.$ac_ext <<_ACEOF
17122/* confdefs.h. */
17123_ACEOF
17124cat confdefs.h >>conftest.$ac_ext
17125cat >>conftest.$ac_ext <<_ACEOF
17126/* end confdefs.h. */
17127
17128/* Override any gcc2 internal prototype to avoid an error. */
17129#ifdef __cplusplus
17130extern "C"
17131#endif
17132/* We use char because int might match the return type of a gcc2
17133 builtin and then its argument prototype would still apply. */
17134char dld_link ();
17135int
17136main ()
17137{
17138dld_link ();
17139 ;
17140 return 0;
17141}
17142_ACEOF
17143rm -f conftest.$ac_objext conftest$ac_exeext
17144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17145 (eval $ac_link) 2>conftest.er1
17146 ac_status=$?
17147 grep -v '^ *+' conftest.er1 >conftest.err
17148 rm -f conftest.er1
17149 cat conftest.err >&5
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000017152 { ac_try='test -z "$ac_c_werror_flag"
17153 || test ! -s conftest.err'
a.rottmann9bc8b932004-02-29 15:18:31 +000017154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17155 (eval $ac_try) 2>&5
17156 ac_status=$?
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); }; } &&
17159 { ac_try='test -s conftest$ac_exeext'
17160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17161 (eval $ac_try) 2>&5
17162 ac_status=$?
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); }; }; then
17165 ac_cv_lib_dld_dld_link=yes
17166else
17167 echo "$as_me: failed program was:" >&5
17168sed 's/^/| /' conftest.$ac_ext >&5
17169
17170ac_cv_lib_dld_dld_link=no
17171fi
17172rm -f conftest.err conftest.$ac_objext \
17173 conftest$ac_exeext conftest.$ac_ext
17174LIBS=$ac_check_lib_save_LIBS
17175fi
17176echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17177echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17178if test $ac_cv_lib_dld_dld_link = yes; then
17179 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17180fi
17181
17182
17183fi
17184
17185
17186fi
17187
17188
17189fi
17190
17191
17192fi
17193
17194
17195fi
17196
17197 ;;
17198 esac
17199
17200 if test "x$lt_cv_dlopen" != xno; then
17201 enable_dlopen=yes
17202 else
17203 enable_dlopen=no
17204 fi
17205
17206 case $lt_cv_dlopen in
17207 dlopen)
17208 save_CPPFLAGS="$CPPFLAGS"
17209 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17210
17211 save_LDFLAGS="$LDFLAGS"
17212 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17213
17214 save_LIBS="$LIBS"
17215 LIBS="$lt_cv_dlopen_libs $LIBS"
17216
17217 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17218echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17219if test "${lt_cv_dlopen_self+set}" = set; then
17220 echo $ECHO_N "(cached) $ECHO_C" >&6
17221else
17222 if test "$cross_compiling" = yes; then :
17223 lt_cv_dlopen_self=cross
17224else
17225 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17226 lt_status=$lt_dlunknown
17227 cat > conftest.$ac_ext <<EOF
drh8e2e2a12006-02-01 01:55:17 +000017228#line 17228 "configure"
a.rottmann9bc8b932004-02-29 15:18:31 +000017229#include "confdefs.h"
17230
17231#if HAVE_DLFCN_H
17232#include <dlfcn.h>
17233#endif
17234
17235#include <stdio.h>
17236
17237#ifdef RTLD_GLOBAL
17238# define LT_DLGLOBAL RTLD_GLOBAL
17239#else
17240# ifdef DL_GLOBAL
17241# define LT_DLGLOBAL DL_GLOBAL
17242# else
17243# define LT_DLGLOBAL 0
17244# endif
17245#endif
17246
17247/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17248 find out it does not work in some platform. */
17249#ifndef LT_DLLAZY_OR_NOW
17250# ifdef RTLD_LAZY
17251# define LT_DLLAZY_OR_NOW RTLD_LAZY
17252# else
17253# ifdef DL_LAZY
17254# define LT_DLLAZY_OR_NOW DL_LAZY
17255# else
17256# ifdef RTLD_NOW
17257# define LT_DLLAZY_OR_NOW RTLD_NOW
17258# else
17259# ifdef DL_NOW
17260# define LT_DLLAZY_OR_NOW DL_NOW
17261# else
17262# define LT_DLLAZY_OR_NOW 0
17263# endif
17264# endif
17265# endif
17266# endif
17267#endif
17268
17269#ifdef __cplusplus
17270extern "C" void exit (int);
17271#endif
17272
17273void fnord() { int i=42;}
17274int main ()
17275{
17276 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17277 int status = $lt_dlunknown;
17278
17279 if (self)
17280 {
17281 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17282 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17283 /* dlclose (self); */
17284 }
17285
17286 exit (status);
17287}
17288EOF
17289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17290 (eval $ac_link) 2>&5
17291 ac_status=$?
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17294 (./conftest; exit; ) 2>/dev/null
17295 lt_status=$?
17296 case x$lt_status in
17297 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17298 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17299 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17300 esac
17301 else :
17302 # compilation failed
17303 lt_cv_dlopen_self=no
17304 fi
17305fi
17306rm -fr conftest*
17307
17308
17309fi
17310echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17311echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17312
17313 if test "x$lt_cv_dlopen_self" = xyes; then
17314 LDFLAGS="$LDFLAGS $link_static_flag"
17315 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17316echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17317if test "${lt_cv_dlopen_self_static+set}" = set; then
17318 echo $ECHO_N "(cached) $ECHO_C" >&6
17319else
17320 if test "$cross_compiling" = yes; then :
17321 lt_cv_dlopen_self_static=cross
17322else
17323 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17324 lt_status=$lt_dlunknown
17325 cat > conftest.$ac_ext <<EOF
drh8e2e2a12006-02-01 01:55:17 +000017326#line 17326 "configure"
a.rottmann9bc8b932004-02-29 15:18:31 +000017327#include "confdefs.h"
17328
17329#if HAVE_DLFCN_H
17330#include <dlfcn.h>
17331#endif
17332
17333#include <stdio.h>
17334
17335#ifdef RTLD_GLOBAL
17336# define LT_DLGLOBAL RTLD_GLOBAL
17337#else
17338# ifdef DL_GLOBAL
17339# define LT_DLGLOBAL DL_GLOBAL
17340# else
17341# define LT_DLGLOBAL 0
17342# endif
17343#endif
17344
17345/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17346 find out it does not work in some platform. */
17347#ifndef LT_DLLAZY_OR_NOW
17348# ifdef RTLD_LAZY
17349# define LT_DLLAZY_OR_NOW RTLD_LAZY
17350# else
17351# ifdef DL_LAZY
17352# define LT_DLLAZY_OR_NOW DL_LAZY
17353# else
17354# ifdef RTLD_NOW
17355# define LT_DLLAZY_OR_NOW RTLD_NOW
17356# else
17357# ifdef DL_NOW
17358# define LT_DLLAZY_OR_NOW DL_NOW
17359# else
17360# define LT_DLLAZY_OR_NOW 0
17361# endif
17362# endif
17363# endif
17364# endif
17365#endif
17366
17367#ifdef __cplusplus
17368extern "C" void exit (int);
17369#endif
17370
17371void fnord() { int i=42;}
17372int main ()
17373{
17374 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17375 int status = $lt_dlunknown;
17376
17377 if (self)
17378 {
17379 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17380 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17381 /* dlclose (self); */
17382 }
17383
17384 exit (status);
17385}
17386EOF
17387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17388 (eval $ac_link) 2>&5
17389 ac_status=$?
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17392 (./conftest; exit; ) 2>/dev/null
17393 lt_status=$?
17394 case x$lt_status in
17395 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17396 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17397 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17398 esac
17399 else :
17400 # compilation failed
17401 lt_cv_dlopen_self_static=no
17402 fi
17403fi
17404rm -fr conftest*
17405
17406
17407fi
17408echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17409echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17410 fi
17411
17412 CPPFLAGS="$save_CPPFLAGS"
17413 LDFLAGS="$save_LDFLAGS"
17414 LIBS="$save_LIBS"
17415 ;;
17416 esac
17417
17418 case $lt_cv_dlopen_self in
17419 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17420 *) enable_dlopen_self=unknown ;;
17421 esac
17422
17423 case $lt_cv_dlopen_self_static in
17424 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17425 *) enable_dlopen_self_static=unknown ;;
17426 esac
17427fi
17428
17429
17430# The else clause should only fire when bootstrapping the
17431# libtool distribution, otherwise you forgot to ship ltmain.sh
17432# with your package, and you will get complaints that there are
17433# no rules to generate ltmain.sh.
17434if test -f "$ltmain"; then
17435 # See if we are running on zsh, and set the options which allow our commands through
17436 # without removal of \ escapes.
17437 if test -n "${ZSH_VERSION+set}" ; then
17438 setopt NO_GLOB_SUBST
17439 fi
17440 # Now quote all the things that may contain metacharacters while being
17441 # careful not to overquote the AC_SUBSTed values. We take copies of the
17442 # variables and quote the copies for generation of the libtool script.
17443 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17444 SED SHELL STRIP \
17445 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17446 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17447 deplibs_check_method reload_flag reload_cmds need_locks \
17448 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17449 lt_cv_sys_global_symbol_to_c_name_address \
17450 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17451 old_postinstall_cmds old_postuninstall_cmds \
17452 compiler_GCJ \
17453 CC_GCJ \
17454 LD_GCJ \
17455 lt_prog_compiler_wl_GCJ \
17456 lt_prog_compiler_pic_GCJ \
17457 lt_prog_compiler_static_GCJ \
17458 lt_prog_compiler_no_builtin_flag_GCJ \
17459 export_dynamic_flag_spec_GCJ \
17460 thread_safe_flag_spec_GCJ \
17461 whole_archive_flag_spec_GCJ \
17462 enable_shared_with_static_runtimes_GCJ \
17463 old_archive_cmds_GCJ \
17464 old_archive_from_new_cmds_GCJ \
17465 predep_objects_GCJ \
17466 postdep_objects_GCJ \
17467 predeps_GCJ \
17468 postdeps_GCJ \
17469 compiler_lib_search_path_GCJ \
17470 archive_cmds_GCJ \
17471 archive_expsym_cmds_GCJ \
17472 postinstall_cmds_GCJ \
17473 postuninstall_cmds_GCJ \
17474 old_archive_from_expsyms_cmds_GCJ \
17475 allow_undefined_flag_GCJ \
17476 no_undefined_flag_GCJ \
17477 export_symbols_cmds_GCJ \
17478 hardcode_libdir_flag_spec_GCJ \
17479 hardcode_libdir_flag_spec_ld_GCJ \
17480 hardcode_libdir_separator_GCJ \
17481 hardcode_automatic_GCJ \
17482 module_cmds_GCJ \
17483 module_expsym_cmds_GCJ \
17484 lt_cv_prog_compiler_c_o_GCJ \
17485 exclude_expsyms_GCJ \
17486 include_expsyms_GCJ; do
17487
17488 case $var in
17489 old_archive_cmds_GCJ | \
17490 old_archive_from_new_cmds_GCJ | \
17491 archive_cmds_GCJ | \
17492 archive_expsym_cmds_GCJ | \
17493 module_cmds_GCJ | \
17494 module_expsym_cmds_GCJ | \
17495 old_archive_from_expsyms_cmds_GCJ | \
17496 export_symbols_cmds_GCJ | \
17497 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17498 postinstall_cmds | postuninstall_cmds | \
17499 old_postinstall_cmds | old_postuninstall_cmds | \
17500 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17501 # Double-quote double-evaled strings.
17502 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17503 ;;
17504 *)
17505 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17506 ;;
17507 esac
17508 done
17509
17510 case $lt_echo in
17511 *'\$0 --fallback-echo"')
17512 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17513 ;;
17514 esac
17515
17516cfgfile="$ofile"
17517
17518 cat <<__EOF__ >> "$cfgfile"
17519# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17520
17521# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17522
17523# Shell to use when invoking shell scripts.
17524SHELL=$lt_SHELL
17525
17526# Whether or not to build shared libraries.
17527build_libtool_libs=$enable_shared
17528
17529# Whether or not to build static libraries.
17530build_old_libs=$enable_static
17531
17532# Whether or not to add -lc for building shared libraries.
17533build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17534
17535# Whether or not to disallow shared libs when runtime libs are static
17536allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17537
17538# Whether or not to optimize for fast installation.
17539fast_install=$enable_fast_install
17540
17541# The host system.
17542host_alias=$host_alias
17543host=$host
17544
17545# An echo program that does not interpret backslashes.
17546echo=$lt_echo
17547
17548# The archiver.
17549AR=$lt_AR
17550AR_FLAGS=$lt_AR_FLAGS
17551
17552# A C compiler.
17553LTCC=$lt_LTCC
17554
17555# A language-specific compiler.
17556CC=$lt_compiler_GCJ
17557
17558# Is the compiler the GNU C compiler?
17559with_gcc=$GCC_GCJ
17560
17561# An ERE matcher.
17562EGREP=$lt_EGREP
17563
17564# The linker used to build libraries.
17565LD=$lt_LD_GCJ
17566
17567# Whether we need hard or soft links.
17568LN_S=$lt_LN_S
17569
17570# A BSD-compatible nm program.
17571NM=$lt_NM
17572
17573# A symbol stripping program
17574STRIP=$lt_STRIP
17575
17576# Used to examine libraries when file_magic_cmd begins "file"
17577MAGIC_CMD=$MAGIC_CMD
17578
17579# Used on cygwin: DLL creation program.
17580DLLTOOL="$DLLTOOL"
17581
17582# Used on cygwin: object dumper.
17583OBJDUMP="$OBJDUMP"
17584
17585# Used on cygwin: assembler.
17586AS="$AS"
17587
17588# The name of the directory that contains temporary libtool files.
17589objdir=$objdir
17590
17591# How to create reloadable object files.
17592reload_flag=$lt_reload_flag
17593reload_cmds=$lt_reload_cmds
17594
17595# How to pass a linker flag through the compiler.
17596wl=$lt_lt_prog_compiler_wl_GCJ
17597
17598# Object file suffix (normally "o").
17599objext="$ac_objext"
17600
17601# Old archive suffix (normally "a").
17602libext="$libext"
17603
17604# Shared library suffix (normally ".so").
17605shrext='$shrext'
17606
17607# Executable file suffix (normally "").
17608exeext="$exeext"
17609
17610# Additional compiler flags for building library objects.
17611pic_flag=$lt_lt_prog_compiler_pic_GCJ
17612pic_mode=$pic_mode
17613
17614# What is the maximum length of a command?
17615max_cmd_len=$lt_cv_sys_max_cmd_len
17616
17617# Does compiler simultaneously support -c and -o options?
17618compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17619
17620# Must we lock files when doing compilation ?
17621need_locks=$lt_need_locks
17622
17623# Do we need the lib prefix for modules?
17624need_lib_prefix=$need_lib_prefix
17625
17626# Do we need a version for libraries?
17627need_version=$need_version
17628
17629# Whether dlopen is supported.
17630dlopen_support=$enable_dlopen
17631
17632# Whether dlopen of programs is supported.
17633dlopen_self=$enable_dlopen_self
17634
17635# Whether dlopen of statically linked programs is supported.
17636dlopen_self_static=$enable_dlopen_self_static
17637
17638# Compiler flag to prevent dynamic linking.
17639link_static_flag=$lt_lt_prog_compiler_static_GCJ
17640
17641# Compiler flag to turn off builtin functions.
17642no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17643
17644# Compiler flag to allow reflexive dlopens.
17645export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17646
17647# Compiler flag to generate shared objects directly from archives.
17648whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17649
17650# Compiler flag to generate thread-safe objects.
17651thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17652
17653# Library versioning type.
17654version_type=$version_type
17655
17656# Format of library name prefix.
17657libname_spec=$lt_libname_spec
17658
17659# List of archive names. First name is the real one, the rest are links.
17660# The last name is the one that the linker finds with -lNAME.
17661library_names_spec=$lt_library_names_spec
17662
17663# The coded name of the library, if different from the real name.
17664soname_spec=$lt_soname_spec
17665
17666# Commands used to build and install an old-style archive.
17667RANLIB=$lt_RANLIB
17668old_archive_cmds=$lt_old_archive_cmds_GCJ
17669old_postinstall_cmds=$lt_old_postinstall_cmds
17670old_postuninstall_cmds=$lt_old_postuninstall_cmds
17671
17672# Create an old-style archive from a shared archive.
17673old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17674
17675# Create a temporary old-style archive to link instead of a shared archive.
17676old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17677
17678# Commands used to build and install a shared archive.
17679archive_cmds=$lt_archive_cmds_GCJ
17680archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17681postinstall_cmds=$lt_postinstall_cmds
17682postuninstall_cmds=$lt_postuninstall_cmds
17683
17684# Commands used to build a loadable module (assumed same as above if empty)
17685module_cmds=$lt_module_cmds_GCJ
17686module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17687
17688# Commands to strip libraries.
17689old_striplib=$lt_old_striplib
17690striplib=$lt_striplib
17691
17692# Dependencies to place before the objects being linked to create a
17693# shared library.
17694predep_objects=$lt_predep_objects_GCJ
17695
17696# Dependencies to place after the objects being linked to create a
17697# shared library.
17698postdep_objects=$lt_postdep_objects_GCJ
17699
17700# Dependencies to place before the objects being linked to create a
17701# shared library.
17702predeps=$lt_predeps_GCJ
17703
17704# Dependencies to place after the objects being linked to create a
17705# shared library.
17706postdeps=$lt_postdeps_GCJ
17707
17708# The library search path used internally by the compiler when linking
17709# a shared library.
17710compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17711
17712# Method to check whether dependent libraries are shared objects.
17713deplibs_check_method=$lt_deplibs_check_method
17714
17715# Command to use when deplibs_check_method == file_magic.
17716file_magic_cmd=$lt_file_magic_cmd
17717
17718# Flag that allows shared libraries with undefined symbols to be built.
17719allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17720
17721# Flag that forces no undefined symbols.
17722no_undefined_flag=$lt_no_undefined_flag_GCJ
17723
17724# Commands used to finish a libtool library installation in a directory.
17725finish_cmds=$lt_finish_cmds
17726
17727# Same as above, but a single script fragment to be evaled but not shown.
17728finish_eval=$lt_finish_eval
17729
17730# Take the output of nm and produce a listing of raw symbols and C names.
17731global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17732
17733# Transform the output of nm in a proper C declaration
17734global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17735
17736# Transform the output of nm in a C name address pair
17737global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17738
17739# This is the shared library runtime path variable.
17740runpath_var=$runpath_var
17741
17742# This is the shared library path variable.
17743shlibpath_var=$shlibpath_var
17744
17745# Is shlibpath searched before the hard-coded library search path?
17746shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17747
17748# How to hardcode a shared library path into an executable.
17749hardcode_action=$hardcode_action_GCJ
17750
17751# Whether we should hardcode library paths into libraries.
17752hardcode_into_libs=$hardcode_into_libs
17753
17754# Flag to hardcode \$libdir into a binary during linking.
17755# This must work even if \$libdir does not exist.
17756hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17757
17758# If ld is used when linking, flag to hardcode \$libdir into
17759# a binary during linking. This must work even if \$libdir does
17760# not exist.
17761hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17762
17763# Whether we need a single -rpath flag with a separated argument.
17764hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17765
17766# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17767# resulting binary.
17768hardcode_direct=$hardcode_direct_GCJ
17769
17770# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17771# resulting binary.
17772hardcode_minus_L=$hardcode_minus_L_GCJ
17773
17774# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17775# the resulting binary.
17776hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17777
17778# Set to yes if building a shared library automatically hardcodes DIR into the library
17779# and all subsequent libraries and executables linked against it.
17780hardcode_automatic=$hardcode_automatic_GCJ
17781
17782# Variables whose values should be saved in libtool wrapper scripts and
17783# restored at relink time.
17784variables_saved_for_relink="$variables_saved_for_relink"
17785
17786# Whether libtool must link a program against all its dependency libraries.
17787link_all_deplibs=$link_all_deplibs_GCJ
17788
17789# Compile-time system search path for libraries
17790sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17791
17792# Run-time system search path for libraries
17793sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17794
17795# Fix the shell variable \$srcfile for the compiler.
17796fix_srcfile_path="$fix_srcfile_path_GCJ"
17797
17798# Set to yes if exported symbols are required.
17799always_export_symbols=$always_export_symbols_GCJ
17800
17801# The commands to list exported symbols.
17802export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17803
17804# The commands to extract the exported symbol list from a shared archive.
17805extract_expsyms_cmds=$lt_extract_expsyms_cmds
17806
17807# Symbols that should not be listed in the preloaded symbols.
17808exclude_expsyms=$lt_exclude_expsyms_GCJ
17809
17810# Symbols that must always be exported.
17811include_expsyms=$lt_include_expsyms_GCJ
17812
17813# ### END LIBTOOL TAG CONFIG: $tagname
17814
17815__EOF__
17816
17817
17818else
17819 # If there is no Makefile yet, we rely on a make rule to execute
17820 # `config.status --recheck' to rerun these tests and create the
17821 # libtool script then.
17822 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17823 if test -f "$ltmain_in"; then
17824 test -f Makefile && make "$ltmain"
17825 fi
17826fi
17827
17828
17829ac_ext=c
17830ac_cpp='$CPP $CPPFLAGS'
17831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17833ac_compiler_gnu=$ac_cv_c_compiler_gnu
17834
17835CC="$lt_save_CC"
17836
17837 else
17838 tagname=""
17839 fi
17840 ;;
17841
17842 RC)
17843
17844
17845
17846# Source file extension for RC test sources.
17847ac_ext=rc
17848
17849# Object file extension for compiled RC test sources.
17850objext=o
17851objext_RC=$objext
17852
17853# Code to be used in simple compile tests
17854lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17855
17856# Code to be used in simple link tests
17857lt_simple_link_test_code="$lt_simple_compile_test_code"
17858
17859# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17860
17861# If no C compiler was specified, use CC.
17862LTCC=${LTCC-"$CC"}
17863
17864# Allow CC to be a program name with arguments.
17865compiler=$CC
17866
17867
17868# Allow CC to be a program name with arguments.
17869lt_save_CC="$CC"
17870CC=${RC-"windres"}
17871compiler=$CC
17872compiler_RC=$CC
17873lt_cv_prog_compiler_c_o_RC=yes
17874
17875# The else clause should only fire when bootstrapping the
17876# libtool distribution, otherwise you forgot to ship ltmain.sh
17877# with your package, and you will get complaints that there are
17878# no rules to generate ltmain.sh.
17879if test -f "$ltmain"; then
17880 # See if we are running on zsh, and set the options which allow our commands through
17881 # without removal of \ escapes.
17882 if test -n "${ZSH_VERSION+set}" ; then
17883 setopt NO_GLOB_SUBST
17884 fi
17885 # Now quote all the things that may contain metacharacters while being
17886 # careful not to overquote the AC_SUBSTed values. We take copies of the
17887 # variables and quote the copies for generation of the libtool script.
17888 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17889 SED SHELL STRIP \
17890 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17891 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17892 deplibs_check_method reload_flag reload_cmds need_locks \
17893 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17894 lt_cv_sys_global_symbol_to_c_name_address \
17895 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17896 old_postinstall_cmds old_postuninstall_cmds \
17897 compiler_RC \
17898 CC_RC \
17899 LD_RC \
17900 lt_prog_compiler_wl_RC \
17901 lt_prog_compiler_pic_RC \
17902 lt_prog_compiler_static_RC \
17903 lt_prog_compiler_no_builtin_flag_RC \
17904 export_dynamic_flag_spec_RC \
17905 thread_safe_flag_spec_RC \
17906 whole_archive_flag_spec_RC \
17907 enable_shared_with_static_runtimes_RC \
17908 old_archive_cmds_RC \
17909 old_archive_from_new_cmds_RC \
17910 predep_objects_RC \
17911 postdep_objects_RC \
17912 predeps_RC \
17913 postdeps_RC \
17914 compiler_lib_search_path_RC \
17915 archive_cmds_RC \
17916 archive_expsym_cmds_RC \
17917 postinstall_cmds_RC \
17918 postuninstall_cmds_RC \
17919 old_archive_from_expsyms_cmds_RC \
17920 allow_undefined_flag_RC \
17921 no_undefined_flag_RC \
17922 export_symbols_cmds_RC \
17923 hardcode_libdir_flag_spec_RC \
17924 hardcode_libdir_flag_spec_ld_RC \
17925 hardcode_libdir_separator_RC \
17926 hardcode_automatic_RC \
17927 module_cmds_RC \
17928 module_expsym_cmds_RC \
17929 lt_cv_prog_compiler_c_o_RC \
17930 exclude_expsyms_RC \
17931 include_expsyms_RC; do
17932
17933 case $var in
17934 old_archive_cmds_RC | \
17935 old_archive_from_new_cmds_RC | \
17936 archive_cmds_RC | \
17937 archive_expsym_cmds_RC | \
17938 module_cmds_RC | \
17939 module_expsym_cmds_RC | \
17940 old_archive_from_expsyms_cmds_RC | \
17941 export_symbols_cmds_RC | \
17942 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17943 postinstall_cmds | postuninstall_cmds | \
17944 old_postinstall_cmds | old_postuninstall_cmds | \
17945 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17946 # Double-quote double-evaled strings.
17947 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17948 ;;
17949 *)
17950 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17951 ;;
17952 esac
17953 done
17954
17955 case $lt_echo in
17956 *'\$0 --fallback-echo"')
17957 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17958 ;;
17959 esac
17960
17961cfgfile="$ofile"
17962
17963 cat <<__EOF__ >> "$cfgfile"
17964# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17965
17966# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17967
17968# Shell to use when invoking shell scripts.
17969SHELL=$lt_SHELL
17970
17971# Whether or not to build shared libraries.
17972build_libtool_libs=$enable_shared
17973
17974# Whether or not to build static libraries.
17975build_old_libs=$enable_static
17976
17977# Whether or not to add -lc for building shared libraries.
17978build_libtool_need_lc=$archive_cmds_need_lc_RC
17979
17980# Whether or not to disallow shared libs when runtime libs are static
17981allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17982
17983# Whether or not to optimize for fast installation.
17984fast_install=$enable_fast_install
17985
17986# The host system.
17987host_alias=$host_alias
17988host=$host
17989
17990# An echo program that does not interpret backslashes.
17991echo=$lt_echo
17992
17993# The archiver.
17994AR=$lt_AR
17995AR_FLAGS=$lt_AR_FLAGS
17996
17997# A C compiler.
17998LTCC=$lt_LTCC
17999
18000# A language-specific compiler.
18001CC=$lt_compiler_RC
18002
18003# Is the compiler the GNU C compiler?
18004with_gcc=$GCC_RC
18005
18006# An ERE matcher.
18007EGREP=$lt_EGREP
18008
18009# The linker used to build libraries.
18010LD=$lt_LD_RC
18011
18012# Whether we need hard or soft links.
18013LN_S=$lt_LN_S
18014
18015# A BSD-compatible nm program.
18016NM=$lt_NM
18017
18018# A symbol stripping program
18019STRIP=$lt_STRIP
18020
18021# Used to examine libraries when file_magic_cmd begins "file"
18022MAGIC_CMD=$MAGIC_CMD
18023
18024# Used on cygwin: DLL creation program.
18025DLLTOOL="$DLLTOOL"
18026
18027# Used on cygwin: object dumper.
18028OBJDUMP="$OBJDUMP"
18029
18030# Used on cygwin: assembler.
18031AS="$AS"
18032
18033# The name of the directory that contains temporary libtool files.
18034objdir=$objdir
18035
18036# How to create reloadable object files.
18037reload_flag=$lt_reload_flag
18038reload_cmds=$lt_reload_cmds
18039
18040# How to pass a linker flag through the compiler.
18041wl=$lt_lt_prog_compiler_wl_RC
18042
18043# Object file suffix (normally "o").
18044objext="$ac_objext"
18045
18046# Old archive suffix (normally "a").
18047libext="$libext"
18048
18049# Shared library suffix (normally ".so").
18050shrext='$shrext'
18051
18052# Executable file suffix (normally "").
18053exeext="$exeext"
18054
18055# Additional compiler flags for building library objects.
18056pic_flag=$lt_lt_prog_compiler_pic_RC
18057pic_mode=$pic_mode
18058
18059# What is the maximum length of a command?
18060max_cmd_len=$lt_cv_sys_max_cmd_len
18061
18062# Does compiler simultaneously support -c and -o options?
18063compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18064
18065# Must we lock files when doing compilation ?
18066need_locks=$lt_need_locks
18067
18068# Do we need the lib prefix for modules?
18069need_lib_prefix=$need_lib_prefix
18070
18071# Do we need a version for libraries?
18072need_version=$need_version
18073
18074# Whether dlopen is supported.
18075dlopen_support=$enable_dlopen
18076
18077# Whether dlopen of programs is supported.
18078dlopen_self=$enable_dlopen_self
18079
18080# Whether dlopen of statically linked programs is supported.
18081dlopen_self_static=$enable_dlopen_self_static
18082
18083# Compiler flag to prevent dynamic linking.
18084link_static_flag=$lt_lt_prog_compiler_static_RC
18085
18086# Compiler flag to turn off builtin functions.
18087no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18088
18089# Compiler flag to allow reflexive dlopens.
18090export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18091
18092# Compiler flag to generate shared objects directly from archives.
18093whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18094
18095# Compiler flag to generate thread-safe objects.
18096thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18097
18098# Library versioning type.
18099version_type=$version_type
18100
18101# Format of library name prefix.
18102libname_spec=$lt_libname_spec
18103
18104# List of archive names. First name is the real one, the rest are links.
18105# The last name is the one that the linker finds with -lNAME.
18106library_names_spec=$lt_library_names_spec
18107
18108# The coded name of the library, if different from the real name.
18109soname_spec=$lt_soname_spec
18110
18111# Commands used to build and install an old-style archive.
18112RANLIB=$lt_RANLIB
18113old_archive_cmds=$lt_old_archive_cmds_RC
18114old_postinstall_cmds=$lt_old_postinstall_cmds
18115old_postuninstall_cmds=$lt_old_postuninstall_cmds
18116
18117# Create an old-style archive from a shared archive.
18118old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18119
18120# Create a temporary old-style archive to link instead of a shared archive.
18121old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18122
18123# Commands used to build and install a shared archive.
18124archive_cmds=$lt_archive_cmds_RC
18125archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18126postinstall_cmds=$lt_postinstall_cmds
18127postuninstall_cmds=$lt_postuninstall_cmds
18128
18129# Commands used to build a loadable module (assumed same as above if empty)
18130module_cmds=$lt_module_cmds_RC
18131module_expsym_cmds=$lt_module_expsym_cmds_RC
18132
18133# Commands to strip libraries.
18134old_striplib=$lt_old_striplib
18135striplib=$lt_striplib
18136
18137# Dependencies to place before the objects being linked to create a
18138# shared library.
18139predep_objects=$lt_predep_objects_RC
18140
18141# Dependencies to place after the objects being linked to create a
18142# shared library.
18143postdep_objects=$lt_postdep_objects_RC
18144
18145# Dependencies to place before the objects being linked to create a
18146# shared library.
18147predeps=$lt_predeps_RC
18148
18149# Dependencies to place after the objects being linked to create a
18150# shared library.
18151postdeps=$lt_postdeps_RC
18152
18153# The library search path used internally by the compiler when linking
18154# a shared library.
18155compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18156
18157# Method to check whether dependent libraries are shared objects.
18158deplibs_check_method=$lt_deplibs_check_method
18159
18160# Command to use when deplibs_check_method == file_magic.
18161file_magic_cmd=$lt_file_magic_cmd
18162
18163# Flag that allows shared libraries with undefined symbols to be built.
18164allow_undefined_flag=$lt_allow_undefined_flag_RC
18165
18166# Flag that forces no undefined symbols.
18167no_undefined_flag=$lt_no_undefined_flag_RC
18168
18169# Commands used to finish a libtool library installation in a directory.
18170finish_cmds=$lt_finish_cmds
18171
18172# Same as above, but a single script fragment to be evaled but not shown.
18173finish_eval=$lt_finish_eval
18174
18175# Take the output of nm and produce a listing of raw symbols and C names.
18176global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18177
18178# Transform the output of nm in a proper C declaration
18179global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18180
18181# Transform the output of nm in a C name address pair
18182global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18183
18184# This is the shared library runtime path variable.
18185runpath_var=$runpath_var
18186
18187# This is the shared library path variable.
18188shlibpath_var=$shlibpath_var
18189
18190# Is shlibpath searched before the hard-coded library search path?
18191shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18192
18193# How to hardcode a shared library path into an executable.
18194hardcode_action=$hardcode_action_RC
18195
18196# Whether we should hardcode library paths into libraries.
18197hardcode_into_libs=$hardcode_into_libs
18198
18199# Flag to hardcode \$libdir into a binary during linking.
18200# This must work even if \$libdir does not exist.
18201hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18202
18203# If ld is used when linking, flag to hardcode \$libdir into
18204# a binary during linking. This must work even if \$libdir does
18205# not exist.
18206hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18207
18208# Whether we need a single -rpath flag with a separated argument.
18209hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18210
18211# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18212# resulting binary.
18213hardcode_direct=$hardcode_direct_RC
18214
18215# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18216# resulting binary.
18217hardcode_minus_L=$hardcode_minus_L_RC
18218
18219# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18220# the resulting binary.
18221hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18222
18223# Set to yes if building a shared library automatically hardcodes DIR into the library
18224# and all subsequent libraries and executables linked against it.
18225hardcode_automatic=$hardcode_automatic_RC
18226
18227# Variables whose values should be saved in libtool wrapper scripts and
18228# restored at relink time.
18229variables_saved_for_relink="$variables_saved_for_relink"
18230
18231# Whether libtool must link a program against all its dependency libraries.
18232link_all_deplibs=$link_all_deplibs_RC
18233
18234# Compile-time system search path for libraries
18235sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18236
18237# Run-time system search path for libraries
18238sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18239
18240# Fix the shell variable \$srcfile for the compiler.
18241fix_srcfile_path="$fix_srcfile_path_RC"
18242
18243# Set to yes if exported symbols are required.
18244always_export_symbols=$always_export_symbols_RC
18245
18246# The commands to list exported symbols.
18247export_symbols_cmds=$lt_export_symbols_cmds_RC
18248
18249# The commands to extract the exported symbol list from a shared archive.
18250extract_expsyms_cmds=$lt_extract_expsyms_cmds
18251
18252# Symbols that should not be listed in the preloaded symbols.
18253exclude_expsyms=$lt_exclude_expsyms_RC
18254
18255# Symbols that must always be exported.
18256include_expsyms=$lt_include_expsyms_RC
18257
18258# ### END LIBTOOL TAG CONFIG: $tagname
18259
18260__EOF__
18261
18262
18263else
18264 # If there is no Makefile yet, we rely on a make rule to execute
18265 # `config.status --recheck' to rerun these tests and create the
18266 # libtool script then.
18267 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18268 if test -f "$ltmain_in"; then
18269 test -f Makefile && make "$ltmain"
18270 fi
18271fi
18272
18273
18274ac_ext=c
18275ac_cpp='$CPP $CPPFLAGS'
18276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18278ac_compiler_gnu=$ac_cv_c_compiler_gnu
18279
18280CC="$lt_save_CC"
18281
18282 ;;
18283
18284 *)
18285 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18286echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18287 { (exit 1); exit 1; }; }
18288 ;;
18289 esac
18290
18291 # Append the new tag name to the list of available tags.
18292 if test -n "$tagname" ; then
18293 available_tags="$available_tags $tagname"
18294 fi
18295 fi
18296 done
18297 IFS="$lt_save_ifs"
18298
18299 # Now substitute the updated list of available tags.
18300 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18301 mv "${ofile}T" "$ofile"
18302 chmod +x "$ofile"
18303 else
18304 rm -f "${ofile}T"
18305 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18306echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18307 { (exit 1); exit 1; }; }
18308 fi
18309fi
drh71eb93e2001-09-28 01:34:43 +000018310
drh71eb93e2001-09-28 01:34:43 +000018311
drh71eb93e2001-09-28 01:34:43 +000018312
18313# This can be used to rebuild libtool when needed
18314LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18315
18316# Always use our own libtool.
18317LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18318
18319# Prevent multiple expansion
18320
a.rottmann84e63352003-03-24 09:42:16 +000018321
a.rottmann9bc8b932004-02-29 15:18:31 +000018322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
drh71eb93e2001-09-28 01:34:43 +000018340# Find a good install program. We prefer a C program (faster),
18341# so one script is as good as another. But avoid the broken or
18342# incompatible versions:
18343# SysV /etc/install, /usr/sbin/install
18344# SunOS /usr/etc/install
18345# IRIX /sbin/install
18346# AIX /bin/install
18347# AmigaOS /C/install, which installs bootblocks on floppy discs
18348# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18349# AFS /usr/afsws/bin/install, which mishandles nonexistent args
18350# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +000018351# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +000018352# ./install, which can be erroneously created by make from ./install.sh.
a.rottmann84e63352003-03-24 09:42:16 +000018353echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18354echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +000018355if test -z "$INSTALL"; then
18356if test "${ac_cv_path_install+set}" = set; then
18357 echo $ECHO_N "(cached) $ECHO_C" >&6
18358else
a.rottmann84e63352003-03-24 09:42:16 +000018359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18360for as_dir in $PATH
18361do
18362 IFS=$as_save_IFS
18363 test -z "$as_dir" && as_dir=.
18364 # Account for people who put trailing slashes in PATH elements.
18365case $as_dir/ in
18366 ./ | .// | /cC/* | \
18367 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
a.rottmann964dbb12004-02-26 19:47:42 +000018368 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a.rottmann84e63352003-03-24 09:42:16 +000018369 /usr/ucb/* ) ;;
18370 *)
18371 # OSF1 and SCO ODT 3.0 have their own names for install.
18372 # Don't use installbsd from OSF since it installs stuff as root
18373 # by default.
18374 for ac_prog in ginstall scoinst install; do
18375 for ac_exec_ext in '' $ac_executable_extensions; do
a.rottmann964dbb12004-02-26 19:47:42 +000018376 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
18377 if test $ac_prog = install &&
18378 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18379 # AIX install. It has an incompatible calling convention.
18380 :
18381 elif test $ac_prog = install &&
18382 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18383 # program-specific install script used by HP pwplus--don't use.
18384 :
18385 else
18386 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18387 break 3
18388 fi
18389 fi
drh71eb93e2001-09-28 01:34:43 +000018390 done
a.rottmann84e63352003-03-24 09:42:16 +000018391 done
18392 ;;
18393esac
18394done
18395
drh71eb93e2001-09-28 01:34:43 +000018396
18397fi
18398 if test "${ac_cv_path_install+set}" = set; then
18399 INSTALL=$ac_cv_path_install
18400 else
18401 # As a last resort, use the slow shell script. We don't cache a
18402 # path for INSTALL within a source directory, because that will
18403 # break other packages using the cache if that directory is
18404 # removed, or if the path is relative.
18405 INSTALL=$ac_install_sh
18406 fi
18407fi
a.rottmann84e63352003-03-24 09:42:16 +000018408echo "$as_me:$LINENO: result: $INSTALL" >&5
drh71eb93e2001-09-28 01:34:43 +000018409echo "${ECHO_T}$INSTALL" >&6
18410
18411# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18412# It thinks the first close brace ends the variable substitution.
18413test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18414
18415test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18416
18417test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18418
drhf1878b42006-01-23 18:06:52 +000018419for ac_prog in gawk mawk nawk awk
18420do
18421 # Extract the first word of "$ac_prog", so it can be a program name with args.
18422set dummy $ac_prog; ac_word=$2
18423echo "$as_me:$LINENO: checking for $ac_word" >&5
18424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18425if test "${ac_cv_prog_AWK+set}" = set; then
18426 echo $ECHO_N "(cached) $ECHO_C" >&6
18427else
18428 if test -n "$AWK"; then
18429 ac_cv_prog_AWK="$AWK" # Let the user override the test.
18430else
18431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18432for as_dir in $PATH
18433do
18434 IFS=$as_save_IFS
18435 test -z "$as_dir" && as_dir=.
18436 for ac_exec_ext in '' $ac_executable_extensions; do
18437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18438 ac_cv_prog_AWK="$ac_prog"
18439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18440 break 2
18441 fi
18442done
18443done
18444
18445fi
18446fi
18447AWK=$ac_cv_prog_AWK
18448if test -n "$AWK"; then
18449 echo "$as_me:$LINENO: result: $AWK" >&5
18450echo "${ECHO_T}$AWK" >&6
18451else
18452 echo "$as_me:$LINENO: result: no" >&5
18453echo "${ECHO_T}no" >&6
18454fi
18455
18456 test -n "$AWK" && break
18457done
18458
a.rottmann84e63352003-03-24 09:42:16 +000018459
drh75897232000-05-29 14:26:00 +000018460#########
18461# Set up an appropriate program prefix
18462#
18463if test "$program_prefix" = "NONE"; then
18464 program_prefix=""
18465fi
18466
a.rottmann84e63352003-03-24 09:42:16 +000018467
drh4b2266a2004-11-27 15:52:16 +000018468VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
18469echo "Version set to $VERSION"
18470
18471RELEASE=`cat $srcdir/VERSION`
18472echo "Release set to $RELEASE"
a.rottmann84e63352003-03-24 09:42:16 +000018473
danielk197799ba19e2005-02-05 07:33:34 +000018474VERSION_NUMBER=`cat $srcdir/VERSION \
drh26d0e2a2005-07-06 13:51:27 +000018475 | sed 's/[^0-9]/ /g' \
danielk197799ba19e2005-02-05 07:33:34 +000018476 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
danielk197799ba19e2005-02-05 07:33:34 +000018477echo "Version number set to $VERSION_NUMBER"
a.rottmann84e63352003-03-24 09:42:16 +000018478
drh26d0e2a2005-07-06 13:51:27 +000018479
drh75897232000-05-29 14:26:00 +000018480#########
18481# Check to see if the --with-hints=FILE option is used. If there is none,
18482# then check for a files named "$host.hints" and ../$hosts.hints where
18483# $host is the hostname of the build system. If still no hints are
18484# found, try looking in $system.hints and ../$system.hints where
18485# $system is the result of uname -s.
18486#
drh71eb93e2001-09-28 01:34:43 +000018487
drh75897232000-05-29 14:26:00 +000018488# Check whether --with-hints or --without-hints was given.
18489if test "${with_hints+set}" = set; then
18490 withval="$with_hints"
18491 hints=$withval
drh71eb93e2001-09-28 01:34:43 +000018492fi;
drh75897232000-05-29 14:26:00 +000018493if test "$hints" = ""; then
18494 host=`hostname | sed 's/\..*//'`
18495 if test -r $host.hints; then
18496 hints=$host.hints
18497 else
18498 if test -r ../$host.hints; then
18499 hints=../$host.hints
18500 fi
18501 fi
18502fi
18503if test "$hints" = ""; then
18504 sys=`uname -s`
18505 if test -r $sys.hints; then
18506 hints=$sys.hints
18507 else
18508 if test -r ../$sys.hints; then
18509 hints=../$sys.hints
18510 fi
18511 fi
18512fi
18513if test "$hints" != ""; then
a.rottmann84e63352003-03-24 09:42:16 +000018514 echo "$as_me:$LINENO: result: reading hints from $hints" >&5
drh71eb93e2001-09-28 01:34:43 +000018515echo "${ECHO_T}reading hints from $hints" >&6
drh75897232000-05-29 14:26:00 +000018516 . $hints
18517fi
18518
18519#########
18520# Locate a compiler for the build machine. This compiler should
18521# generate command-line programs that run on the build machine.
18522#
18523default_build_cflags="-g"
18524if test "$config_BUILD_CC" = ""; then
drh71eb93e2001-09-28 01:34:43 +000018525 ac_ext=c
18526ac_cpp='$CPP $CPPFLAGS'
18527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18529ac_compiler_gnu=$ac_cv_c_compiler_gnu
18530if test -n "$ac_tool_prefix"; then
18531 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18532set dummy ${ac_tool_prefix}gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018533echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18535if test "${ac_cv_prog_CC+set}" = set; then
18536 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000018537else
18538 if test -n "$CC"; then
18539 ac_cv_prog_CC="$CC" # Let the user override the test.
18540else
a.rottmann84e63352003-03-24 09:42:16 +000018541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18542for as_dir in $PATH
18543do
18544 IFS=$as_save_IFS
18545 test -z "$as_dir" && as_dir=.
18546 for ac_exec_ext in '' $ac_executable_extensions; do
18547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18548 ac_cv_prog_CC="${ac_tool_prefix}gcc"
18549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18550 break 2
18551 fi
18552done
drh71eb93e2001-09-28 01:34:43 +000018553done
18554
drh75897232000-05-29 14:26:00 +000018555fi
18556fi
drh71eb93e2001-09-28 01:34:43 +000018557CC=$ac_cv_prog_CC
drh75897232000-05-29 14:26:00 +000018558if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018559 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018560echo "${ECHO_T}$CC" >&6
drh75897232000-05-29 14:26:00 +000018561else
a.rottmann84e63352003-03-24 09:42:16 +000018562 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018563echo "${ECHO_T}no" >&6
18564fi
18565
18566fi
18567if test -z "$ac_cv_prog_CC"; then
18568 ac_ct_CC=$CC
18569 # Extract the first word of "gcc", so it can be a program name with args.
18570set dummy gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018571echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18573if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18574 echo $ECHO_N "(cached) $ECHO_C" >&6
18575else
18576 if test -n "$ac_ct_CC"; then
18577 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18578else
a.rottmann84e63352003-03-24 09:42:16 +000018579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18580for as_dir in $PATH
18581do
18582 IFS=$as_save_IFS
18583 test -z "$as_dir" && as_dir=.
18584 for ac_exec_ext in '' $ac_executable_extensions; do
18585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18586 ac_cv_prog_ac_ct_CC="gcc"
18587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18588 break 2
18589 fi
18590done
drh71eb93e2001-09-28 01:34:43 +000018591done
18592
18593fi
18594fi
18595ac_ct_CC=$ac_cv_prog_ac_ct_CC
18596if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018597 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018598echo "${ECHO_T}$ac_ct_CC" >&6
18599else
a.rottmann84e63352003-03-24 09:42:16 +000018600 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018601echo "${ECHO_T}no" >&6
18602fi
18603
18604 CC=$ac_ct_CC
18605else
18606 CC="$ac_cv_prog_CC"
drh75897232000-05-29 14:26:00 +000018607fi
18608
18609if test -z "$CC"; then
drh71eb93e2001-09-28 01:34:43 +000018610 if test -n "$ac_tool_prefix"; then
18611 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18612set dummy ${ac_tool_prefix}cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018613echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18615if test "${ac_cv_prog_CC+set}" = set; then
18616 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000018617else
18618 if test -n "$CC"; then
18619 ac_cv_prog_CC="$CC" # Let the user override the test.
18620else
a.rottmann84e63352003-03-24 09:42:16 +000018621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18622for as_dir in $PATH
18623do
18624 IFS=$as_save_IFS
18625 test -z "$as_dir" && as_dir=.
18626 for ac_exec_ext in '' $ac_executable_extensions; do
18627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18628 ac_cv_prog_CC="${ac_tool_prefix}cc"
18629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18630 break 2
18631 fi
18632done
drh71eb93e2001-09-28 01:34:43 +000018633done
18634
18635fi
18636fi
18637CC=$ac_cv_prog_CC
18638if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018639 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018640echo "${ECHO_T}$CC" >&6
18641else
a.rottmann84e63352003-03-24 09:42:16 +000018642 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018643echo "${ECHO_T}no" >&6
18644fi
18645
18646fi
18647if test -z "$ac_cv_prog_CC"; then
18648 ac_ct_CC=$CC
18649 # Extract the first word of "cc", so it can be a program name with args.
18650set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018651echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18653if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18654 echo $ECHO_N "(cached) $ECHO_C" >&6
18655else
18656 if test -n "$ac_ct_CC"; then
18657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18658else
a.rottmann84e63352003-03-24 09:42:16 +000018659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18660for as_dir in $PATH
18661do
18662 IFS=$as_save_IFS
18663 test -z "$as_dir" && as_dir=.
18664 for ac_exec_ext in '' $ac_executable_extensions; do
18665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18666 ac_cv_prog_ac_ct_CC="cc"
18667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18668 break 2
18669 fi
18670done
drh71eb93e2001-09-28 01:34:43 +000018671done
18672
18673fi
18674fi
18675ac_ct_CC=$ac_cv_prog_ac_ct_CC
18676if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018677 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018678echo "${ECHO_T}$ac_ct_CC" >&6
18679else
a.rottmann84e63352003-03-24 09:42:16 +000018680 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018681echo "${ECHO_T}no" >&6
18682fi
18683
18684 CC=$ac_ct_CC
18685else
18686 CC="$ac_cv_prog_CC"
18687fi
18688
18689fi
18690if test -z "$CC"; then
18691 # Extract the first word of "cc", so it can be a program name with args.
18692set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018693echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18695if test "${ac_cv_prog_CC+set}" = set; then
18696 echo $ECHO_N "(cached) $ECHO_C" >&6
18697else
18698 if test -n "$CC"; then
18699 ac_cv_prog_CC="$CC" # Let the user override the test.
18700else
drh75897232000-05-29 14:26:00 +000018701 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +000018702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18703for as_dir in $PATH
18704do
18705 IFS=$as_save_IFS
18706 test -z "$as_dir" && as_dir=.
18707 for ac_exec_ext in '' $ac_executable_extensions; do
18708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18709 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18710 ac_prog_rejected=yes
18711 continue
18712 fi
18713 ac_cv_prog_CC="cc"
18714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18715 break 2
18716 fi
18717done
drh71eb93e2001-09-28 01:34:43 +000018718done
18719
drh75897232000-05-29 14:26:00 +000018720if test $ac_prog_rejected = yes; then
18721 # We found a bogon in the path, so make sure we never use it.
18722 set dummy $ac_cv_prog_CC
18723 shift
drh71eb93e2001-09-28 01:34:43 +000018724 if test $# != 0; then
drh75897232000-05-29 14:26:00 +000018725 # We chose a different compiler from the bogus one.
18726 # However, it has the same basename, so the bogon will be chosen
18727 # first if we set CC to just the basename; use the full file name.
18728 shift
a.rottmann84e63352003-03-24 09:42:16 +000018729 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh75897232000-05-29 14:26:00 +000018730 fi
18731fi
18732fi
18733fi
drh71eb93e2001-09-28 01:34:43 +000018734CC=$ac_cv_prog_CC
drh75897232000-05-29 14:26:00 +000018735if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018736 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018737echo "${ECHO_T}$CC" >&6
drh75897232000-05-29 14:26:00 +000018738else
a.rottmann84e63352003-03-24 09:42:16 +000018739 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018740echo "${ECHO_T}no" >&6
drh75897232000-05-29 14:26:00 +000018741fi
18742
drh71eb93e2001-09-28 01:34:43 +000018743fi
18744if test -z "$CC"; then
18745 if test -n "$ac_tool_prefix"; then
18746 for ac_prog in cl
18747 do
18748 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18749set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018750echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18752if test "${ac_cv_prog_CC+set}" = set; then
18753 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000018754else
18755 if test -n "$CC"; then
18756 ac_cv_prog_CC="$CC" # Let the user override the test.
18757else
a.rottmann84e63352003-03-24 09:42:16 +000018758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18759for as_dir in $PATH
18760do
18761 IFS=$as_save_IFS
18762 test -z "$as_dir" && as_dir=.
18763 for ac_exec_ext in '' $ac_executable_extensions; do
18764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18765 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18767 break 2
18768 fi
18769done
drh71eb93e2001-09-28 01:34:43 +000018770done
18771
drh75897232000-05-29 14:26:00 +000018772fi
18773fi
drh71eb93e2001-09-28 01:34:43 +000018774CC=$ac_cv_prog_CC
drh75897232000-05-29 14:26:00 +000018775if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018776 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018777echo "${ECHO_T}$CC" >&6
drh75897232000-05-29 14:26:00 +000018778else
a.rottmann84e63352003-03-24 09:42:16 +000018779 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018780echo "${ECHO_T}no" >&6
drh75897232000-05-29 14:26:00 +000018781fi
18782
drh71eb93e2001-09-28 01:34:43 +000018783 test -n "$CC" && break
18784 done
18785fi
18786if test -z "$CC"; then
18787 ac_ct_CC=$CC
18788 for ac_prog in cl
18789do
18790 # Extract the first word of "$ac_prog", so it can be a program name with args.
18791set dummy $ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000018792echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000018793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18794if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18795 echo $ECHO_N "(cached) $ECHO_C" >&6
18796else
18797 if test -n "$ac_ct_CC"; then
18798 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18799else
a.rottmann84e63352003-03-24 09:42:16 +000018800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18801for as_dir in $PATH
18802do
18803 IFS=$as_save_IFS
18804 test -z "$as_dir" && as_dir=.
18805 for ac_exec_ext in '' $ac_executable_extensions; do
18806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18807 ac_cv_prog_ac_ct_CC="$ac_prog"
18808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18809 break 2
18810 fi
18811done
drh71eb93e2001-09-28 01:34:43 +000018812done
drh75897232000-05-29 14:26:00 +000018813
drh71eb93e2001-09-28 01:34:43 +000018814fi
18815fi
18816ac_ct_CC=$ac_cv_prog_ac_ct_CC
18817if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +000018818 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +000018819echo "${ECHO_T}$ac_ct_CC" >&6
18820else
a.rottmann84e63352003-03-24 09:42:16 +000018821 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000018822echo "${ECHO_T}no" >&6
18823fi
drh75897232000-05-29 14:26:00 +000018824
drh71eb93e2001-09-28 01:34:43 +000018825 test -n "$ac_ct_CC" && break
18826done
drh75897232000-05-29 14:26:00 +000018827
drh71eb93e2001-09-28 01:34:43 +000018828 CC=$ac_ct_CC
18829fi
18830
18831fi
18832
a.rottmann84e63352003-03-24 09:42:16 +000018833
18834test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
18835See \`config.log' for more details." >&5
18836echo "$as_me: error: no acceptable C compiler found in \$PATH
18837See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +000018838 { (exit 1); exit 1; }; }
18839
18840# Provide some information about the compiler.
a.rottmann84e63352003-03-24 09:42:16 +000018841echo "$as_me:$LINENO:" \
drh71eb93e2001-09-28 01:34:43 +000018842 "checking for C compiler version" >&5
18843ac_compiler=`set X $ac_compile; echo $2`
a.rottmann84e63352003-03-24 09:42:16 +000018844{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +000018845 (eval $ac_compiler --version </dev/null >&5) 2>&5
18846 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000018847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018848 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +000018849{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +000018850 (eval $ac_compiler -v </dev/null >&5) 2>&5
18851 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000018852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018853 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +000018854{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +000018855 (eval $ac_compiler -V </dev/null >&5) 2>&5
18856 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000018857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018858 (exit $ac_status); }
18859
a.rottmann84e63352003-03-24 09:42:16 +000018860echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000018861echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
18862if test "${ac_cv_c_compiler_gnu+set}" = set; then
18863 echo $ECHO_N "(cached) $ECHO_C" >&6
18864else
18865 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000018866/* confdefs.h. */
18867_ACEOF
18868cat confdefs.h >>conftest.$ac_ext
18869cat >>conftest.$ac_ext <<_ACEOF
18870/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000018871
drh71eb93e2001-09-28 01:34:43 +000018872int
18873main ()
18874{
18875#ifndef __GNUC__
18876 choke me
drh75897232000-05-29 14:26:00 +000018877#endif
drh75897232000-05-29 14:26:00 +000018878
drh71eb93e2001-09-28 01:34:43 +000018879 ;
18880 return 0;
18881}
18882_ACEOF
18883rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000018884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000018885 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000018886 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000018887 grep -v '^ *+' conftest.er1 >conftest.err
18888 rm -f conftest.er1
18889 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000018890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018891 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000018892 { ac_try='test -z "$ac_c_werror_flag"
18893 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000018894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18895 (eval $ac_try) 2>&5
18896 ac_status=$?
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; } &&
18899 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000018900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000018901 (eval $ac_try) 2>&5
18902 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000018903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018904 (exit $ac_status); }; }; then
18905 ac_compiler_gnu=yes
drh75897232000-05-29 14:26:00 +000018906else
drh71eb93e2001-09-28 01:34:43 +000018907 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000018908sed 's/^/| /' conftest.$ac_ext >&5
18909
drh71eb93e2001-09-28 01:34:43 +000018910ac_compiler_gnu=no
drh75897232000-05-29 14:26:00 +000018911fi
a.rottmann964dbb12004-02-26 19:47:42 +000018912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000018913ac_cv_c_compiler_gnu=$ac_compiler_gnu
drh75897232000-05-29 14:26:00 +000018914
drh71eb93e2001-09-28 01:34:43 +000018915fi
a.rottmann84e63352003-03-24 09:42:16 +000018916echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
drh71eb93e2001-09-28 01:34:43 +000018917echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
18918GCC=`test $ac_compiler_gnu = yes && echo yes`
18919ac_test_CFLAGS=${CFLAGS+set}
18920ac_save_CFLAGS=$CFLAGS
18921CFLAGS="-g"
a.rottmann84e63352003-03-24 09:42:16 +000018922echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
drh71eb93e2001-09-28 01:34:43 +000018923echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
18924if test "${ac_cv_prog_cc_g+set}" = set; then
18925 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000018926else
drh71eb93e2001-09-28 01:34:43 +000018927 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000018928/* confdefs.h. */
18929_ACEOF
18930cat confdefs.h >>conftest.$ac_ext
18931cat >>conftest.$ac_ext <<_ACEOF
18932/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +000018933
18934int
18935main ()
18936{
18937
18938 ;
18939 return 0;
18940}
18941_ACEOF
18942rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000018943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000018944 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000018945 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000018946 grep -v '^ *+' conftest.er1 >conftest.err
18947 rm -f conftest.er1
18948 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000018949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018950 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000018951 { ac_try='test -z "$ac_c_werror_flag"
18952 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000018953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18954 (eval $ac_try) 2>&5
18955 ac_status=$?
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 (exit $ac_status); }; } &&
18958 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000018959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000018960 (eval $ac_try) 2>&5
18961 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000018962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000018963 (exit $ac_status); }; }; then
drh75897232000-05-29 14:26:00 +000018964 ac_cv_prog_cc_g=yes
18965else
drh71eb93e2001-09-28 01:34:43 +000018966 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000018967sed 's/^/| /' conftest.$ac_ext >&5
18968
drh71eb93e2001-09-28 01:34:43 +000018969ac_cv_prog_cc_g=no
drh75897232000-05-29 14:26:00 +000018970fi
a.rottmann964dbb12004-02-26 19:47:42 +000018971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh75897232000-05-29 14:26:00 +000018972fi
a.rottmann84e63352003-03-24 09:42:16 +000018973echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
drh71eb93e2001-09-28 01:34:43 +000018974echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
drh75897232000-05-29 14:26:00 +000018975if test "$ac_test_CFLAGS" = set; then
drh71eb93e2001-09-28 01:34:43 +000018976 CFLAGS=$ac_save_CFLAGS
drh75897232000-05-29 14:26:00 +000018977elif test $ac_cv_prog_cc_g = yes; then
18978 if test "$GCC" = yes; then
18979 CFLAGS="-g -O2"
18980 else
18981 CFLAGS="-g"
18982 fi
18983else
18984 if test "$GCC" = yes; then
18985 CFLAGS="-O2"
18986 else
18987 CFLAGS=
18988 fi
18989fi
a.rottmann84e63352003-03-24 09:42:16 +000018990echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
18991echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
18992if test "${ac_cv_prog_cc_stdc+set}" = set; then
18993 echo $ECHO_N "(cached) $ECHO_C" >&6
18994else
18995 ac_cv_prog_cc_stdc=no
18996ac_save_CC=$CC
18997cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000018998/* confdefs.h. */
18999_ACEOF
19000cat confdefs.h >>conftest.$ac_ext
19001cat >>conftest.$ac_ext <<_ACEOF
19002/* end confdefs.h. */
19003#include <stdarg.h>
19004#include <stdio.h>
19005#include <sys/types.h>
19006#include <sys/stat.h>
19007/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19008struct buf { int x; };
19009FILE * (*rcsopen) (struct buf *, struct stat *, int);
19010static char *e (p, i)
19011 char **p;
19012 int i;
19013{
19014 return p[i];
19015}
19016static char *f (char * (*g) (char **, int), char **p, ...)
19017{
19018 char *s;
19019 va_list v;
19020 va_start (v,p);
19021 s = g (p, va_arg (v,int));
19022 va_end (v);
19023 return s;
19024}
a.rottmann964dbb12004-02-26 19:47:42 +000019025
19026/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19027 function prototypes and stuff, but not '\xHH' hex character constants.
19028 These don't provoke an error unfortunately, instead are silently treated
19029 as 'x'. The following induces an error, until -std1 is added to get
19030 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19031 array size at least. It's necessary to write '\x00'==0 to get something
19032 that's true only with -std1. */
19033int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19034
a.rottmann84e63352003-03-24 09:42:16 +000019035int test (int i, double x);
19036struct s1 {int (*f) (int a);};
19037struct s2 {int (*f) (double a);};
19038int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19039int argc;
19040char **argv;
19041int
19042main ()
19043{
19044return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19045 ;
19046 return 0;
19047}
19048_ACEOF
19049# Don't try gcc -ansi; that turns off useful extensions and
19050# breaks some systems' header files.
19051# AIX -qlanglvl=ansi
19052# Ultrix and OSF/1 -std1
19053# HP-UX 10.20 and later -Ae
19054# HP-UX older versions -Aa -D_HPUX_SOURCE
19055# SVR4 -Xc -D__EXTENSIONS__
19056for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19057do
19058 CC="$ac_save_CC $ac_arg"
19059 rm -f conftest.$ac_objext
19060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019061 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +000019062 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019063 grep -v '^ *+' conftest.er1 >conftest.err
19064 rm -f conftest.er1
19065 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019068 { ac_try='test -z "$ac_c_werror_flag"
19069 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19071 (eval $ac_try) 2>&5
19072 ac_status=$?
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); }; } &&
19075 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000019076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19077 (eval $ac_try) 2>&5
19078 ac_status=$?
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); }; }; then
19081 ac_cv_prog_cc_stdc=$ac_arg
19082break
19083else
19084 echo "$as_me: failed program was:" >&5
19085sed 's/^/| /' conftest.$ac_ext >&5
19086
19087fi
a.rottmann964dbb12004-02-26 19:47:42 +000019088rm -f conftest.err conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000019089done
19090rm -f conftest.$ac_ext conftest.$ac_objext
19091CC=$ac_save_CC
19092
19093fi
19094
19095case "x$ac_cv_prog_cc_stdc" in
19096 x|xno)
19097 echo "$as_me:$LINENO: result: none needed" >&5
19098echo "${ECHO_T}none needed" >&6 ;;
19099 *)
19100 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19101echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19102 CC="$CC $ac_cv_prog_cc_stdc" ;;
19103esac
19104
drh71eb93e2001-09-28 01:34:43 +000019105# Some people use a C++ compiler to compile C. Since we use `exit',
19106# in C++ we need to declare it. In case someone uses the same compiler
19107# for both compiling C and C++ we need to have the C++ compiler decide
19108# the declaration of exit, since it's the most demanding environment.
19109cat >conftest.$ac_ext <<_ACEOF
19110#ifndef __cplusplus
19111 choke me
19112#endif
19113_ACEOF
19114rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000019115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019116 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019117 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019118 grep -v '^ *+' conftest.er1 >conftest.err
19119 rm -f conftest.er1
19120 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019122 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019123 { ac_try='test -z "$ac_c_werror_flag"
19124 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19126 (eval $ac_try) 2>&5
19127 ac_status=$?
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); }; } &&
19130 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000019131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000019132 (eval $ac_try) 2>&5
19133 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000019134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019135 (exit $ac_status); }; }; then
19136 for ac_declaration in \
a.rottmann964dbb12004-02-26 19:47:42 +000019137 '' \
drh71eb93e2001-09-28 01:34:43 +000019138 'extern "C" void std::exit (int) throw (); using std::exit;' \
19139 'extern "C" void std::exit (int); using std::exit;' \
19140 'extern "C" void exit (int) throw ();' \
19141 'extern "C" void exit (int);' \
19142 'void exit (int);'
19143do
19144 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019145/* confdefs.h. */
19146_ACEOF
19147cat confdefs.h >>conftest.$ac_ext
19148cat >>conftest.$ac_ext <<_ACEOF
19149/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +000019150$ac_declaration
a.rottmann964dbb12004-02-26 19:47:42 +000019151#include <stdlib.h>
drh71eb93e2001-09-28 01:34:43 +000019152int
19153main ()
19154{
19155exit (42);
19156 ;
19157 return 0;
19158}
19159_ACEOF
19160rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000019161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019162 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019163 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019164 grep -v '^ *+' conftest.er1 >conftest.err
19165 rm -f conftest.er1
19166 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019168 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019169 { ac_try='test -z "$ac_c_werror_flag"
19170 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19172 (eval $ac_try) 2>&5
19173 ac_status=$?
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); }; } &&
19176 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000019177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000019178 (eval $ac_try) 2>&5
19179 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000019180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019181 (exit $ac_status); }; }; then
19182 :
19183else
19184 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019185sed 's/^/| /' conftest.$ac_ext >&5
19186
drh71eb93e2001-09-28 01:34:43 +000019187continue
19188fi
a.rottmann964dbb12004-02-26 19:47:42 +000019189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000019190 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019191/* confdefs.h. */
19192_ACEOF
19193cat confdefs.h >>conftest.$ac_ext
19194cat >>conftest.$ac_ext <<_ACEOF
19195/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +000019196$ac_declaration
19197int
19198main ()
19199{
19200exit (42);
19201 ;
19202 return 0;
19203}
19204_ACEOF
19205rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +000019206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019207 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019208 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019209 grep -v '^ *+' conftest.er1 >conftest.err
19210 rm -f conftest.er1
19211 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019213 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019214 { ac_try='test -z "$ac_c_werror_flag"
19215 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19217 (eval $ac_try) 2>&5
19218 ac_status=$?
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); }; } &&
19221 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000019222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000019223 (eval $ac_try) 2>&5
19224 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000019225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000019226 (exit $ac_status); }; }; then
19227 break
19228else
19229 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019230sed 's/^/| /' conftest.$ac_ext >&5
19231
drh71eb93e2001-09-28 01:34:43 +000019232fi
a.rottmann964dbb12004-02-26 19:47:42 +000019233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000019234done
19235rm -f conftest*
19236if test -n "$ac_declaration"; then
19237 echo '#ifdef __cplusplus' >>confdefs.h
19238 echo $ac_declaration >>confdefs.h
19239 echo '#endif' >>confdefs.h
19240fi
19241
19242else
19243 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019244sed 's/^/| /' conftest.$ac_ext >&5
19245
drh71eb93e2001-09-28 01:34:43 +000019246fi
a.rottmann964dbb12004-02-26 19:47:42 +000019247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000019248ac_ext=c
19249ac_cpp='$CPP $CPPFLAGS'
19250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19252ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +000019253
xdong28f79f72003-09-23 00:35:21 +000019254 if test "$cross_compiling" = "yes"; then
19255 { { echo "$as_me:$LINENO: error: unable to find a compiler for building build tools" >&5
19256echo "$as_me: error: unable to find a compiler for building build tools" >&2;}
19257 { (exit 1); exit 1; }; }
19258 fi
drh75897232000-05-29 14:26:00 +000019259 BUILD_CC=$CC
19260 default_build_cflags=$CFLAGS
19261else
19262 BUILD_CC=$config_BUILD_CC
a.rottmann84e63352003-03-24 09:42:16 +000019263 echo "$as_me:$LINENO: checking host compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000019264echo $ECHO_N "checking host compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019265 CC=$BUILD_CC
a.rottmann84e63352003-03-24 09:42:16 +000019266 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
drh71eb93e2001-09-28 01:34:43 +000019267echo "${ECHO_T}$BUILD_CC" >&6
drh75897232000-05-29 14:26:00 +000019268fi
a.rottmann84e63352003-03-24 09:42:16 +000019269echo "$as_me:$LINENO: checking switches for the host compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000019270echo $ECHO_N "checking switches for the host compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019271if test "$config_BUILD_CFLAGS" != ""; then
19272 CFLAGS=$config_BUILD_CFLAGS
19273 BUILD_CFLAGS=$config_BUILD_CFLAGS
19274else
19275 BUILD_CFLAGS=$default_build_cflags
19276fi
a.rottmann84e63352003-03-24 09:42:16 +000019277echo "$as_me:$LINENO: result: $BUILD_CFLAGS" >&5
drh71eb93e2001-09-28 01:34:43 +000019278echo "${ECHO_T}$BUILD_CFLAGS" >&6
drh75897232000-05-29 14:26:00 +000019279if test "$config_BUILD_LIBS" != ""; then
19280 BUILD_LIBS=$config_BUILD_LIBS
19281fi
19282
a.rottmann84e63352003-03-24 09:42:16 +000019283
19284
19285
drh75897232000-05-29 14:26:00 +000019286##########
19287# Locate a compiler that converts C code into *.o files that run on
19288# the target machine.
19289#
a.rottmann84e63352003-03-24 09:42:16 +000019290echo "$as_me:$LINENO: checking target compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000019291echo $ECHO_N "checking target compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019292if test "$config_TARGET_CC" != ""; then
19293 TARGET_CC=$config_TARGET_CC
19294else
19295 TARGET_CC=$BUILD_CC
19296fi
a.rottmann84e63352003-03-24 09:42:16 +000019297echo "$as_me:$LINENO: result: $TARGET_CC" >&5
drh71eb93e2001-09-28 01:34:43 +000019298echo "${ECHO_T}$TARGET_CC" >&6
a.rottmann84e63352003-03-24 09:42:16 +000019299echo "$as_me:$LINENO: checking switches on the target compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000019300echo $ECHO_N "checking switches on the target compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019301if test "$config_TARGET_CFLAGS" != ""; then
19302 TARGET_CFLAGS=$config_TARGET_CFLAGS
19303else
19304 TARGET_CFLAGS=$BUILD_CFLAGS
19305fi
a.rottmann84e63352003-03-24 09:42:16 +000019306echo "$as_me:$LINENO: result: $TARGET_CFLAGS" >&5
drh71eb93e2001-09-28 01:34:43 +000019307echo "${ECHO_T}$TARGET_CFLAGS" >&6
a.rottmann84e63352003-03-24 09:42:16 +000019308echo "$as_me:$LINENO: checking target linker" >&5
drh71eb93e2001-09-28 01:34:43 +000019309echo $ECHO_N "checking target linker... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019310if test "$config_TARGET_LINK" = ""; then
19311 TARGET_LINK=$TARGET_CC
19312else
19313 TARGET_LINK=$config_TARGET_LINK
19314fi
a.rottmann84e63352003-03-24 09:42:16 +000019315echo "$as_me:$LINENO: result: $TARGET_LINK" >&5
drh71eb93e2001-09-28 01:34:43 +000019316echo "${ECHO_T}$TARGET_LINK" >&6
a.rottmann84e63352003-03-24 09:42:16 +000019317echo "$as_me:$LINENO: checking switches on the target compiler" >&5
drh71eb93e2001-09-28 01:34:43 +000019318echo $ECHO_N "checking switches on the target compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019319if test "$config_TARGET_TFLAGS" != ""; then
19320 TARGET_TFLAGS=$config_TARGET_TFLAGS
19321else
19322 TARGET_TFLAGS=$BUILD_CFLAGS
19323fi
19324if test "$config_TARGET_RANLIB" != ""; then
19325 TARGET_RANLIB=$config_TARGET_RANLIB
19326else
drh71eb93e2001-09-28 01:34:43 +000019327 if test -n "$ac_tool_prefix"; then
19328 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19329set dummy ${ac_tool_prefix}ranlib; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000019330echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000019331echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19332if test "${ac_cv_prog_RANLIB+set}" = set; then
19333 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019334else
19335 if test -n "$RANLIB"; then
19336 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19337else
a.rottmann84e63352003-03-24 09:42:16 +000019338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19339for as_dir in $PATH
19340do
19341 IFS=$as_save_IFS
19342 test -z "$as_dir" && as_dir=.
19343 for ac_exec_ext in '' $ac_executable_extensions; do
19344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19345 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19347 break 2
19348 fi
19349done
drh71eb93e2001-09-28 01:34:43 +000019350done
19351
drh75897232000-05-29 14:26:00 +000019352fi
19353fi
drh71eb93e2001-09-28 01:34:43 +000019354RANLIB=$ac_cv_prog_RANLIB
drh75897232000-05-29 14:26:00 +000019355if test -n "$RANLIB"; then
a.rottmann84e63352003-03-24 09:42:16 +000019356 echo "$as_me:$LINENO: result: $RANLIB" >&5
drh71eb93e2001-09-28 01:34:43 +000019357echo "${ECHO_T}$RANLIB" >&6
drh75897232000-05-29 14:26:00 +000019358else
a.rottmann84e63352003-03-24 09:42:16 +000019359 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000019360echo "${ECHO_T}no" >&6
19361fi
19362
19363fi
19364if test -z "$ac_cv_prog_RANLIB"; then
19365 ac_ct_RANLIB=$RANLIB
19366 # Extract the first word of "ranlib", so it can be a program name with args.
19367set dummy ranlib; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +000019368echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +000019369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19370if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
19371 echo $ECHO_N "(cached) $ECHO_C" >&6
19372else
19373 if test -n "$ac_ct_RANLIB"; then
19374 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19375else
a.rottmann84e63352003-03-24 09:42:16 +000019376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19377for as_dir in $PATH
19378do
19379 IFS=$as_save_IFS
19380 test -z "$as_dir" && as_dir=.
19381 for ac_exec_ext in '' $ac_executable_extensions; do
19382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19383 ac_cv_prog_ac_ct_RANLIB="ranlib"
19384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19385 break 2
19386 fi
19387done
drh71eb93e2001-09-28 01:34:43 +000019388done
19389
19390 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
19391fi
19392fi
19393ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19394if test -n "$ac_ct_RANLIB"; then
a.rottmann84e63352003-03-24 09:42:16 +000019395 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
drh71eb93e2001-09-28 01:34:43 +000019396echo "${ECHO_T}$ac_ct_RANLIB" >&6
19397else
a.rottmann84e63352003-03-24 09:42:16 +000019398 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000019399echo "${ECHO_T}no" >&6
19400fi
19401
19402 RANLIB=$ac_ct_RANLIB
19403else
19404 RANLIB="$ac_cv_prog_RANLIB"
drh75897232000-05-29 14:26:00 +000019405fi
19406
19407 TARGET_RANLIB=$RANLIB
19408fi
19409if test "$config_TARGET_AR" != ""; then
drh82ad3832000-07-31 13:38:24 +000019410 TARGET_AR=$config_TARGET_AR
drh75897232000-05-29 14:26:00 +000019411else
19412 TARGET_AR='ar cr'
19413fi
a.rottmann84e63352003-03-24 09:42:16 +000019414echo "$as_me:$LINENO: result: $TARGET_TFLAGS" >&5
drh71eb93e2001-09-28 01:34:43 +000019415echo "${ECHO_T}$TARGET_TFLAGS" >&6
drh75897232000-05-29 14:26:00 +000019416
a.rottmann84e63352003-03-24 09:42:16 +000019417
19418
19419
19420
19421
19422
drh75897232000-05-29 14:26:00 +000019423# Set the $cross variable if we are cross-compiling. Make
19424# it 0 if we are not.
19425#
a.rottmann84e63352003-03-24 09:42:16 +000019426echo "$as_me:$LINENO: checking if host and target compilers are the same" >&5
drh71eb93e2001-09-28 01:34:43 +000019427echo $ECHO_N "checking if host and target compilers are the same... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019428if test "$BUILD_CC" = "$TARGET_CC"; then
19429 cross=0
a.rottmann84e63352003-03-24 09:42:16 +000019430 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +000019431echo "${ECHO_T}yes" >&6
drh75897232000-05-29 14:26:00 +000019432else
19433 cross=1
a.rottmann84e63352003-03-24 09:42:16 +000019434 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +000019435echo "${ECHO_T}no" >&6
drh75897232000-05-29 14:26:00 +000019436fi
19437
drh297ecf12001-04-05 15:57:13 +000019438##########
dougcurrie0f290bf2004-06-21 18:57:29 +000019439# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000019440#
dougcurrie0f290bf2004-06-21 18:57:29 +000019441# Check whether --enable-threadsafe or --disable-threadsafe was given.
19442if test "${enable_threadsafe+set}" = set; then
19443 enableval="$enable_threadsafe"
drh71eb93e2001-09-28 01:34:43 +000019444
drh297ecf12001-04-05 15:57:13 +000019445else
dougcurrie0f290bf2004-06-21 18:57:29 +000019446 enable_threadsafe=no
drh71eb93e2001-09-28 01:34:43 +000019447fi;
dougcurrie0f290bf2004-06-21 18:57:29 +000019448echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5
19449echo $ECHO_N "checking whether to support threadsafe operation... $ECHO_C" >&6
19450if test "$enable_threadsafe" = "no"; then
19451 THREADSAFE=0
paulb0208cc2003-04-13 18:26:49 +000019452 echo "$as_me:$LINENO: result: no" >&5
19453echo "${ECHO_T}no" >&6
19454else
dougcurrie0f290bf2004-06-21 18:57:29 +000019455 THREADSAFE=1
paulb0208cc2003-04-13 18:26:49 +000019456 echo "$as_me:$LINENO: result: yes" >&5
19457echo "${ECHO_T}yes" >&6
19458fi
19459
a.rottmann964dbb12004-02-26 19:47:42 +000019460
dougcurrie65623c72004-09-20 14:57:23 +000019461if test "$THREADSAFE" = "1"; then
19462 LIBS=""
19463
19464echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19465echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19466if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19467 echo $ECHO_N "(cached) $ECHO_C" >&6
19468else
19469 ac_check_lib_save_LIBS=$LIBS
19470LIBS="-lpthread $LIBS"
19471cat >conftest.$ac_ext <<_ACEOF
19472/* confdefs.h. */
19473_ACEOF
19474cat confdefs.h >>conftest.$ac_ext
19475cat >>conftest.$ac_ext <<_ACEOF
19476/* end confdefs.h. */
19477
19478/* Override any gcc2 internal prototype to avoid an error. */
19479#ifdef __cplusplus
19480extern "C"
19481#endif
19482/* We use char because int might match the return type of a gcc2
19483 builtin and then its argument prototype would still apply. */
19484char pthread_create ();
19485int
19486main ()
19487{
19488pthread_create ();
19489 ;
19490 return 0;
19491}
19492_ACEOF
19493rm -f conftest.$ac_objext conftest$ac_exeext
19494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19495 (eval $ac_link) 2>conftest.er1
19496 ac_status=$?
19497 grep -v '^ *+' conftest.er1 >conftest.err
19498 rm -f conftest.er1
19499 cat conftest.err >&5
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); } &&
19502 { ac_try='test -z "$ac_c_werror_flag"
19503 || test ! -s conftest.err'
19504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19505 (eval $ac_try) 2>&5
19506 ac_status=$?
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); }; } &&
19509 { ac_try='test -s conftest$ac_exeext'
19510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19511 (eval $ac_try) 2>&5
19512 ac_status=$?
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); }; }; then
19515 ac_cv_lib_pthread_pthread_create=yes
19516else
19517 echo "$as_me: failed program was:" >&5
19518sed 's/^/| /' conftest.$ac_ext >&5
19519
19520ac_cv_lib_pthread_pthread_create=no
19521fi
19522rm -f conftest.err conftest.$ac_objext \
19523 conftest$ac_exeext conftest.$ac_ext
19524LIBS=$ac_check_lib_save_LIBS
19525fi
19526echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19527echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19528if test $ac_cv_lib_pthread_pthread_create = yes; then
19529 cat >>confdefs.h <<_ACEOF
19530#define HAVE_LIBPTHREAD 1
19531_ACEOF
19532
19533 LIBS="-lpthread $LIBS"
19534
19535fi
19536
19537 TARGET_THREAD_LIB="$LIBS"
19538 LIBS=""
19539else
19540 TARGET_THREAD_LIB=""
19541fi
19542
19543
xdong28f79f72003-09-23 00:35:21 +000019544##########
drh91636d52005-11-24 23:14:00 +000019545# Do we want to allow a connection created in one thread to be used
19546# in another thread. This does not work on many Linux systems (ex: RedHat 9)
19547# due to bugs in the threading implementations. This is thus off by default.
19548#
19549# Check whether --enable-cross-thread-connections or --disable-cross-thread-connections was given.
19550if test "${enable_cross_thread_connections+set}" = set; then
19551 enableval="$enable_cross_thread_connections"
19552
19553else
19554 enable_xthreadconnect=no
19555fi;
19556echo "$as_me:$LINENO: checking whether to allow connections to be shared across threads" >&5
19557echo $ECHO_N "checking whether to allow connections to be shared across threads... $ECHO_C" >&6
19558if test "$enable_xthreadconnect" = "no"; then
19559 XTHREADCONNECT=''
19560 echo "$as_me:$LINENO: result: no" >&5
19561echo "${ECHO_T}no" >&6
19562else
19563 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
19564 echo "$as_me:$LINENO: result: yes" >&5
19565echo "${ECHO_T}yes" >&6
19566fi
19567
19568
19569##########
drh8e2e2a12006-02-01 01:55:17 +000019570# Do we want to set threadsOverrideEachOthersLocks variable to be 1 (true) by
19571# default. Normally, a test at runtime is performed to determine the
19572# appropriate value of this variable. Use this option only if you're sure that
19573# threads can safely override each others locks in all runtime situations.
19574#
19575# Check whether --enable-threads-override-locks or --disable-threads-override-locks was given.
19576if test "${enable_threads_override_locks+set}" = set; then
19577 enableval="$enable_threads_override_locks"
19578
19579else
19580 enable_threads_override_locks=no
19581fi;
19582echo "$as_me:$LINENO: checking whether threads can override each others locks" >&5
19583echo $ECHO_N "checking whether threads can override each others locks... $ECHO_C" >&6
19584if test "$enable_threads_override_locks" = "no"; then
19585 THREADSOVERRIDELOCKS='-1'
19586 echo "$as_me:$LINENO: result: no" >&5
19587echo "${ECHO_T}no" >&6
19588else
19589 THREADSOVERRIDELOCKS='1'
19590 echo "$as_me:$LINENO: result: yes" >&5
19591echo "${ECHO_T}yes" >&6
19592fi
19593
19594
19595##########
xdong28f79f72003-09-23 00:35:21 +000019596# Do we want to support release
19597#
19598# Check whether --enable-releasemode or --disable-releasemode was given.
19599if test "${enable_releasemode+set}" = set; then
19600 enableval="$enable_releasemode"
19601
19602else
19603 enable_releasemode=no
19604fi;
19605echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5
19606echo $ECHO_N "checking whether to support shared library linked as release mode or not... $ECHO_C" >&6
19607if test "$enable_releasemode" = "no"; then
19608 ALLOWRELEASE=""
19609 echo "$as_me:$LINENO: result: no" >&5
19610echo "${ECHO_T}no" >&6
19611else
19612 ALLOWRELEASE="-release `cat VERSION`"
19613 echo "$as_me:$LINENO: result: yes" >&5
19614echo "${ECHO_T}yes" >&6
19615fi
paulb0208cc2003-04-13 18:26:49 +000019616
a.rottmann964dbb12004-02-26 19:47:42 +000019617
paulb0208cc2003-04-13 18:26:49 +000019618##########
19619# Do we want temporary databases in memory
19620#
dougcurrie0f290bf2004-06-21 18:57:29 +000019621# Check whether --enable-tempstore or --disable-tempstore was given.
19622if test "${enable_tempstore+set}" = set; then
19623 enableval="$enable_tempstore"
paulb0208cc2003-04-13 18:26:49 +000019624
19625else
drh54414bb2005-10-10 00:05:50 +000019626 enable_tempstore=no
paulb0208cc2003-04-13 18:26:49 +000019627fi;
19628echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5
19629echo $ECHO_N "checking whether to use an in-ram database for temporary tables... $ECHO_C" >&6
dougcurrie0f290bf2004-06-21 18:57:29 +000019630case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000019631 never )
paul2dc96f92003-04-20 11:46:34 +000019632 TEMP_STORE=0
paulb0208cc2003-04-13 18:26:49 +000019633 echo "$as_me:$LINENO: result: never" >&5
19634echo "${ECHO_T}never" >&6
19635 ;;
19636 no )
paul2dc96f92003-04-20 11:46:34 +000019637 TEMP_STORE=1
paulb0208cc2003-04-13 18:26:49 +000019638 echo "$as_me:$LINENO: result: no" >&5
19639echo "${ECHO_T}no" >&6
19640 ;;
19641 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000019642 TEMP_STORE=3
paulb0208cc2003-04-13 18:26:49 +000019643 echo "$as_me:$LINENO: result: always" >&5
19644echo "${ECHO_T}always" >&6
19645 ;;
drh54414bb2005-10-10 00:05:50 +000019646 yes )
19647 TEMP_STORE=3
19648 echo "$as_me:$LINENO: result: always" >&5
19649echo "${ECHO_T}always" >&6
19650 ;;
paulb0208cc2003-04-13 18:26:49 +000019651 * )
drh54414bb2005-10-10 00:05:50 +000019652 TEMP_STORE=1
paulb0208cc2003-04-13 18:26:49 +000019653 echo "$as_me:$LINENO: result: yes" >&5
19654echo "${ECHO_T}yes" >&6
19655 ;;
19656esac
19657
19658
19659
drh75897232000-05-29 14:26:00 +000019660###########
19661# Lots of things are different if we are compiling for Windows using
19662# the CYGWIN environment. So check for that special case and handle
19663# things accordingly.
19664#
a.rottmann84e63352003-03-24 09:42:16 +000019665echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
drh71eb93e2001-09-28 01:34:43 +000019666echo $ECHO_N "checking if executables have the .exe suffix... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019667if test "$config_BUILD_EXEEXT" = ".exe"; then
19668 CYGWIN=yes
a.rottmann84e63352003-03-24 09:42:16 +000019669 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +000019670echo "${ECHO_T}yes" >&6
drh75897232000-05-29 14:26:00 +000019671else
a.rottmann84e63352003-03-24 09:42:16 +000019672 echo "$as_me:$LINENO: result: unknown" >&5
drh71eb93e2001-09-28 01:34:43 +000019673echo "${ECHO_T}unknown" >&6
drh75897232000-05-29 14:26:00 +000019674fi
19675if test "$CYGWIN" != "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000019676
19677case $host_os in
drh71eb93e2001-09-28 01:34:43 +000019678 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000019679 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000019680esac
drh75897232000-05-29 14:26:00 +000019681
drh75897232000-05-29 14:26:00 +000019682fi
19683if test "$CYGWIN" = "yes"; then
19684 BUILD_EXEEXT=.exe
19685else
dougcurrie6194a5f2003-12-19 20:09:51 +000019686 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000019687fi
19688if test "$cross" = "0"; then
19689 TARGET_EXEEXT=$BUILD_EXEEXT
19690else
19691 TARGET_EXEEXT=$config_TARGET_EXEEXT
19692fi
19693if test "$TARGET_EXEEXT" = ".exe"; then
19694 OS_UNIX=0
19695 OS_WIN=1
19696 tclsubdir=win
dougcurrie0f290bf2004-06-21 18:57:29 +000019697 TARGET_CFLAGS="$TARGET_CFLAGS -DOS_WIN=1"
drh75897232000-05-29 14:26:00 +000019698else
19699 OS_UNIX=1
19700 OS_WIN=0
19701 tclsubdir=unix
dougcurrie0f290bf2004-06-21 18:57:29 +000019702 TARGET_CFLAGS="$TARGET_CFLAGS -DOS_UNIX=1"
drh75897232000-05-29 14:26:00 +000019703fi
drh75897232000-05-29 14:26:00 +000019704
a.rottmann84e63352003-03-24 09:42:16 +000019705
19706
19707
19708
19709
drh75897232000-05-29 14:26:00 +000019710##########
19711# Extract generic linker options from the environment.
19712#
19713if test "$config_TARGET_LIBS" != ""; then
19714 TARGET_LIBS=$config_TARGET_LIBS
19715else
19716 TARGET_LIBS=""
19717fi
19718
drh75897232000-05-29 14:26:00 +000019719##########
drh7b5717e2004-11-25 13:50:01 +000019720# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000019721#
drh7b5717e2004-11-25 13:50:01 +000019722# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
19723# macros in the in the tcl.m4 file of the standard TCL distribution.
19724# Those macros could not be used directly since we have to make some
19725# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000019726#
drh7b5717e2004-11-25 13:50:01 +000019727# Check whether --enable-tcl or --disable-tcl was given.
19728if test "${enable_tcl+set}" = set; then
19729 enableval="$enable_tcl"
19730 use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000019731else
drh7b5717e2004-11-25 13:50:01 +000019732 use_tcl=yes
19733fi;
19734if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000019735
drh7b5717e2004-11-25 13:50:01 +000019736# Check whether --with-tcl or --without-tcl was given.
19737if test "${with_tcl+set}" = set; then
19738 withval="$with_tcl"
19739 with_tclconfig=${withval}
19740fi;
19741 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
19742echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
19743 if test "${ac_cv_c_tclconfig+set}" = set; then
a.rottmann84e63352003-03-24 09:42:16 +000019744 echo $ECHO_N "(cached) $ECHO_C" >&6
19745else
a.rottmann84e63352003-03-24 09:42:16 +000019746
drh7b5717e2004-11-25 13:50:01 +000019747 # First check to see if --with-tcl was specified.
19748 if test x"${with_tclconfig}" != x ; then
19749 if test -f "${with_tclconfig}/tclConfig.sh" ; then
19750 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
19751 else
19752 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
19753echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
xdong28f79f72003-09-23 00:35:21 +000019754 { (exit 1); exit 1; }; }
drh7b5717e2004-11-25 13:50:01 +000019755 fi
19756 fi
19757 # then check for a private Tcl installation
19758 if test x"${ac_cv_c_tclconfig}" = x ; then
19759 for i in \
19760 ../tcl \
19761 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19762 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
19763 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
19764 ../../tcl \
19765 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19766 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
19767 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
19768 ../../../tcl \
19769 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19770 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
19771 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
19772 do
19773 if test -f "$i/unix/tclConfig.sh" ; then
19774 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
19775 break
19776 fi
19777 done
19778 fi
19779
19780 # check in a few common install locations
19781 if test x"${ac_cv_c_tclconfig}" = x ; then
19782 for i in \
19783 `ls -d ${libdir} 2>/dev/null` \
19784 `ls -d /usr/local/lib 2>/dev/null` \
19785 `ls -d /usr/contrib/lib 2>/dev/null` \
19786 `ls -d /usr/lib 2>/dev/null`
19787 do
19788 if test -f "$i/tclConfig.sh" ; then
19789 ac_cv_c_tclconfig=`(cd $i; pwd)`
19790 break
19791 fi
19792 done
19793 fi
19794
19795 # check in a few other private locations
19796 if test x"${ac_cv_c_tclconfig}" = x ; then
19797 for i in \
19798 ${srcdir}/../tcl \
19799 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19800 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
19801 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
19802 do
19803 if test -f "$i/unix/tclConfig.sh" ; then
19804 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
19805 break
19806 fi
19807 done
19808 fi
19809
drh75897232000-05-29 14:26:00 +000019810fi
19811
drh7b5717e2004-11-25 13:50:01 +000019812
19813 if test x"${ac_cv_c_tclconfig}" = x ; then
19814 use_tcl=no
19815 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
19816echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
19817 { echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
19818echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
19819 { echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
19820echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
19821 else
19822 TCL_BIN_DIR=${ac_cv_c_tclconfig}
19823 echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
19824echo "${ECHO_T}found $TCL_BIN_DIR/tclConfig.sh" >&6
19825
19826 echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
19827echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6
19828 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
19829 echo "$as_me:$LINENO: result: loading" >&5
19830echo "${ECHO_T}loading" >&6
19831 . $TCL_BIN_DIR/tclConfig.sh
19832 else
19833 echo "$as_me:$LINENO: result: file not found" >&5
19834echo "${ECHO_T}file not found" >&6
drh75897232000-05-29 14:26:00 +000019835 fi
drh7b5717e2004-11-25 13:50:01 +000019836
19837 #
19838 # If the TCL_BIN_DIR is the build directory (not the install directory),
19839 # then set the common variable name to the value of the build variables.
19840 # For example, the variable TCL_LIB_SPEC will be set to the value
19841 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
19842 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
19843 # installed and uninstalled version of Tcl.
19844 #
19845
19846 if test -f $TCL_BIN_DIR/Makefile ; then
19847 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
19848 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
19849 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
19850 fi
19851
19852 #
19853 # eval is required to do the TCL_DBGX substitution
19854 #
19855
19856 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
19857 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
19858 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
19859
19860 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
19861 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
19862 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877 fi
drh75897232000-05-29 14:26:00 +000019878fi
drh7b5717e2004-11-25 13:50:01 +000019879if test "${use_tcl}" = "no" ; then
19880 HAVE_TCL=""
19881else
19882 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000019883fi
drh75897232000-05-29 14:26:00 +000019884
a.rottmann84e63352003-03-24 09:42:16 +000019885
drh75897232000-05-29 14:26:00 +000019886##########
19887# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000019888# that use "readline()" library.
19889#
19890if test "$config_TARGET_READLINE_LIBS" != ""; then
19891 TARGET_READLINE_LIBS="$config_TARGET_READLINE_LIBS"
19892else
19893 CC=$TARGET_CC
19894 LIBS=""
paul38372372003-04-22 08:04:49 +000019895 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
19896echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
19897if test "${ac_cv_search_tgetent+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +000019898 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019899else
drh71eb93e2001-09-28 01:34:43 +000019900 ac_func_search_save_LIBS=$LIBS
paul38372372003-04-22 08:04:49 +000019901ac_cv_search_tgetent=no
19902cat >conftest.$ac_ext <<_ACEOF
paul38372372003-04-22 08:04:49 +000019903/* confdefs.h. */
19904_ACEOF
19905cat confdefs.h >>conftest.$ac_ext
19906cat >>conftest.$ac_ext <<_ACEOF
19907/* end confdefs.h. */
19908
19909/* Override any gcc2 internal prototype to avoid an error. */
19910#ifdef __cplusplus
19911extern "C"
19912#endif
19913/* We use char because int might match the return type of a gcc2
19914 builtin and then its argument prototype would still apply. */
19915char tgetent ();
19916int
19917main ()
19918{
19919tgetent ();
19920 ;
19921 return 0;
19922}
19923_ACEOF
19924rm -f conftest.$ac_objext conftest$ac_exeext
19925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019926 (eval $ac_link) 2>conftest.er1
paul38372372003-04-22 08:04:49 +000019927 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019928 grep -v '^ *+' conftest.er1 >conftest.err
19929 rm -f conftest.er1
19930 cat conftest.err >&5
paul38372372003-04-22 08:04:49 +000019931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019933 { ac_try='test -z "$ac_c_werror_flag"
19934 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19936 (eval $ac_try) 2>&5
19937 ac_status=$?
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); }; } &&
19940 { ac_try='test -s conftest$ac_exeext'
paul38372372003-04-22 08:04:49 +000019941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19942 (eval $ac_try) 2>&5
19943 ac_status=$?
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); }; }; then
19946 ac_cv_search_tgetent="none required"
19947else
19948 echo "$as_me: failed program was:" >&5
19949sed 's/^/| /' conftest.$ac_ext >&5
19950
19951fi
a.rottmann964dbb12004-02-26 19:47:42 +000019952rm -f conftest.err conftest.$ac_objext \
19953 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000019954if test "$ac_cv_search_tgetent" = no; then
19955 for ac_lib in readline ncurses curses termcap; do
19956 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19957 cat >conftest.$ac_ext <<_ACEOF
paul38372372003-04-22 08:04:49 +000019958/* confdefs.h. */
19959_ACEOF
19960cat confdefs.h >>conftest.$ac_ext
19961cat >>conftest.$ac_ext <<_ACEOF
19962/* end confdefs.h. */
19963
19964/* Override any gcc2 internal prototype to avoid an error. */
19965#ifdef __cplusplus
19966extern "C"
19967#endif
19968/* We use char because int might match the return type of a gcc2
19969 builtin and then its argument prototype would still apply. */
19970char tgetent ();
19971int
19972main ()
19973{
19974tgetent ();
19975 ;
19976 return 0;
19977}
19978_ACEOF
19979rm -f conftest.$ac_objext conftest$ac_exeext
19980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000019981 (eval $ac_link) 2>conftest.er1
paul38372372003-04-22 08:04:49 +000019982 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019983 grep -v '^ *+' conftest.er1 >conftest.err
19984 rm -f conftest.er1
19985 cat conftest.err >&5
paul38372372003-04-22 08:04:49 +000019986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000019988 { ac_try='test -z "$ac_c_werror_flag"
19989 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000019990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19991 (eval $ac_try) 2>&5
19992 ac_status=$?
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); }; } &&
19995 { ac_try='test -s conftest$ac_exeext'
paul38372372003-04-22 08:04:49 +000019996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19997 (eval $ac_try) 2>&5
19998 ac_status=$?
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); }; }; then
20001 ac_cv_search_tgetent="-l$ac_lib"
20002break
20003else
20004 echo "$as_me: failed program was:" >&5
20005sed 's/^/| /' conftest.$ac_ext >&5
20006
20007fi
a.rottmann964dbb12004-02-26 19:47:42 +000020008rm -f conftest.err conftest.$ac_objext \
20009 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000020010 done
20011fi
20012LIBS=$ac_func_search_save_LIBS
20013fi
20014echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
20015echo "${ECHO_T}$ac_cv_search_tgetent" >&6
20016if test "$ac_cv_search_tgetent" != no; then
20017 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
20018
20019fi
20020
20021
20022echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20023echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20024if test "${ac_cv_lib_readline_readline+set}" = set; then
20025 echo $ECHO_N "(cached) $ECHO_C" >&6
20026else
20027 ac_check_lib_save_LIBS=$LIBS
20028LIBS="-lreadline $LIBS"
drh71eb93e2001-09-28 01:34:43 +000020029cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020030/* confdefs.h. */
20031_ACEOF
20032cat confdefs.h >>conftest.$ac_ext
20033cat >>conftest.$ac_ext <<_ACEOF
20034/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000020035
drh71eb93e2001-09-28 01:34:43 +000020036/* Override any gcc2 internal prototype to avoid an error. */
20037#ifdef __cplusplus
20038extern "C"
20039#endif
20040/* We use char because int might match the return type of a gcc2
20041 builtin and then its argument prototype would still apply. */
20042char readline ();
20043int
20044main ()
20045{
20046readline ();
20047 ;
20048 return 0;
20049}
20050_ACEOF
20051rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +000020052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000020053 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000020054 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000020055 grep -v '^ *+' conftest.er1 >conftest.err
20056 rm -f conftest.er1
20057 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000020058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000020059 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000020060 { ac_try='test -z "$ac_c_werror_flag"
20061 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000020062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20063 (eval $ac_try) 2>&5
20064 ac_status=$?
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); }; } &&
20067 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +000020068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000020069 (eval $ac_try) 2>&5
20070 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000020071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000020072 (exit $ac_status); }; }; then
paul38372372003-04-22 08:04:49 +000020073 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000020074else
drh71eb93e2001-09-28 01:34:43 +000020075 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000020076sed 's/^/| /' conftest.$ac_ext >&5
20077
paul38372372003-04-22 08:04:49 +000020078ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000020079fi
a.rottmann964dbb12004-02-26 19:47:42 +000020080rm -f conftest.err conftest.$ac_objext \
20081 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000020082LIBS=$ac_check_lib_save_LIBS
20083fi
20084echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20085echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20086if test $ac_cv_lib_readline_readline = yes; then
20087 cat >>confdefs.h <<_ACEOF
20088#define HAVE_LIBREADLINE 1
a.rottmann84e63352003-03-24 09:42:16 +000020089_ACEOF
drh75897232000-05-29 14:26:00 +000020090
paul38372372003-04-22 08:04:49 +000020091 LIBS="-lreadline $LIBS"
drh71eb93e2001-09-28 01:34:43 +000020092
drh75897232000-05-29 14:26:00 +000020093fi
20094
drh75897232000-05-29 14:26:00 +000020095 TARGET_READLINE_LIBS="$LIBS"
20096fi
20097
a.rottmann84e63352003-03-24 09:42:16 +000020098
drh75897232000-05-29 14:26:00 +000020099##########
drhf1878b42006-01-23 18:06:52 +000020100# Figure out what C libraries are required to compile programs
20101# that use "fdatasync()" function.
20102#
20103CC=$TARGET_CC
20104LIBS=$TARGET_LIBS
20105echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
20106echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
20107if test "${ac_cv_search_fdatasync+set}" = set; then
20108 echo $ECHO_N "(cached) $ECHO_C" >&6
20109else
20110 ac_func_search_save_LIBS=$LIBS
20111ac_cv_search_fdatasync=no
20112cat >conftest.$ac_ext <<_ACEOF
20113/* confdefs.h. */
20114_ACEOF
20115cat confdefs.h >>conftest.$ac_ext
20116cat >>conftest.$ac_ext <<_ACEOF
20117/* end confdefs.h. */
20118
20119/* Override any gcc2 internal prototype to avoid an error. */
20120#ifdef __cplusplus
20121extern "C"
20122#endif
20123/* We use char because int might match the return type of a gcc2
20124 builtin and then its argument prototype would still apply. */
20125char fdatasync ();
20126int
20127main ()
20128{
20129fdatasync ();
20130 ;
20131 return 0;
20132}
20133_ACEOF
20134rm -f conftest.$ac_objext conftest$ac_exeext
20135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20136 (eval $ac_link) 2>conftest.er1
20137 ac_status=$?
20138 grep -v '^ *+' conftest.er1 >conftest.err
20139 rm -f conftest.er1
20140 cat conftest.err >&5
20141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142 (exit $ac_status); } &&
20143 { ac_try='test -z "$ac_c_werror_flag"
20144 || test ! -s conftest.err'
20145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20146 (eval $ac_try) 2>&5
20147 ac_status=$?
20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); }; } &&
20150 { ac_try='test -s conftest$ac_exeext'
20151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20152 (eval $ac_try) 2>&5
20153 ac_status=$?
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); }; }; then
20156 ac_cv_search_fdatasync="none required"
20157else
20158 echo "$as_me: failed program was:" >&5
20159sed 's/^/| /' conftest.$ac_ext >&5
20160
20161fi
20162rm -f conftest.err conftest.$ac_objext \
20163 conftest$ac_exeext conftest.$ac_ext
20164if test "$ac_cv_search_fdatasync" = no; then
20165 for ac_lib in rt; do
20166 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20167 cat >conftest.$ac_ext <<_ACEOF
20168/* confdefs.h. */
20169_ACEOF
20170cat confdefs.h >>conftest.$ac_ext
20171cat >>conftest.$ac_ext <<_ACEOF
20172/* end confdefs.h. */
20173
20174/* Override any gcc2 internal prototype to avoid an error. */
20175#ifdef __cplusplus
20176extern "C"
20177#endif
20178/* We use char because int might match the return type of a gcc2
20179 builtin and then its argument prototype would still apply. */
20180char fdatasync ();
20181int
20182main ()
20183{
20184fdatasync ();
20185 ;
20186 return 0;
20187}
20188_ACEOF
20189rm -f conftest.$ac_objext conftest$ac_exeext
20190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20191 (eval $ac_link) 2>conftest.er1
20192 ac_status=$?
20193 grep -v '^ *+' conftest.er1 >conftest.err
20194 rm -f conftest.er1
20195 cat conftest.err >&5
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); } &&
20198 { ac_try='test -z "$ac_c_werror_flag"
20199 || test ! -s conftest.err'
20200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20201 (eval $ac_try) 2>&5
20202 ac_status=$?
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); }; } &&
20205 { ac_try='test -s conftest$ac_exeext'
20206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20207 (eval $ac_try) 2>&5
20208 ac_status=$?
20209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210 (exit $ac_status); }; }; then
20211 ac_cv_search_fdatasync="-l$ac_lib"
20212break
20213else
20214 echo "$as_me: failed program was:" >&5
20215sed 's/^/| /' conftest.$ac_ext >&5
20216
20217fi
20218rm -f conftest.err conftest.$ac_objext \
20219 conftest$ac_exeext conftest.$ac_ext
20220 done
20221fi
20222LIBS=$ac_func_search_save_LIBS
20223fi
20224echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
20225echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
20226if test "$ac_cv_search_fdatasync" != no; then
20227 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
20228
20229fi
20230
20231TARGET_LIBS="$LIBS"
20232
20233##########
drh75897232000-05-29 14:26:00 +000020234# Figure out where to get the READLINE header files.
20235#
a.rottmann84e63352003-03-24 09:42:16 +000020236echo "$as_me:$LINENO: checking readline header files" >&5
drh71eb93e2001-09-28 01:34:43 +000020237echo $ECHO_N "checking readline header files... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000020238found=no
20239if test "$config_TARGET_READLINE_INC" != ""; then
20240 TARGET_READLINE_INC=$config_TARGET_READLINE_INC
20241 found=yes
20242fi
20243if test "$found" = "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000020244 echo "$as_me:$LINENO: result: $TARGET_READLINE_INC" >&5
drh71eb93e2001-09-28 01:34:43 +000020245echo "${ECHO_T}$TARGET_READLINE_INC" >&6
drh75897232000-05-29 14:26:00 +000020246else
a.rottmann84e63352003-03-24 09:42:16 +000020247 echo "$as_me:$LINENO: result: not specified: still searching..." >&5
drh71eb93e2001-09-28 01:34:43 +000020248echo "${ECHO_T}not specified: still searching..." >&6
a.rottmann84e63352003-03-24 09:42:16 +000020249 if test "${ac_cv_header_readline_h+set}" = set; then
20250 echo "$as_me:$LINENO: checking for readline.h" >&5
drh71eb93e2001-09-28 01:34:43 +000020251echo $ECHO_N "checking for readline.h... $ECHO_C" >&6
20252if test "${ac_cv_header_readline_h+set}" = set; then
20253 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +000020254fi
20255echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
20256echo "${ECHO_T}$ac_cv_header_readline_h" >&6
drh75897232000-05-29 14:26:00 +000020257else
a.rottmann84e63352003-03-24 09:42:16 +000020258 # Is the header compilable?
20259echo "$as_me:$LINENO: checking readline.h usability" >&5
20260echo $ECHO_N "checking readline.h usability... $ECHO_C" >&6
20261cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020262/* confdefs.h. */
20263_ACEOF
20264cat confdefs.h >>conftest.$ac_ext
20265cat >>conftest.$ac_ext <<_ACEOF
20266/* end confdefs.h. */
20267$ac_includes_default
drh75897232000-05-29 14:26:00 +000020268#include <readline.h>
drh71eb93e2001-09-28 01:34:43 +000020269_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020270rm -f conftest.$ac_objext
20271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000020272 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +000020273 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000020274 grep -v '^ *+' conftest.er1 >conftest.err
20275 rm -f conftest.er1
20276 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000020277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000020279 { ac_try='test -z "$ac_c_werror_flag"
20280 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000020281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20282 (eval $ac_try) 2>&5
20283 ac_status=$?
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); }; } &&
20286 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +000020287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20288 (eval $ac_try) 2>&5
20289 ac_status=$?
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); }; }; then
20292 ac_header_compiler=yes
20293else
20294 echo "$as_me: failed program was:" >&5
20295sed 's/^/| /' conftest.$ac_ext >&5
20296
20297ac_header_compiler=no
20298fi
a.rottmann964dbb12004-02-26 19:47:42 +000020299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000020300echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20301echo "${ECHO_T}$ac_header_compiler" >&6
20302
20303# Is the header present?
20304echo "$as_me:$LINENO: checking readline.h presence" >&5
20305echo $ECHO_N "checking readline.h presence... $ECHO_C" >&6
20306cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020307/* confdefs.h. */
20308_ACEOF
20309cat confdefs.h >>conftest.$ac_ext
20310cat >>conftest.$ac_ext <<_ACEOF
20311/* end confdefs.h. */
20312#include <readline.h>
20313_ACEOF
20314if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
drh71eb93e2001-09-28 01:34:43 +000020315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20316 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000020317 grep -v '^ *+' conftest.er1 >conftest.err
drh71eb93e2001-09-28 01:34:43 +000020318 rm -f conftest.er1
20319 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000020320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000020321 (exit $ac_status); } >/dev/null; then
20322 if test -s conftest.err; then
20323 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +000020324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
drh71eb93e2001-09-28 01:34:43 +000020325 else
20326 ac_cpp_err=
20327 fi
drh75897232000-05-29 14:26:00 +000020328else
drh71eb93e2001-09-28 01:34:43 +000020329 ac_cpp_err=yes
20330fi
20331if test -z "$ac_cpp_err"; then
a.rottmann84e63352003-03-24 09:42:16 +000020332 ac_header_preproc=yes
drh71eb93e2001-09-28 01:34:43 +000020333else
20334 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000020335sed 's/^/| /' conftest.$ac_ext >&5
20336
20337 ac_header_preproc=no
drh75897232000-05-29 14:26:00 +000020338fi
drh71eb93e2001-09-28 01:34:43 +000020339rm -f conftest.err conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000020340echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20341echo "${ECHO_T}$ac_header_preproc" >&6
20342
20343# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +000020344case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20345 yes:no: )
a.rottmann84e63352003-03-24 09:42:16 +000020346 { echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
20347echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000020348 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5
20349echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;}
20350 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +000020351 ;;
a.rottmann964dbb12004-02-26 19:47:42 +000020352 no:yes:* )
a.rottmann84e63352003-03-24 09:42:16 +000020353 { echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
20354echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000020355 { echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5
20356echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;}
20357 { echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5
20358echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;}
20359 { echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5
20360echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000020361 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
20362echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000020363 { echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5
20364echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000020365 (
20366 cat <<\_ASBOX
a.rottmann964dbb12004-02-26 19:47:42 +000020367## ------------------------------------------ ##
20368## Report this to the AC_PACKAGE_NAME lists. ##
20369## ------------------------------------------ ##
a.rottmann84e63352003-03-24 09:42:16 +000020370_ASBOX
20371 ) |
20372 sed "s/^/$as_me: WARNING: /" >&2
20373 ;;
20374esac
20375echo "$as_me:$LINENO: checking for readline.h" >&5
20376echo $ECHO_N "checking for readline.h... $ECHO_C" >&6
20377if test "${ac_cv_header_readline_h+set}" = set; then
20378 echo $ECHO_N "(cached) $ECHO_C" >&6
20379else
20380 ac_cv_header_readline_h=$ac_header_preproc
drh75897232000-05-29 14:26:00 +000020381fi
a.rottmann84e63352003-03-24 09:42:16 +000020382echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
drh71eb93e2001-09-28 01:34:43 +000020383echo "${ECHO_T}$ac_cv_header_readline_h" >&6
a.rottmann84e63352003-03-24 09:42:16 +000020384
20385fi
drh71eb93e2001-09-28 01:34:43 +000020386if test $ac_cv_header_readline_h = yes; then
drh75897232000-05-29 14:26:00 +000020387 found=yes
drh75897232000-05-29 14:26:00 +000020388fi
20389
a.rottmann84e63352003-03-24 09:42:16 +000020390
drh75897232000-05-29 14:26:00 +000020391fi
20392if test "$found" = "no"; then
dougcurrie6194a5f2003-12-19 20:09:51 +000020393 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
drh71eb93e2001-09-28 01:34:43 +000020394 as_ac_File=`echo "ac_cv_file_$dir/include/readline.h" | $as_tr_sh`
a.rottmann84e63352003-03-24 09:42:16 +000020395echo "$as_me:$LINENO: checking for $dir/include/readline.h" >&5
drh71eb93e2001-09-28 01:34:43 +000020396echo $ECHO_N "checking for $dir/include/readline.h... $ECHO_C" >&6
20397if eval "test \"\${$as_ac_File+set}\" = set"; then
20398 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +000020399else
20400 test "$cross_compiling" = yes &&
20401 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
20402echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
20403 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +000020404if test -r "$dir/include/readline.h"; then
20405 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000020406else
drh71eb93e2001-09-28 01:34:43 +000020407 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000020408fi
20409fi
a.rottmann84e63352003-03-24 09:42:16 +000020410echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
drh71eb93e2001-09-28 01:34:43 +000020411echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
20412if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +000020413 found=yes
drh75897232000-05-29 14:26:00 +000020414fi
20415
20416 if test "$found" = "yes"; then
20417 TARGET_READLINE_INC="-I$dir/include"
20418 break
20419 fi
drh71eb93e2001-09-28 01:34:43 +000020420 as_ac_File=`echo "ac_cv_file_$dir/include/readline/readline.h" | $as_tr_sh`
a.rottmann84e63352003-03-24 09:42:16 +000020421echo "$as_me:$LINENO: checking for $dir/include/readline/readline.h" >&5
drh71eb93e2001-09-28 01:34:43 +000020422echo $ECHO_N "checking for $dir/include/readline/readline.h... $ECHO_C" >&6
20423if eval "test \"\${$as_ac_File+set}\" = set"; then
20424 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +000020425else
20426 test "$cross_compiling" = yes &&
20427 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
20428echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
20429 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +000020430if test -r "$dir/include/readline/readline.h"; then
20431 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000020432else
drh71eb93e2001-09-28 01:34:43 +000020433 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000020434fi
20435fi
a.rottmann84e63352003-03-24 09:42:16 +000020436echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
drh71eb93e2001-09-28 01:34:43 +000020437echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
20438if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +000020439 found=yes
drh75897232000-05-29 14:26:00 +000020440fi
20441
20442 if test "$found" = "yes"; then
20443 TARGET_READLINE_INC="-I$dir/include/readline"
20444 break
20445 fi
20446 done
20447fi
20448if test "$found" = "yes"; then
drh82ad3832000-07-31 13:38:24 +000020449 if test "$TARGET_READLINE_LIBS" = ""; then
20450 TARGET_HAVE_READLINE=0
20451 else
20452 TARGET_HAVE_READLINE=1
20453 fi
drh75897232000-05-29 14:26:00 +000020454else
20455 TARGET_HAVE_READLINE=0
20456fi
20457
a.rottmann84e63352003-03-24 09:42:16 +000020458
20459
drh75897232000-05-29 14:26:00 +000020460#########
tpoindex9d9f76c2005-01-03 21:28:56 +000020461# check for debug enabled
20462# Check whether --enable-debug or --disable-debug was given.
20463if test "${enable_debug+set}" = set; then
20464 enableval="$enable_debug"
20465 use_debug=$enableval
20466else
20467 use_debug=no
20468fi;
20469if test "${use_debug}" = "yes" ; then
20470 TARGET_DEBUG=""
20471else
20472 TARGET_DEBUG="-DNDEBUG"
20473fi
20474
20475
20476#########
drh2dfbbca2000-07-28 14:32:48 +000020477# Figure out whether or not we have a "usleep()" function.
20478#
a.rottmann84e63352003-03-24 09:42:16 +000020479echo "$as_me:$LINENO: checking for usleep" >&5
drh71eb93e2001-09-28 01:34:43 +000020480echo $ECHO_N "checking for usleep... $ECHO_C" >&6
20481if test "${ac_cv_func_usleep+set}" = set; then
20482 echo $ECHO_N "(cached) $ECHO_C" >&6
drh2dfbbca2000-07-28 14:32:48 +000020483else
drh71eb93e2001-09-28 01:34:43 +000020484 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020485/* confdefs.h. */
20486_ACEOF
20487cat confdefs.h >>conftest.$ac_ext
20488cat >>conftest.$ac_ext <<_ACEOF
20489/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +000020490/* Define usleep to an innocuous variant, in case <limits.h> declares usleep.
20491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20492#define usleep innocuous_usleep
20493
drh2dfbbca2000-07-28 14:32:48 +000020494/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +000020495 which can conflict with char usleep (); below.
20496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20497 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +000020498
a.rottmann84e63352003-03-24 09:42:16 +000020499#ifdef __STDC__
20500# include <limits.h>
20501#else
20502# include <assert.h>
20503#endif
a.rottmann964dbb12004-02-26 19:47:42 +000020504
20505#undef usleep
20506
drh2dfbbca2000-07-28 14:32:48 +000020507/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +000020508#ifdef __cplusplus
20509extern "C"
a.rottmann84e63352003-03-24 09:42:16 +000020510{
drh71eb93e2001-09-28 01:34:43 +000020511#endif
drh2dfbbca2000-07-28 14:32:48 +000020512/* We use char because int might match the return type of a gcc2
drh71eb93e2001-09-28 01:34:43 +000020513 builtin and then its argument prototype would still apply. */
20514char usleep ();
drh2dfbbca2000-07-28 14:32:48 +000020515/* The GNU C library defines this for functions which it implements
20516 to always fail with ENOSYS. Some functions are actually named
20517 something starting with __ and the normal name is an alias. */
20518#if defined (__stub_usleep) || defined (__stub___usleep)
20519choke me
20520#else
a.rottmann84e63352003-03-24 09:42:16 +000020521char (*f) () = usleep;
20522#endif
20523#ifdef __cplusplus
20524}
drh2dfbbca2000-07-28 14:32:48 +000020525#endif
20526
a.rottmann84e63352003-03-24 09:42:16 +000020527int
20528main ()
20529{
20530return f != usleep;
drh71eb93e2001-09-28 01:34:43 +000020531 ;
20532 return 0;
20533}
20534_ACEOF
20535rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +000020536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +000020537 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000020538 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000020539 grep -v '^ *+' conftest.er1 >conftest.err
20540 rm -f conftest.er1
20541 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000020542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000020543 (exit $ac_status); } &&
dougcurrie0f290bf2004-06-21 18:57:29 +000020544 { ac_try='test -z "$ac_c_werror_flag"
20545 || test ! -s conftest.err'
a.rottmann964dbb12004-02-26 19:47:42 +000020546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20547 (eval $ac_try) 2>&5
20548 ac_status=$?
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); }; } &&
20551 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +000020552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +000020553 (eval $ac_try) 2>&5
20554 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000020555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000020556 (exit $ac_status); }; }; then
20557 ac_cv_func_usleep=yes
drh2dfbbca2000-07-28 14:32:48 +000020558else
drh71eb93e2001-09-28 01:34:43 +000020559 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000020560sed 's/^/| /' conftest.$ac_ext >&5
20561
drh71eb93e2001-09-28 01:34:43 +000020562ac_cv_func_usleep=no
drh2dfbbca2000-07-28 14:32:48 +000020563fi
a.rottmann964dbb12004-02-26 19:47:42 +000020564rm -f conftest.err conftest.$ac_objext \
20565 conftest$ac_exeext conftest.$ac_ext
drh2dfbbca2000-07-28 14:32:48 +000020566fi
a.rottmann84e63352003-03-24 09:42:16 +000020567echo "$as_me:$LINENO: result: $ac_cv_func_usleep" >&5
drh71eb93e2001-09-28 01:34:43 +000020568echo "${ECHO_T}$ac_cv_func_usleep" >&6
20569if test $ac_cv_func_usleep = yes; then
drh2dfbbca2000-07-28 14:32:48 +000020570 TARGET_CFLAGS="$TARGET_CFLAGS -DHAVE_USLEEP=1"
drh2dfbbca2000-07-28 14:32:48 +000020571fi
20572
a.rottmann84e63352003-03-24 09:42:16 +000020573
drhaf6edf52005-10-04 18:38:49 +000020574#--------------------------------------------------------------------
20575# Redefine fdatasync as fsync on systems that lack fdatasync
20576#--------------------------------------------------------------------
20577
20578echo "$as_me:$LINENO: checking for fdatasync" >&5
20579echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
20580if test "${ac_cv_func_fdatasync+set}" = set; then
20581 echo $ECHO_N "(cached) $ECHO_C" >&6
20582else
20583 cat >conftest.$ac_ext <<_ACEOF
20584/* confdefs.h. */
20585_ACEOF
20586cat confdefs.h >>conftest.$ac_ext
20587cat >>conftest.$ac_ext <<_ACEOF
20588/* end confdefs.h. */
20589/* Define fdatasync to an innocuous variant, in case <limits.h> declares fdatasync.
20590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20591#define fdatasync innocuous_fdatasync
20592
20593/* System header to define __stub macros and hopefully few prototypes,
20594 which can conflict with char fdatasync (); below.
20595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20596 <limits.h> exists even on freestanding compilers. */
20597
20598#ifdef __STDC__
20599# include <limits.h>
20600#else
20601# include <assert.h>
20602#endif
20603
20604#undef fdatasync
20605
20606/* Override any gcc2 internal prototype to avoid an error. */
20607#ifdef __cplusplus
20608extern "C"
20609{
20610#endif
20611/* We use char because int might match the return type of a gcc2
20612 builtin and then its argument prototype would still apply. */
20613char fdatasync ();
20614/* The GNU C library defines this for functions which it implements
20615 to always fail with ENOSYS. Some functions are actually named
20616 something starting with __ and the normal name is an alias. */
20617#if defined (__stub_fdatasync) || defined (__stub___fdatasync)
20618choke me
20619#else
20620char (*f) () = fdatasync;
20621#endif
20622#ifdef __cplusplus
20623}
20624#endif
20625
20626int
20627main ()
20628{
20629return f != fdatasync;
20630 ;
20631 return 0;
20632}
20633_ACEOF
20634rm -f conftest.$ac_objext conftest$ac_exeext
20635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20636 (eval $ac_link) 2>conftest.er1
20637 ac_status=$?
20638 grep -v '^ *+' conftest.er1 >conftest.err
20639 rm -f conftest.er1
20640 cat conftest.err >&5
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); } &&
20643 { ac_try='test -z "$ac_c_werror_flag"
20644 || test ! -s conftest.err'
20645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20646 (eval $ac_try) 2>&5
20647 ac_status=$?
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); }; } &&
20650 { ac_try='test -s conftest$ac_exeext'
20651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20652 (eval $ac_try) 2>&5
20653 ac_status=$?
20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); }; }; then
20656 ac_cv_func_fdatasync=yes
20657else
20658 echo "$as_me: failed program was:" >&5
20659sed 's/^/| /' conftest.$ac_ext >&5
20660
20661ac_cv_func_fdatasync=no
20662fi
20663rm -f conftest.err conftest.$ac_objext \
20664 conftest$ac_exeext conftest.$ac_ext
20665fi
20666echo "$as_me:$LINENO: result: $ac_cv_func_fdatasync" >&5
20667echo "${ECHO_T}$ac_cv_func_fdatasync" >&6
20668if test $ac_cv_func_fdatasync = yes; then
drhf2f23912005-10-05 10:29:36 +000020669 TARGET_CFLAGS="$TARGET_CFLAGS -DHAVE_FDATASYNC=1"
drhaf6edf52005-10-04 18:38:49 +000020670fi
20671
20672
drh2dfbbca2000-07-28 14:32:48 +000020673#########
drhf1878b42006-01-23 18:06:52 +000020674# Put out accumulated miscellaneous LIBRARIES
20675#
20676
20677
20678#########
drh75897232000-05-29 14:26:00 +000020679# Generate the output files.
20680#
dougcurrie12b34442004-07-19 03:24:59 +000020681 ac_config_files="$ac_config_files Makefile sqlite3.pc"
drh71eb93e2001-09-28 01:34:43 +000020682cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000020683# This file is a shell script that caches the results of configure
20684# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000020685# scripts and configure runs, see configure's option --config-cache.
20686# It is not useful on other systems. If it contains results you don't
20687# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000020688#
drh71eb93e2001-09-28 01:34:43 +000020689# config.status only pays attention to the cache file if you give it
20690# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000020691#
a.rottmann84e63352003-03-24 09:42:16 +000020692# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000020693# loading this file, other *unset* `ac_cv_foo' will be assigned the
20694# following values.
20695
20696_ACEOF
20697
drh75897232000-05-29 14:26:00 +000020698# The following way of writing the cache mishandles newlines in values,
20699# but we know of no workaround that is simple, portable, and efficient.
20700# So, don't put newlines in cache variables' values.
20701# Ultrix sh set writes to stderr and can't be redirected directly,
20702# and sets the high bit in the cache file unless we assign to the vars.
drh71eb93e2001-09-28 01:34:43 +000020703{
20704 (set) 2>&1 |
20705 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20706 *ac_space=\ *)
20707 # `set' does not quote correctly, so add quotes (double-quote
20708 # substitution turns \\\\ into \\, and sed turns \\ into \).
20709 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000020710 "s/'/'\\\\''/g;
20711 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh71eb93e2001-09-28 01:34:43 +000020712 ;;
20713 *)
20714 # `set' quotes correctly as required by POSIX, so do not add quotes.
20715 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000020716 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
drh71eb93e2001-09-28 01:34:43 +000020717 ;;
20718 esac;
20719} |
20720 sed '
20721 t clear
20722 : clear
20723 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20724 t end
20725 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20726 : end' >>confcache
a.rottmann84e63352003-03-24 09:42:16 +000020727if diff $cache_file confcache >/dev/null 2>&1; then :; else
drh75897232000-05-29 14:26:00 +000020728 if test -w $cache_file; then
drh71eb93e2001-09-28 01:34:43 +000020729 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20730 cat confcache >$cache_file
drh75897232000-05-29 14:26:00 +000020731 else
20732 echo "not updating unwritable cache $cache_file"
20733 fi
20734fi
20735rm -f confcache
20736
drh75897232000-05-29 14:26:00 +000020737test "x$prefix" = xNONE && prefix=$ac_default_prefix
20738# Let make expand exec_prefix.
20739test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20740
drh71eb93e2001-09-28 01:34:43 +000020741# VPATH may cause trouble with some makes, so we remove $(srcdir),
20742# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20743# trailing colons and then remove the whole line if VPATH becomes empty
20744# (actually we leave an empty line to preserve line numbers).
drh75897232000-05-29 14:26:00 +000020745if test "x$srcdir" = x.; then
a.rottmann964dbb12004-02-26 19:47:42 +000020746 ac_vpsub='/^[ ]*VPATH[ ]*=/{
drh71eb93e2001-09-28 01:34:43 +000020747s/:*\$(srcdir):*/:/;
20748s/:*\${srcdir}:*/:/;
20749s/:*@srcdir@:*/:/;
a.rottmann964dbb12004-02-26 19:47:42 +000020750s/^\([^=]*=[ ]*\):*/\1/;
drh71eb93e2001-09-28 01:34:43 +000020751s/:*$//;
a.rottmann964dbb12004-02-26 19:47:42 +000020752s/^[^=]*=[ ]*$//;
drh71eb93e2001-09-28 01:34:43 +000020753}'
drh75897232000-05-29 14:26:00 +000020754fi
20755
drh75897232000-05-29 14:26:00 +000020756# Transform confdefs.h into DEFS.
20757# Protect against shell expansion while executing Makefile rules.
20758# Protect against Makefile macro expansion.
drh71eb93e2001-09-28 01:34:43 +000020759#
20760# If the first sed substitution is executed (which looks for macros that
20761# take arguments), then we branch to the quote section. Otherwise,
20762# look for a macro that doesn't take arguments.
a.rottmann84e63352003-03-24 09:42:16 +000020763cat >confdef2opt.sed <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020764t clear
20765: clear
a.rottmann964dbb12004-02-26 19:47:42 +000020766s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
drh71eb93e2001-09-28 01:34:43 +000020767t quote
a.rottmann964dbb12004-02-26 19:47:42 +000020768s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
drh71eb93e2001-09-28 01:34:43 +000020769t quote
20770d
20771: quote
a.rottmann964dbb12004-02-26 19:47:42 +000020772s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
drh71eb93e2001-09-28 01:34:43 +000020773s,\[,\\&,g
20774s,\],\\&,g
20775s,\$,$$,g
20776p
a.rottmann84e63352003-03-24 09:42:16 +000020777_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020778# We use echo to avoid assuming a particular line-breaking character.
20779# The extra dot is to prevent the shell from consuming trailing
20780# line-breaks from the sub-command output. A line-break within
20781# single-quotes doesn't work because, if this script is created in a
20782# platform that uses two characters for line-breaks (e.g., DOS), tr
20783# would break.
20784ac_LF_and_DOT=`echo; echo .`
20785DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
20786rm -f confdef2opt.sed
drh75897232000-05-29 14:26:00 +000020787
a.rottmann84e63352003-03-24 09:42:16 +000020788
20789ac_libobjs=
20790ac_ltlibobjs=
20791for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20792 # 1. Remove the extension, and $U if already installed.
20793 ac_i=`echo "$ac_i" |
a.rottmann964dbb12004-02-26 19:47:42 +000020794 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a.rottmann84e63352003-03-24 09:42:16 +000020795 # 2. Add them.
20796 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20797 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20798done
20799LIBOBJS=$ac_libobjs
20800
20801LTLIBOBJS=$ac_ltlibobjs
20802
20803
20804
drh75897232000-05-29 14:26:00 +000020805: ${CONFIG_STATUS=./config.status}
drh71eb93e2001-09-28 01:34:43 +000020806ac_clean_files_save=$ac_clean_files
20807ac_clean_files="$ac_clean_files $CONFIG_STATUS"
a.rottmann84e63352003-03-24 09:42:16 +000020808{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
drh71eb93e2001-09-28 01:34:43 +000020809echo "$as_me: creating $CONFIG_STATUS" >&6;}
20810cat >$CONFIG_STATUS <<_ACEOF
20811#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000020812# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000020813# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000020814# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000020815# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000020816
drh71eb93e2001-09-28 01:34:43 +000020817debug=false
a.rottmann84e63352003-03-24 09:42:16 +000020818ac_cs_recheck=false
20819ac_cs_silent=false
drh71eb93e2001-09-28 01:34:43 +000020820SHELL=\${CONFIG_SHELL-$SHELL}
drh71eb93e2001-09-28 01:34:43 +000020821_ACEOF
drh75897232000-05-29 14:26:00 +000020822
drh71eb93e2001-09-28 01:34:43 +000020823cat >>$CONFIG_STATUS <<\_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020824## --------------------- ##
20825## M4sh Initialization. ##
20826## --------------------- ##
20827
drh71eb93e2001-09-28 01:34:43 +000020828# Be Bourne compatible
20829if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20830 emulate sh
20831 NULLCMD=:
a.rottmann84e63352003-03-24 09:42:16 +000020832 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20833 # is contrary to our usage. Disable this feature.
20834 alias -g '${1+"$@"}'='"$@"'
drh71eb93e2001-09-28 01:34:43 +000020835elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20836 set -o posix
drh75897232000-05-29 14:26:00 +000020837fi
a.rottmann964dbb12004-02-26 19:47:42 +000020838DUALCASE=1; export DUALCASE # for MKS sh
drh71eb93e2001-09-28 01:34:43 +000020839
a.rottmann84e63352003-03-24 09:42:16 +000020840# Support unset when possible.
a.rottmann964dbb12004-02-26 19:47:42 +000020841if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a.rottmann84e63352003-03-24 09:42:16 +000020842 as_unset=unset
20843else
20844 as_unset=false
20845fi
20846
20847
20848# Work around bugs in pre-3.0 UWIN ksh.
20849$as_unset ENV MAIL MAILPATH
20850PS1='$ '
20851PS2='> '
20852PS4='+ '
20853
20854# NLS nuisances.
20855for as_var in \
20856 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20857 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20858 LC_TELEPHONE LC_TIME
20859do
a.rottmann964dbb12004-02-26 19:47:42 +000020860 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a.rottmann84e63352003-03-24 09:42:16 +000020861 eval $as_var=C; export $as_var
20862 else
20863 $as_unset $as_var
20864 fi
20865done
20866
20867# Required to use basename.
20868if expr a : '\(a\)' >/dev/null 2>&1; then
20869 as_expr=expr
20870else
20871 as_expr=false
20872fi
20873
20874if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20875 as_basename=basename
20876else
20877 as_basename=false
20878fi
20879
20880
drh71eb93e2001-09-28 01:34:43 +000020881# Name of the executable.
a.rottmann84e63352003-03-24 09:42:16 +000020882as_me=`$as_basename "$0" ||
20883$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20884 X"$0" : 'X\(//\)$' \| \
20885 X"$0" : 'X\(/\)$' \| \
20886 . : '\(.\)' 2>/dev/null ||
20887echo X/"$0" |
20888 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20889 /^X\/\(\/\/\)$/{ s//\1/; q; }
20890 /^X\/\(\/\).*/{ s//\1/; q; }
20891 s/.*/./; q'`
20892
20893
20894# PATH needs CR, and LINENO needs CR and PATH.
20895# Avoid depending upon Character Ranges.
20896as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20897as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20898as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20899as_cr_digits='0123456789'
20900as_cr_alnum=$as_cr_Letters$as_cr_digits
20901
20902# The user is always right.
20903if test "${PATH_SEPARATOR+set}" != set; then
20904 echo "#! /bin/sh" >conf$$.sh
20905 echo "exit 0" >>conf$$.sh
20906 chmod +x conf$$.sh
20907 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20908 PATH_SEPARATOR=';'
20909 else
20910 PATH_SEPARATOR=:
20911 fi
20912 rm -f conf$$.sh
20913fi
20914
20915
20916 as_lineno_1=$LINENO
20917 as_lineno_2=$LINENO
20918 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20919 test "x$as_lineno_1" != "x$as_lineno_2" &&
20920 test "x$as_lineno_3" = "x$as_lineno_2" || {
20921 # Find who we are. Look in the path if we contain no path at all
20922 # relative or not.
20923 case $0 in
20924 *[\\/]* ) as_myself=$0 ;;
20925 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20926for as_dir in $PATH
20927do
20928 IFS=$as_save_IFS
20929 test -z "$as_dir" && as_dir=.
20930 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20931done
20932
20933 ;;
20934 esac
20935 # We did not find ourselves, most probably we were run as `sh COMMAND'
20936 # in which case we are not to be found in the path.
20937 if test "x$as_myself" = x; then
20938 as_myself=$0
20939 fi
20940 if test ! -f "$as_myself"; then
20941 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20942echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20943 { (exit 1); exit 1; }; }
20944 fi
20945 case $CONFIG_SHELL in
20946 '')
20947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20948for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20949do
20950 IFS=$as_save_IFS
20951 test -z "$as_dir" && as_dir=.
20952 for as_base in sh bash ksh sh5; do
20953 case $as_dir in
20954 /*)
20955 if ("$as_dir/$as_base" -c '
20956 as_lineno_1=$LINENO
20957 as_lineno_2=$LINENO
20958 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20959 test "x$as_lineno_1" != "x$as_lineno_2" &&
20960 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20961 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20962 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20963 CONFIG_SHELL=$as_dir/$as_base
20964 export CONFIG_SHELL
20965 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20966 fi;;
20967 esac
20968 done
20969done
20970;;
20971 esac
20972
20973 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20974 # uniformly replaced by the line number. The first 'sed' inserts a
20975 # line-number line before each line; the second 'sed' does the real
20976 # work. The second script uses 'N' to pair each line-number line
20977 # with the numbered line, and appends trailing '-' during
20978 # substitution so that $LINENO is not a special case at line end.
20979 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20980 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20981 sed '=' <$as_myself |
20982 sed '
20983 N
20984 s,$,-,
20985 : loop
20986 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20987 t loop
20988 s,-$,,
20989 s,^['$as_cr_digits']*\n,,
20990 ' >$as_me.lineno &&
20991 chmod +x $as_me.lineno ||
20992 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20993echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20994 { (exit 1); exit 1; }; }
20995
20996 # Don't try to exec as it changes $[0], causing all sort of problems
20997 # (the dirname of $[0] is not the place where we might find the
20998 # original and so on. Autoconf is especially sensible to this).
20999 . ./$as_me.lineno
21000 # Exit status is that of the last command.
21001 exit
21002}
21003
21004
21005case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21006 *c*,-n*) ECHO_N= ECHO_C='
21007' ECHO_T=' ' ;;
21008 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21009 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21010esac
drh71eb93e2001-09-28 01:34:43 +000021011
21012if expr a : '\(a\)' >/dev/null 2>&1; then
21013 as_expr=expr
21014else
21015 as_expr=false
21016fi
21017
21018rm -f conf$$ conf$$.exe conf$$.file
21019echo >conf$$.file
21020if ln -s conf$$.file conf$$ 2>/dev/null; then
21021 # We could just check for DJGPP; but this test a) works b) is more generic
21022 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21023 if test -f conf$$.exe; then
21024 # Don't use ln at all; we don't have any links
21025 as_ln_s='cp -p'
21026 else
21027 as_ln_s='ln -s'
21028 fi
21029elif ln conf$$.file conf$$ 2>/dev/null; then
21030 as_ln_s=ln
21031else
21032 as_ln_s='cp -p'
21033fi
21034rm -f conf$$ conf$$.exe conf$$.file
21035
a.rottmann84e63352003-03-24 09:42:16 +000021036if mkdir -p . 2>/dev/null; then
21037 as_mkdir_p=:
drh71eb93e2001-09-28 01:34:43 +000021038else
a.rottmann964dbb12004-02-26 19:47:42 +000021039 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000021040 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000021041fi
21042
a.rottmann84e63352003-03-24 09:42:16 +000021043as_executable_p="test -f"
21044
21045# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000021046as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000021047
21048# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000021049as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000021050
drh71eb93e2001-09-28 01:34:43 +000021051
21052# IFS
21053# We need space, tab and new line, in precisely that order.
21054as_nl='
21055'
21056IFS=" $as_nl"
21057
21058# CDPATH.
a.rottmann84e63352003-03-24 09:42:16 +000021059$as_unset CDPATH
drh71eb93e2001-09-28 01:34:43 +000021060
21061exec 6>&1
21062
a.rottmann84e63352003-03-24 09:42:16 +000021063# Open the log real soon, to keep \$[0] and so on meaningful, and to
21064# report actual input values of CONFIG_FILES etc. instead of their
21065# values after options handling. Logging --version etc. is OK.
21066exec 5>>config.log
21067{
21068 echo
21069 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21070## Running $as_me. ##
21071_ASBOX
21072} >&5
21073cat >&5 <<_CSEOF
21074
21075This file was extended by $as_me, which was
a.rottmann964dbb12004-02-26 19:47:42 +000021076generated by GNU Autoconf 2.59. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000021077
21078 CONFIG_FILES = $CONFIG_FILES
21079 CONFIG_HEADERS = $CONFIG_HEADERS
21080 CONFIG_LINKS = $CONFIG_LINKS
21081 CONFIG_COMMANDS = $CONFIG_COMMANDS
21082 $ $0 $@
21083
21084_CSEOF
21085echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21086echo >&5
drh71eb93e2001-09-28 01:34:43 +000021087_ACEOF
21088
21089# Files that config.status was made for.
21090if test -n "$ac_config_files"; then
21091 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21092fi
21093
21094if test -n "$ac_config_headers"; then
21095 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21096fi
21097
21098if test -n "$ac_config_links"; then
21099 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21100fi
21101
21102if test -n "$ac_config_commands"; then
21103 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21104fi
21105
a.rottmann84e63352003-03-24 09:42:16 +000021106cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021107
21108ac_cs_usage="\
21109\`$as_me' instantiates files from templates according to the
21110current configuration.
21111
21112Usage: $0 [OPTIONS] [FILE]...
21113
21114 -h, --help print this help, then exit
21115 -V, --version print version number, then exit
a.rottmann84e63352003-03-24 09:42:16 +000021116 -q, --quiet do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000021117 -d, --debug don't remove temporary files
21118 --recheck update $as_me by reconfiguring in the same conditions
21119 --file=FILE[:TEMPLATE]
a.rottmann964dbb12004-02-26 19:47:42 +000021120 instantiate the configuration file FILE
drh71eb93e2001-09-28 01:34:43 +000021121
21122Configuration files:
21123$config_files
21124
21125Report bugs to <bug-autoconf@gnu.org>."
a.rottmann84e63352003-03-24 09:42:16 +000021126_ACEOF
drh75897232000-05-29 14:26:00 +000021127
a.rottmann84e63352003-03-24 09:42:16 +000021128cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021129ac_cs_version="\\
21130config.status
a.rottmann964dbb12004-02-26 19:47:42 +000021131configured by $0, generated by GNU Autoconf 2.59,
drh71eb93e2001-09-28 01:34:43 +000021132 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
drh75897232000-05-29 14:26:00 +000021133
a.rottmann964dbb12004-02-26 19:47:42 +000021134Copyright (C) 2003 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000021135This config.status script is free software; the Free Software Foundation
21136gives unlimited permission to copy, distribute and modify it."
21137srcdir=$srcdir
21138INSTALL="$INSTALL"
a.rottmann84e63352003-03-24 09:42:16 +000021139_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021140
a.rottmann84e63352003-03-24 09:42:16 +000021141cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021142# If no file are specified by the user, then we need to provide default
21143# value. By we need to know if files were specified by the user.
21144ac_need_defaults=:
21145while test $# != 0
21146do
21147 case $1 in
21148 --*=*)
21149 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21150 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000021151 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000021152 ;;
a.rottmann84e63352003-03-24 09:42:16 +000021153 -*)
21154 ac_option=$1
21155 ac_optarg=$2
21156 ac_shift=shift
21157 ;;
drh71eb93e2001-09-28 01:34:43 +000021158 *) # This is not an option, so the user has probably given explicit
21159 # arguments.
a.rottmann84e63352003-03-24 09:42:16 +000021160 ac_option=$1
drh71eb93e2001-09-28 01:34:43 +000021161 ac_need_defaults=false;;
drh75897232000-05-29 14:26:00 +000021162 esac
21163
a.rottmann84e63352003-03-24 09:42:16 +000021164 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000021165 # Handling of the options.
a.rottmann84e63352003-03-24 09:42:16 +000021166_ACEOF
21167cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021168 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000021169 ac_cs_recheck=: ;;
drh71eb93e2001-09-28 01:34:43 +000021170 --version | --vers* | -V )
21171 echo "$ac_cs_version"; exit 0 ;;
21172 --he | --h)
21173 # Conflict between --help and --header
a.rottmann84e63352003-03-24 09:42:16 +000021174 { { echo "$as_me:$LINENO: error: ambiguous option: $1
drh71eb93e2001-09-28 01:34:43 +000021175Try \`$0 --help' for more information." >&5
21176echo "$as_me: error: ambiguous option: $1
21177Try \`$0 --help' for more information." >&2;}
21178 { (exit 1); exit 1; }; };;
21179 --help | --hel | -h )
21180 echo "$ac_cs_usage"; exit 0 ;;
21181 --debug | --d* | -d )
21182 debug=: ;;
21183 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000021184 $ac_shift
21185 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
drh71eb93e2001-09-28 01:34:43 +000021186 ac_need_defaults=false;;
21187 --header | --heade | --head | --hea )
a.rottmann84e63352003-03-24 09:42:16 +000021188 $ac_shift
21189 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
drh71eb93e2001-09-28 01:34:43 +000021190 ac_need_defaults=false;;
a.rottmann84e63352003-03-24 09:42:16 +000021191 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21192 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21193 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000021194
drh71eb93e2001-09-28 01:34:43 +000021195 # This is an error.
a.rottmann84e63352003-03-24 09:42:16 +000021196 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
drh71eb93e2001-09-28 01:34:43 +000021197Try \`$0 --help' for more information." >&5
21198echo "$as_me: error: unrecognized option: $1
21199Try \`$0 --help' for more information." >&2;}
21200 { (exit 1); exit 1; }; } ;;
21201
21202 *) ac_config_targets="$ac_config_targets $1" ;;
21203
21204 esac
21205 shift
21206done
21207
a.rottmann84e63352003-03-24 09:42:16 +000021208ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000021209
a.rottmann84e63352003-03-24 09:42:16 +000021210if $ac_cs_silent; then
21211 exec 6>/dev/null
21212 ac_configure_extra_args="$ac_configure_extra_args --silent"
21213fi
drh71eb93e2001-09-28 01:34:43 +000021214
21215_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000021216cat >>$CONFIG_STATUS <<_ACEOF
21217if \$ac_cs_recheck; then
21218 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21219 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21220fi
drh71eb93e2001-09-28 01:34:43 +000021221
a.rottmann84e63352003-03-24 09:42:16 +000021222_ACEOF
21223
21224
21225
21226
21227
21228cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021229for ac_config_target in $ac_config_targets
21230do
21231 case "$ac_config_target" in
21232 # Handling of arguments.
dougcurrie001c0bd2004-06-21 21:44:49 +000021233 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
dougcurrie12b34442004-07-19 03:24:59 +000021234 "sqlite3.pc" ) CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
a.rottmann84e63352003-03-24 09:42:16 +000021235 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
drh71eb93e2001-09-28 01:34:43 +000021236echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21237 { (exit 1); exit 1; }; };;
21238 esac
21239done
21240
21241# If the user did not use the arguments to specify the items to instantiate,
21242# then the envvar interface is used. Set only those that are not.
21243# We use the long form for the default assignment because of an extremely
21244# bizarre bug on SunOS 4.1.3.
21245if $ac_need_defaults; then
21246 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21247fi
21248
a.rottmann84e63352003-03-24 09:42:16 +000021249# Have a temporary directory for convenience. Make it in the build tree
21250# simply because there is no reason to put it here, and in addition,
21251# creating and moving files from /tmp can sometimes cause problems.
drh71eb93e2001-09-28 01:34:43 +000021252# Create a temporary directory, and hook for its removal unless debugging.
21253$debug ||
21254{
21255 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21256 trap '{ (exit 1); exit 1; }' 1 2 13 15
21257}
21258
21259# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000021260
drh71eb93e2001-09-28 01:34:43 +000021261{
a.rottmann84e63352003-03-24 09:42:16 +000021262 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
drh71eb93e2001-09-28 01:34:43 +000021263 test -n "$tmp" && test -d "$tmp"
21264} ||
21265{
a.rottmann84e63352003-03-24 09:42:16 +000021266 tmp=./confstat$$-$RANDOM
drh71eb93e2001-09-28 01:34:43 +000021267 (umask 077 && mkdir $tmp)
21268} ||
21269{
a.rottmann84e63352003-03-24 09:42:16 +000021270 echo "$me: cannot create a temporary directory in ." >&2
drh71eb93e2001-09-28 01:34:43 +000021271 { (exit 1); exit 1; }
21272}
21273
a.rottmann84e63352003-03-24 09:42:16 +000021274_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021275
a.rottmann84e63352003-03-24 09:42:16 +000021276cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021277
21278#
21279# CONFIG_FILES section.
21280#
21281
21282# No need to generate the scripts if there are no CONFIG_FILES.
21283# This happens for instance when ./config.status config.h
21284if test -n "\$CONFIG_FILES"; then
21285 # Protect against being on the right side of a sed subst in config.status.
21286 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21287 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21288s,@SHELL@,$SHELL,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021289s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21290s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21291s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21292s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21293s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21294s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
drh71eb93e2001-09-28 01:34:43 +000021295s,@exec_prefix@,$exec_prefix,;t t
21296s,@prefix@,$prefix,;t t
21297s,@program_transform_name@,$program_transform_name,;t t
21298s,@bindir@,$bindir,;t t
21299s,@sbindir@,$sbindir,;t t
21300s,@libexecdir@,$libexecdir,;t t
21301s,@datadir@,$datadir,;t t
21302s,@sysconfdir@,$sysconfdir,;t t
21303s,@sharedstatedir@,$sharedstatedir,;t t
21304s,@localstatedir@,$localstatedir,;t t
21305s,@libdir@,$libdir,;t t
21306s,@includedir@,$includedir,;t t
21307s,@oldincludedir@,$oldincludedir,;t t
21308s,@infodir@,$infodir,;t t
21309s,@mandir@,$mandir,;t t
drh71eb93e2001-09-28 01:34:43 +000021310s,@build_alias@,$build_alias,;t t
21311s,@host_alias@,$host_alias,;t t
21312s,@target_alias@,$target_alias,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021313s,@DEFS@,$DEFS,;t t
drh71eb93e2001-09-28 01:34:43 +000021314s,@ECHO_C@,$ECHO_C,;t t
21315s,@ECHO_N@,$ECHO_N,;t t
21316s,@ECHO_T@,$ECHO_T,;t t
drh71eb93e2001-09-28 01:34:43 +000021317s,@LIBS@,$LIBS,;t t
21318s,@build@,$build,;t t
21319s,@build_cpu@,$build_cpu,;t t
21320s,@build_vendor@,$build_vendor,;t t
21321s,@build_os@,$build_os,;t t
21322s,@host@,$host,;t t
21323s,@host_cpu@,$host_cpu,;t t
21324s,@host_vendor@,$host_vendor,;t t
21325s,@host_os@,$host_os,;t t
21326s,@CC@,$CC,;t t
21327s,@CFLAGS@,$CFLAGS,;t t
21328s,@LDFLAGS@,$LDFLAGS,;t t
21329s,@CPPFLAGS@,$CPPFLAGS,;t t
21330s,@ac_ct_CC@,$ac_ct_CC,;t t
21331s,@EXEEXT@,$EXEEXT,;t t
21332s,@OBJEXT@,$OBJEXT,;t t
a.rottmann9bc8b932004-02-29 15:18:31 +000021333s,@EGREP@,$EGREP,;t t
drh71eb93e2001-09-28 01:34:43 +000021334s,@LN_S@,$LN_S,;t t
21335s,@ECHO@,$ECHO,;t t
a.rottmann9bc8b932004-02-29 15:18:31 +000021336s,@AR@,$AR,;t t
21337s,@ac_ct_AR@,$ac_ct_AR,;t t
drh71eb93e2001-09-28 01:34:43 +000021338s,@RANLIB@,$RANLIB,;t t
21339s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21340s,@STRIP@,$STRIP,;t t
21341s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21342s,@CPP@,$CPP,;t t
a.rottmann9bc8b932004-02-29 15:18:31 +000021343s,@CXX@,$CXX,;t t
21344s,@CXXFLAGS@,$CXXFLAGS,;t t
21345s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21346s,@CXXCPP@,$CXXCPP,;t t
21347s,@F77@,$F77,;t t
21348s,@FFLAGS@,$FFLAGS,;t t
21349s,@ac_ct_F77@,$ac_ct_F77,;t t
drh71eb93e2001-09-28 01:34:43 +000021350s,@LIBTOOL@,$LIBTOOL,;t t
21351s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21352s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21353s,@INSTALL_DATA@,$INSTALL_DATA,;t t
drhf1878b42006-01-23 18:06:52 +000021354s,@AWK@,$AWK,;t t
drh71eb93e2001-09-28 01:34:43 +000021355s,@program_prefix@,$program_prefix,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021356s,@VERSION@,$VERSION,;t t
drh4b2266a2004-11-27 15:52:16 +000021357s,@RELEASE@,$RELEASE,;t t
drh26d0e2a2005-07-06 13:51:27 +000021358s,@VERSION_NUMBER@,$VERSION_NUMBER,;t t
drh71eb93e2001-09-28 01:34:43 +000021359s,@BUILD_CC@,$BUILD_CC,;t t
21360s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
21361s,@BUILD_LIBS@,$BUILD_LIBS,;t t
21362s,@TARGET_CC@,$TARGET_CC,;t t
21363s,@TARGET_CFLAGS@,$TARGET_CFLAGS,;t t
21364s,@TARGET_LINK@,$TARGET_LINK,;t t
21365s,@TARGET_LFLAGS@,$TARGET_LFLAGS,;t t
21366s,@TARGET_RANLIB@,$TARGET_RANLIB,;t t
21367s,@TARGET_AR@,$TARGET_AR,;t t
dougcurrie0f290bf2004-06-21 18:57:29 +000021368s,@THREADSAFE@,$THREADSAFE,;t t
dougcurrie65623c72004-09-20 14:57:23 +000021369s,@TARGET_THREAD_LIB@,$TARGET_THREAD_LIB,;t t
drh91636d52005-11-24 23:14:00 +000021370s,@XTHREADCONNECT@,$XTHREADCONNECT,;t t
drh8e2e2a12006-02-01 01:55:17 +000021371s,@THREADSOVERRIDELOCKS@,$THREADSOVERRIDELOCKS,;t t
xdong28f79f72003-09-23 00:35:21 +000021372s,@ALLOWRELEASE@,$ALLOWRELEASE,;t t
paul2dc96f92003-04-20 11:46:34 +000021373s,@TEMP_STORE@,$TEMP_STORE,;t t
drh71eb93e2001-09-28 01:34:43 +000021374s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
21375s,@OS_UNIX@,$OS_UNIX,;t t
21376s,@OS_WIN@,$OS_WIN,;t t
21377s,@TARGET_EXEEXT@,$TARGET_EXEEXT,;t t
drh7b5717e2004-11-25 13:50:01 +000021378s,@TCL_VERSION@,$TCL_VERSION,;t t
21379s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
21380s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
21381s,@TCL_LIBS@,$TCL_LIBS,;t t
21382s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
21383s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
21384s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
21385s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
21386s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
21387s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
21388s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
21389s,@HAVE_TCL@,$HAVE_TCL,;t t
drh71eb93e2001-09-28 01:34:43 +000021390s,@TARGET_READLINE_LIBS@,$TARGET_READLINE_LIBS,;t t
21391s,@TARGET_READLINE_INC@,$TARGET_READLINE_INC,;t t
21392s,@TARGET_HAVE_READLINE@,$TARGET_HAVE_READLINE,;t t
tpoindex9d9f76c2005-01-03 21:28:56 +000021393s,@TARGET_DEBUG@,$TARGET_DEBUG,;t t
drhf1878b42006-01-23 18:06:52 +000021394s,@TARGET_LIBS@,$TARGET_LIBS,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021395s,@LIBOBJS@,$LIBOBJS,;t t
21396s,@LTLIBOBJS@,$LTLIBOBJS,;t t
drh71eb93e2001-09-28 01:34:43 +000021397CEOF
21398
a.rottmann84e63352003-03-24 09:42:16 +000021399_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021400
a.rottmann84e63352003-03-24 09:42:16 +000021401 cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021402 # Split the substitutions into bite-sized pieces for seds with
21403 # small command number limits, like on Digital OSF/1 and HP-UX.
21404 ac_max_sed_lines=48
21405 ac_sed_frag=1 # Number of current file.
21406 ac_beg=1 # First line for current file.
21407 ac_end=$ac_max_sed_lines # Line after last line for current file.
21408 ac_more_lines=:
21409 ac_sed_cmds=
21410 while $ac_more_lines; do
21411 if test $ac_beg -gt 1; then
21412 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21413 else
21414 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21415 fi
21416 if test ! -s $tmp/subs.frag; then
21417 ac_more_lines=false
21418 else
21419 # The purpose of the label and of the branching condition is to
21420 # speed up the sed processing (if there are no `@' at all, there
21421 # is no need to browse any of the substitutions).
21422 # These are the two extra sed commands mentioned above.
21423 (echo ':t
21424 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21425 if test -z "$ac_sed_cmds"; then
a.rottmann964dbb12004-02-26 19:47:42 +000021426 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
drh71eb93e2001-09-28 01:34:43 +000021427 else
a.rottmann964dbb12004-02-26 19:47:42 +000021428 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
drh71eb93e2001-09-28 01:34:43 +000021429 fi
21430 ac_sed_frag=`expr $ac_sed_frag + 1`
21431 ac_beg=$ac_end
21432 ac_end=`expr $ac_end + $ac_max_sed_lines`
21433 fi
21434 done
21435 if test -z "$ac_sed_cmds"; then
21436 ac_sed_cmds=cat
21437 fi
21438fi # test -n "$CONFIG_FILES"
21439
a.rottmann84e63352003-03-24 09:42:16 +000021440_ACEOF
21441cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021442for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21443 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21444 case $ac_file in
21445 - | *:- | *:-:* ) # input from stdin
a.rottmann964dbb12004-02-26 19:47:42 +000021446 cat >$tmp/stdin
21447 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21448 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
drh71eb93e2001-09-28 01:34:43 +000021449 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
a.rottmann964dbb12004-02-26 19:47:42 +000021450 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
drh71eb93e2001-09-28 01:34:43 +000021451 * ) ac_file_in=$ac_file.in ;;
21452 esac
21453
21454 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
a.rottmann84e63352003-03-24 09:42:16 +000021455 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21456$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000021457 X"$ac_file" : 'X\(//\)[^/]' \| \
21458 X"$ac_file" : 'X\(//\)$' \| \
21459 X"$ac_file" : 'X\(/\)' \| \
21460 . : '\(.\)' 2>/dev/null ||
drh71eb93e2001-09-28 01:34:43 +000021461echo X"$ac_file" |
21462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21463 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21464 /^X\(\/\/\)$/{ s//\1/; q; }
21465 /^X\(\/\).*/{ s//\1/; q; }
21466 s/.*/./; q'`
a.rottmann84e63352003-03-24 09:42:16 +000021467 { if $as_mkdir_p; then
21468 mkdir -p "$ac_dir"
drh75897232000-05-29 14:26:00 +000021469 else
a.rottmann84e63352003-03-24 09:42:16 +000021470 as_dir="$ac_dir"
21471 as_dirs=
21472 while test ! -d "$as_dir"; do
21473 as_dirs="$as_dir $as_dirs"
21474 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21475$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000021476 X"$as_dir" : 'X\(//\)[^/]' \| \
21477 X"$as_dir" : 'X\(//\)$' \| \
21478 X"$as_dir" : 'X\(/\)' \| \
21479 . : '\(.\)' 2>/dev/null ||
a.rottmann84e63352003-03-24 09:42:16 +000021480echo X"$as_dir" |
21481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21482 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21483 /^X\(\/\/\)$/{ s//\1/; q; }
21484 /^X\(\/\).*/{ s//\1/; q; }
21485 s/.*/./; q'`
21486 done
21487 test ! -n "$as_dirs" || mkdir $as_dirs
21488 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21489echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21490 { (exit 1); exit 1; }; }; }
drh75897232000-05-29 14:26:00 +000021491
a.rottmann84e63352003-03-24 09:42:16 +000021492 ac_builddir=.
21493
21494if test "$ac_dir" != .; then
21495 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21496 # A "../" for each directory in $ac_dir_suffix.
21497 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21498else
21499 ac_dir_suffix= ac_top_builddir=
21500fi
21501
21502case $srcdir in
21503 .) # No --srcdir option. We are building in place.
21504 ac_srcdir=.
21505 if test -z "$ac_top_builddir"; then
21506 ac_top_srcdir=.
21507 else
21508 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21509 fi ;;
21510 [\\/]* | ?:[\\/]* ) # Absolute path.
21511 ac_srcdir=$srcdir$ac_dir_suffix;
21512 ac_top_srcdir=$srcdir ;;
drh75897232000-05-29 14:26:00 +000021513 *) # Relative path.
a.rottmann84e63352003-03-24 09:42:16 +000021514 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21515 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21516esac
a.rottmann964dbb12004-02-26 19:47:42 +000021517
21518# Do not use `cd foo && pwd` to compute absolute paths, because
21519# the directories may not exist.
21520case `pwd` in
21521.) ac_abs_builddir="$ac_dir";;
21522*)
21523 case "$ac_dir" in
21524 .) ac_abs_builddir=`pwd`;;
21525 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21526 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21527 esac;;
21528esac
21529case $ac_abs_builddir in
21530.) ac_abs_top_builddir=${ac_top_builddir}.;;
21531*)
21532 case ${ac_top_builddir}. in
21533 .) ac_abs_top_builddir=$ac_abs_builddir;;
21534 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21535 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21536 esac;;
21537esac
21538case $ac_abs_builddir in
21539.) ac_abs_srcdir=$ac_srcdir;;
21540*)
21541 case $ac_srcdir in
21542 .) ac_abs_srcdir=$ac_abs_builddir;;
21543 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21544 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21545 esac;;
21546esac
21547case $ac_abs_builddir in
21548.) ac_abs_top_srcdir=$ac_top_srcdir;;
21549*)
21550 case $ac_top_srcdir in
21551 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21552 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21553 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21554 esac;;
21555esac
a.rottmann84e63352003-03-24 09:42:16 +000021556
drh75897232000-05-29 14:26:00 +000021557
drh71eb93e2001-09-28 01:34:43 +000021558 case $INSTALL in
21559 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
a.rottmann84e63352003-03-24 09:42:16 +000021560 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
drh75897232000-05-29 14:26:00 +000021561 esac
21562
dougcurrie0f290bf2004-06-21 18:57:29 +000021563 if test x"$ac_file" != x-; then
21564 { echo "$as_me:$LINENO: creating $ac_file" >&5
21565echo "$as_me: creating $ac_file" >&6;}
21566 rm -f "$ac_file"
21567 fi
drh71eb93e2001-09-28 01:34:43 +000021568 # Let's still pretend it is `configure' which instantiates (i.e., don't
21569 # use $as_me), people would be surprised to read:
a.rottmann84e63352003-03-24 09:42:16 +000021570 # /* config.h. Generated by config.status. */
21571 if test x"$ac_file" = x-; then
21572 configure_input=
21573 else
21574 configure_input="$ac_file. "
21575 fi
21576 configure_input=$configure_input"Generated from `echo $ac_file_in |
a.rottmann964dbb12004-02-26 19:47:42 +000021577 sed 's,.*/,,'` by configure."
drh75897232000-05-29 14:26:00 +000021578
drh71eb93e2001-09-28 01:34:43 +000021579 # First look for the input files in the build tree, otherwise in the
21580 # src tree.
21581 ac_file_inputs=`IFS=:
21582 for f in $ac_file_in; do
21583 case $f in
21584 -) echo $tmp/stdin ;;
21585 [\\/$]*)
a.rottmann964dbb12004-02-26 19:47:42 +000021586 # Absolute (can't be DOS-style, as IFS=:)
21587 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
drh71eb93e2001-09-28 01:34:43 +000021588echo "$as_me: error: cannot find input file: $f" >&2;}
21589 { (exit 1); exit 1; }; }
a.rottmann964dbb12004-02-26 19:47:42 +000021590 echo "$f";;
drh71eb93e2001-09-28 01:34:43 +000021591 *) # Relative
a.rottmann964dbb12004-02-26 19:47:42 +000021592 if test -f "$f"; then
21593 # Build tree
21594 echo "$f"
21595 elif test -f "$srcdir/$f"; then
21596 # Source tree
21597 echo "$srcdir/$f"
21598 else
21599 # /dev/null tree
21600 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
drh71eb93e2001-09-28 01:34:43 +000021601echo "$as_me: error: cannot find input file: $f" >&2;}
21602 { (exit 1); exit 1; }; }
a.rottmann964dbb12004-02-26 19:47:42 +000021603 fi;;
drh71eb93e2001-09-28 01:34:43 +000021604 esac
21605 done` || { (exit 1); exit 1; }
a.rottmann84e63352003-03-24 09:42:16 +000021606_ACEOF
21607cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021608 sed "$ac_vpsub
21609$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000021610_ACEOF
21611cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021612:t
21613/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21614s,@configure_input@,$configure_input,;t t
21615s,@srcdir@,$ac_srcdir,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021616s,@abs_srcdir@,$ac_abs_srcdir,;t t
drh71eb93e2001-09-28 01:34:43 +000021617s,@top_srcdir@,$ac_top_srcdir,;t t
a.rottmann84e63352003-03-24 09:42:16 +000021618s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21619s,@builddir@,$ac_builddir,;t t
21620s,@abs_builddir@,$ac_abs_builddir,;t t
21621s,@top_builddir@,$ac_top_builddir,;t t
21622s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
drh71eb93e2001-09-28 01:34:43 +000021623s,@INSTALL@,$ac_INSTALL,;t t
21624" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21625 rm -f $tmp/stdin
21626 if test x"$ac_file" != x-; then
21627 mv $tmp/out $ac_file
21628 else
21629 cat $tmp/out
21630 rm -f $tmp/out
21631 fi
drh75897232000-05-29 14:26:00 +000021632
drh71eb93e2001-09-28 01:34:43 +000021633done
a.rottmann84e63352003-03-24 09:42:16 +000021634_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021635
a.rottmann84e63352003-03-24 09:42:16 +000021636cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021637
21638{ (exit 0); exit 0; }
a.rottmann84e63352003-03-24 09:42:16 +000021639_ACEOF
drh75897232000-05-29 14:26:00 +000021640chmod +x $CONFIG_STATUS
drh71eb93e2001-09-28 01:34:43 +000021641ac_clean_files=$ac_clean_files_save
21642
a.rottmann84e63352003-03-24 09:42:16 +000021643
drh71eb93e2001-09-28 01:34:43 +000021644# configure is writing to config.log, and then calls config.status.
21645# config.status does its own redirection, appending to config.log.
21646# Unfortunately, on DOS this fails, as config.log is still kept open
21647# by configure, so config.status won't be able to write to it; its
21648# output is simply discarded. So we exec the FD to /dev/null,
21649# effectively closing config.log, so it can be properly (re)opened and
21650# appended to by config.status. When coming back to configure, we
21651# need to make the FD available again.
21652if test "$no_create" != yes; then
21653 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000021654 ac_config_status_args=
21655 test "$silent" = yes &&
21656 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000021657 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000021658 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000021659 exec 5>>config.log
21660 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21661 # would make configure fail if this is the last instruction.
21662 $ac_cs_success || { (exit 1); exit 1; }
21663fi
drh75897232000-05-29 14:26:00 +000021664