blob: b7cf75d5cd1c234c2fa53f656fef945f754d1ea8 [file] [log] [blame]
brynercb91a2f2006-08-25 21:14:45 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for airbag 0.1.
4#
5# Report bugs to <opensource@google.com>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization. ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254 ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
263 :
264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
266 :
267else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<EOF
276$*
277EOF
278 exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
brynerd5e66382006-09-08 02:35:53 +0000283if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
brynercb91a2f2006-08-25 21:14:45 +0000284
285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
brynerd5e66382006-09-08 02:35:53 +0000290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
brynercb91a2f2006-08-25 21:14:45 +0000292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then
294 break
295 fi
296 done
297fi
298
299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
302 :
303else
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
307 #
308 # So, first we look for a working echo in the user's PATH.
309
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
312 IFS="$lt_save_ifs"
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
317 echo="$dir/echo"
318 break
319 fi
320 done
321 IFS="$lt_save_ifs"
322
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
329 echo='print -r'
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
336 export CONFIG_SHELL
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 else
339 # Try using printf.
340 echo='printf %s\n'
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
344 # Cool, printf works
345 :
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 export CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
353 export SHELL
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
360 else
361 # maybe with a smaller string...
362 prev=:
363
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366 then
367 break
368 fi
369 prev="$cmd"
370 done
371
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 else
377 # Oops. We lost completely, so just stick with echo.
378 echo=echo
379 fi
380 fi
381 fi
382 fi
383fi
384fi
385
386# Copy echo and quote the copy suitably for passing to libtool from
387# the Makefile, instead of quoting the original, which is used later.
388ECHO=$echo
389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391fi
392
393
394
395
396tagnames=${tagnames+${tagnames},}CXX
397
398tagnames=${tagnames+${tagnames},}F77
399
400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
411ac_config_libobj_dir=.
412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete. It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
424PACKAGE_NAME='airbag'
425PACKAGE_TARNAME='airbag'
426PACKAGE_VERSION='0.1'
427PACKAGE_STRING='airbag 0.1'
428PACKAGE_BUGREPORT='opensource@google.com'
429
430ac_unique_file="README"
431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445# include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450# include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461# include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
mmentovai425d2562006-08-30 20:05:05 +0000468ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE F77 FFLAGS ac_ct_F77 build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP LIBTOOL LIBTOOL_DEPS LIBOBJS LTLIBOBJS'
brynercb91a2f2006-08-25 21:14:45 +0000469ac_subst_files=''
470
471# Initialize some variables set by options.
472ac_init_help=
473ac_init_version=false
474# The variables have the same names as the options, with
475# dashes changed to underlines.
476cache_file=/dev/null
477exec_prefix=NONE
478no_create=
479no_recursion=
480prefix=NONE
481program_prefix=NONE
482program_suffix=NONE
483program_transform_name=s,x,x,
484silent=
485site=
486srcdir=
487verbose=
488x_includes=NONE
489x_libraries=NONE
490
491# Installation directory options.
492# These are left unexpanded so users can "make install exec_prefix=/foo"
493# and all the variables that are supposed to be based on exec_prefix
494# by default will actually change.
495# Use braces instead of parens because sh, perl, etc. also accept them.
496bindir='${exec_prefix}/bin'
497sbindir='${exec_prefix}/sbin'
498libexecdir='${exec_prefix}/libexec'
499datadir='${prefix}/share'
500sysconfdir='${prefix}/etc'
501sharedstatedir='${prefix}/com'
502localstatedir='${prefix}/var'
503libdir='${exec_prefix}/lib'
504includedir='${prefix}/include'
505oldincludedir='/usr/include'
506infodir='${prefix}/info'
507mandir='${prefix}/man'
508
509ac_prev=
510for ac_option
511do
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
515 ac_prev=
516 continue
517 fi
518
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521 # Accept the important Cygnus configure options, so we can diagnose typos.
522
523 case $ac_option in
524
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 bindir=$ac_optarg ;;
529
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
534
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
541
542 --config-cache | -C)
543 cache_file=config.cache ;;
544
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 ac_prev=datadir ;;
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 | --da=*)
549 datadir=$ac_optarg ;;
550
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
559
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 case $ac_option in
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 *) ac_optarg=yes ;;
570 esac
571 eval "enable_$ac_feature='$ac_optarg'" ;;
572
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
581
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
584 with_gas=yes ;;
585
586 -help | --help | --hel | --he | -h)
587 ac_init_help=long ;;
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
592
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
597
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
604
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 ac_prev=infodir ;;
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
609
610 -libdir | --libdir | --libdi | --libd)
611 ac_prev=libdir ;;
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 libdir=$ac_optarg ;;
614
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
621
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
630
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 ac_prev=mandir ;;
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634 mandir=$ac_optarg ;;
635
636 -nfp | --nfp | --nf)
637 # Obsolete; use --without-fp.
638 with_fp=no ;;
639
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
642 no_create=yes ;;
643
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 no_recursion=yes ;;
647
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
656
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 ac_prev=prefix ;;
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 prefix=$ac_optarg ;;
661
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
668
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
675
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
692
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
695 silent=yes ;;
696
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 ac_prev=sbindir ;;
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 | --sbi=* | --sb=*)
701 sbindir=$ac_optarg ;;
702
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
706 | --sha | --sh)
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 | --sha=* | --sh=*)
712 sharedstatedir=$ac_optarg ;;
713
714 -site | --site | --sit)
715 ac_prev=site ;;
716 -site=* | --site=* | --sit=*)
717 site=$ac_optarg ;;
718
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 ac_prev=srcdir ;;
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 srcdir=$ac_optarg ;;
723
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
730
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
735
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 verbose=yes ;;
738
739 -version | --version | --versio | --versi | --vers | -V)
740 ac_init_version=: ;;
741
742 -with-* | --with-*)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 case $ac_option in
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 *) ac_optarg=yes ;;
752 esac
753 eval "with_$ac_package='$ac_optarg'" ;;
754
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
763
764 --x)
765 # Obsolete; use --with-x.
766 with_x=yes ;;
767
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
774
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
781
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
785 ;;
786
787 *=*)
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
795 export $ac_envvar ;;
796
797 *)
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803 ;;
804
805 esac
806done
807
808if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
812fi
813
814# Be sure to have absolute paths.
815for ac_var in exec_prefix prefix
816do
817 eval ac_val=$`echo $ac_var`
818 case $ac_val in
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
822 esac
823done
824
825# Be sure to have absolute paths.
826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
828do
829 eval ac_val=$`echo $ac_var`
830 case $ac_val in
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
834 esac
835done
836
837# There might be people who depend on the old broken behavior: `$host'
838# used to hold the argument of --host etc.
839# FIXME: To remove some day.
840build=$build_alias
841host=$host_alias
842target=$target_alias
843
844# FIXME: To remove some day.
845if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
851 cross_compiling=yes
852 fi
853fi
854
855ac_tool_prefix=
856test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858test "$silent" = yes && exec 6>/dev/null
859
860
861# Find the source files, if location was not specified.
862if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
871echo X"$0" |
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
876 s/.*/./; q'`
877 srcdir=$ac_confdir
878 if test ! -r $srcdir/$ac_unique_file; then
879 srcdir=..
880 fi
881else
882 ac_srcdir_defaulted=no
883fi
884if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
888 else
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
891 fi
892fi
893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897ac_env_build_alias_set=${build_alias+set}
898ac_env_build_alias_value=$build_alias
899ac_cv_env_build_alias_set=${build_alias+set}
900ac_cv_env_build_alias_value=$build_alias
901ac_env_host_alias_set=${host_alias+set}
902ac_env_host_alias_value=$host_alias
903ac_cv_env_host_alias_set=${host_alias+set}
904ac_cv_env_host_alias_value=$host_alias
905ac_env_target_alias_set=${target_alias+set}
906ac_env_target_alias_value=$target_alias
907ac_cv_env_target_alias_set=${target_alias+set}
908ac_cv_env_target_alias_value=$target_alias
909ac_env_CC_set=${CC+set}
910ac_env_CC_value=$CC
911ac_cv_env_CC_set=${CC+set}
912ac_cv_env_CC_value=$CC
913ac_env_CFLAGS_set=${CFLAGS+set}
914ac_env_CFLAGS_value=$CFLAGS
915ac_cv_env_CFLAGS_set=${CFLAGS+set}
916ac_cv_env_CFLAGS_value=$CFLAGS
917ac_env_LDFLAGS_set=${LDFLAGS+set}
918ac_env_LDFLAGS_value=$LDFLAGS
919ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920ac_cv_env_LDFLAGS_value=$LDFLAGS
921ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_env_CPPFLAGS_value=$CPPFLAGS
923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925ac_env_CPP_set=${CPP+set}
926ac_env_CPP_value=$CPP
927ac_cv_env_CPP_set=${CPP+set}
928ac_cv_env_CPP_value=$CPP
929ac_env_CXX_set=${CXX+set}
930ac_env_CXX_value=$CXX
931ac_cv_env_CXX_set=${CXX+set}
932ac_cv_env_CXX_value=$CXX
933ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_env_CXXFLAGS_value=$CXXFLAGS
935ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937ac_env_CXXCPP_set=${CXXCPP+set}
938ac_env_CXXCPP_value=$CXXCPP
939ac_cv_env_CXXCPP_set=${CXXCPP+set}
940ac_cv_env_CXXCPP_value=$CXXCPP
brynercb91a2f2006-08-25 21:14:45 +0000941
942#
943# Report the --help message.
944#
945if test "$ac_init_help" = "long"; then
946 # Omit some internal or obsolete options to make the list less imposing.
947 # This message is too long to be a string in the A/UX 3.1 sh.
948 cat <<_ACEOF
949\`configure' configures airbag 0.1 to adapt to many kinds of systems.
950
951Usage: $0 [OPTION]... [VAR=VALUE]...
952
953To assign environment variables (e.g., CC, CFLAGS...), specify them as
954VAR=VALUE. See below for descriptions of some of the useful variables.
955
956Defaults for the options are specified in brackets.
957
958Configuration:
959 -h, --help display this help and exit
960 --help=short display options specific to this package
961 --help=recursive display the short help of all the included packages
962 -V, --version display version information and exit
963 -q, --quiet, --silent do not print \`checking...' messages
964 --cache-file=FILE cache test results in FILE [disabled]
965 -C, --config-cache alias for \`--cache-file=config.cache'
966 -n, --no-create do not create output files
967 --srcdir=DIR find the sources in DIR [configure dir or \`..']
968
969_ACEOF
970
971 cat <<_ACEOF
972Installation directories:
973 --prefix=PREFIX install architecture-independent files in PREFIX
974 [$ac_default_prefix]
975 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
976 [PREFIX]
977
978By default, \`make install' will install all the files in
979\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
980an installation prefix other than \`$ac_default_prefix' using \`--prefix',
981for instance \`--prefix=\$HOME'.
982
983For better control, use the options below.
984
985Fine tuning of the installation directories:
986 --bindir=DIR user executables [EPREFIX/bin]
987 --sbindir=DIR system admin executables [EPREFIX/sbin]
988 --libexecdir=DIR program executables [EPREFIX/libexec]
989 --datadir=DIR read-only architecture-independent data [PREFIX/share]
990 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
991 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
992 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
993 --libdir=DIR object code libraries [EPREFIX/lib]
994 --includedir=DIR C header files [PREFIX/include]
995 --oldincludedir=DIR C header files for non-gcc [/usr/include]
996 --infodir=DIR info documentation [PREFIX/info]
997 --mandir=DIR man documentation [PREFIX/man]
998_ACEOF
999
1000 cat <<\_ACEOF
1001
1002Program names:
1003 --program-prefix=PREFIX prepend PREFIX to installed program names
1004 --program-suffix=SUFFIX append SUFFIX to installed program names
1005 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1006
1007System types:
1008 --build=BUILD configure for building on BUILD [guessed]
1009 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1010_ACEOF
1011fi
1012
1013if test -n "$ac_init_help"; then
1014 case $ac_init_help in
1015 short | recursive ) echo "Configuration of airbag 0.1:";;
1016 esac
1017 cat <<\_ACEOF
1018
1019Optional Features:
1020 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1021 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1022 --disable-dependency-tracking speeds up one-time build
1023 --enable-dependency-tracking do not reject slow dependency extractors
1024 --enable-shared[=PKGS]
1025 build shared libraries [default=yes]
1026 --enable-static[=PKGS]
1027 build static libraries [default=yes]
1028 --enable-fast-install[=PKGS]
1029 optimize for fast installation [default=yes]
1030 --disable-libtool-lock avoid locking (might break parallel builds)
brynercb91a2f2006-08-25 21:14:45 +00001031
1032Optional Packages:
1033 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1034 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1035 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1036 --with-pic try to use only PIC/non-PIC objects [default=use
1037 both]
1038 --with-tags[=TAGS]
1039 include additional configurations [automatic]
1040
1041Some influential environment variables:
1042 CC C compiler command
1043 CFLAGS C compiler flags
1044 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1045 nonstandard directory <lib dir>
1046 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1047 headers in a nonstandard directory <include dir>
1048 CPP C preprocessor
1049 CXX C++ compiler command
1050 CXXFLAGS C++ compiler flags
1051 CXXCPP C++ preprocessor
brynercb91a2f2006-08-25 21:14:45 +00001052
1053Use these variables to override the choices made by `configure' or to help
1054it to find libraries and programs with nonstandard names/locations.
1055
1056Report bugs to <opensource@google.com>.
1057_ACEOF
1058fi
1059
1060if test "$ac_init_help" = "recursive"; then
1061 # If there are subdirs, report their specific --help.
1062 ac_popdir=`pwd`
1063 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1064 test -d $ac_dir || continue
1065 ac_builddir=.
1066
1067if test "$ac_dir" != .; then
1068 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1069 # A "../" for each directory in $ac_dir_suffix.
1070 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1071else
1072 ac_dir_suffix= ac_top_builddir=
1073fi
1074
1075case $srcdir in
1076 .) # No --srcdir option. We are building in place.
1077 ac_srcdir=.
1078 if test -z "$ac_top_builddir"; then
1079 ac_top_srcdir=.
1080 else
1081 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1082 fi ;;
1083 [\\/]* | ?:[\\/]* ) # Absolute path.
1084 ac_srcdir=$srcdir$ac_dir_suffix;
1085 ac_top_srcdir=$srcdir ;;
1086 *) # Relative path.
1087 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1088 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1089esac
1090
1091# Do not use `cd foo && pwd` to compute absolute paths, because
1092# the directories may not exist.
1093case `pwd` in
1094.) ac_abs_builddir="$ac_dir";;
1095*)
1096 case "$ac_dir" in
1097 .) ac_abs_builddir=`pwd`;;
1098 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1099 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1100 esac;;
1101esac
1102case $ac_abs_builddir in
1103.) ac_abs_top_builddir=${ac_top_builddir}.;;
1104*)
1105 case ${ac_top_builddir}. in
1106 .) ac_abs_top_builddir=$ac_abs_builddir;;
1107 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1108 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1109 esac;;
1110esac
1111case $ac_abs_builddir in
1112.) ac_abs_srcdir=$ac_srcdir;;
1113*)
1114 case $ac_srcdir in
1115 .) ac_abs_srcdir=$ac_abs_builddir;;
1116 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1117 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1118 esac;;
1119esac
1120case $ac_abs_builddir in
1121.) ac_abs_top_srcdir=$ac_top_srcdir;;
1122*)
1123 case $ac_top_srcdir in
1124 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1125 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1126 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1127 esac;;
1128esac
1129
1130 cd $ac_dir
1131 # Check for guested configure; otherwise get Cygnus style configure.
1132 if test -f $ac_srcdir/configure.gnu; then
1133 echo
1134 $SHELL $ac_srcdir/configure.gnu --help=recursive
1135 elif test -f $ac_srcdir/configure; then
1136 echo
1137 $SHELL $ac_srcdir/configure --help=recursive
1138 elif test -f $ac_srcdir/configure.ac ||
1139 test -f $ac_srcdir/configure.in; then
1140 echo
1141 $ac_configure --help
1142 else
1143 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1144 fi
brynerd5e66382006-09-08 02:35:53 +00001145 cd "$ac_popdir"
brynercb91a2f2006-08-25 21:14:45 +00001146 done
1147fi
1148
1149test -n "$ac_init_help" && exit 0
1150if $ac_init_version; then
1151 cat <<\_ACEOF
1152airbag configure 0.1
1153generated by GNU Autoconf 2.59
1154
1155Copyright (C) 2003 Free Software Foundation, Inc.
1156This configure script is free software; the Free Software Foundation
1157gives unlimited permission to copy, distribute and modify it.
1158_ACEOF
1159 exit 0
1160fi
1161exec 5>config.log
1162cat >&5 <<_ACEOF
1163This file contains any messages produced by compilers while
1164running configure, to aid debugging if configure makes a mistake.
1165
1166It was created by airbag $as_me 0.1, which was
1167generated by GNU Autoconf 2.59. Invocation command line was
1168
1169 $ $0 $@
1170
1171_ACEOF
1172{
1173cat <<_ASUNAME
1174## --------- ##
1175## Platform. ##
1176## --------- ##
1177
1178hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1179uname -m = `(uname -m) 2>/dev/null || echo unknown`
1180uname -r = `(uname -r) 2>/dev/null || echo unknown`
1181uname -s = `(uname -s) 2>/dev/null || echo unknown`
1182uname -v = `(uname -v) 2>/dev/null || echo unknown`
1183
1184/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1185/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1186
1187/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1188/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1189/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1190hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1191/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1192/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1193/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1194
1195_ASUNAME
1196
1197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1198for as_dir in $PATH
1199do
1200 IFS=$as_save_IFS
1201 test -z "$as_dir" && as_dir=.
1202 echo "PATH: $as_dir"
1203done
1204
1205} >&5
1206
1207cat >&5 <<_ACEOF
1208
1209
1210## ----------- ##
1211## Core tests. ##
1212## ----------- ##
1213
1214_ACEOF
1215
1216
1217# Keep a trace of the command line.
1218# Strip out --no-create and --no-recursion so they do not pile up.
1219# Strip out --silent because we don't want to record it for future runs.
1220# Also quote any args containing shell meta-characters.
1221# Make two passes to allow for proper duplicate-argument suppression.
1222ac_configure_args=
1223ac_configure_args0=
1224ac_configure_args1=
1225ac_sep=
1226ac_must_keep_next=false
1227for ac_pass in 1 2
1228do
1229 for ac_arg
1230 do
1231 case $ac_arg in
1232 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1234 | -silent | --silent | --silen | --sile | --sil)
1235 continue ;;
1236 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1237 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1238 esac
1239 case $ac_pass in
1240 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1241 2)
1242 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1243 if test $ac_must_keep_next = true; then
1244 ac_must_keep_next=false # Got value, back to normal.
1245 else
1246 case $ac_arg in
1247 *=* | --config-cache | -C | -disable-* | --disable-* \
1248 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1249 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1250 | -with-* | --with-* | -without-* | --without-* | --x)
1251 case "$ac_configure_args0 " in
1252 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1253 esac
1254 ;;
1255 -* ) ac_must_keep_next=true ;;
1256 esac
1257 fi
1258 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1259 # Get rid of the leading space.
1260 ac_sep=" "
1261 ;;
1262 esac
1263 done
1264done
1265$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1266$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1267
1268# When interrupted or exit'd, cleanup temporary files, and complete
1269# config.log. We remove comments because anyway the quotes in there
1270# would cause problems or look ugly.
1271# WARNING: Be sure not to use single quotes in there, as some shells,
1272# such as our DU 5.0 friend, will then `close' the trap.
1273trap 'exit_status=$?
1274 # Save into config.log some information that might help in debugging.
1275 {
1276 echo
1277
1278 cat <<\_ASBOX
1279## ---------------- ##
1280## Cache variables. ##
1281## ---------------- ##
1282_ASBOX
1283 echo
1284 # The following way of writing the cache mishandles newlines in values,
1285{
1286 (set) 2>&1 |
1287 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1288 *ac_space=\ *)
1289 sed -n \
1290 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1291 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1292 ;;
1293 *)
1294 sed -n \
1295 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1296 ;;
1297 esac;
1298}
1299 echo
1300
1301 cat <<\_ASBOX
1302## ----------------- ##
1303## Output variables. ##
1304## ----------------- ##
1305_ASBOX
1306 echo
1307 for ac_var in $ac_subst_vars
1308 do
1309 eval ac_val=$`echo $ac_var`
1310 echo "$ac_var='"'"'$ac_val'"'"'"
1311 done | sort
1312 echo
1313
1314 if test -n "$ac_subst_files"; then
1315 cat <<\_ASBOX
1316## ------------- ##
1317## Output files. ##
1318## ------------- ##
1319_ASBOX
1320 echo
1321 for ac_var in $ac_subst_files
1322 do
1323 eval ac_val=$`echo $ac_var`
1324 echo "$ac_var='"'"'$ac_val'"'"'"
1325 done | sort
1326 echo
1327 fi
1328
1329 if test -s confdefs.h; then
1330 cat <<\_ASBOX
1331## ----------- ##
1332## confdefs.h. ##
1333## ----------- ##
1334_ASBOX
1335 echo
1336 sed "/^$/d" confdefs.h | sort
1337 echo
1338 fi
1339 test "$ac_signal" != 0 &&
1340 echo "$as_me: caught signal $ac_signal"
1341 echo "$as_me: exit $exit_status"
1342 } >&5
1343 rm -f core *.core &&
1344 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1345 exit $exit_status
1346 ' 0
1347for ac_signal in 1 2 13 15; do
1348 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1349done
1350ac_signal=0
1351
1352# confdefs.h avoids OS command line length limits that DEFS can exceed.
1353rm -rf conftest* confdefs.h
1354# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1355echo >confdefs.h
1356
1357# Predefined preprocessor variables.
1358
1359cat >>confdefs.h <<_ACEOF
1360#define PACKAGE_NAME "$PACKAGE_NAME"
1361_ACEOF
1362
1363
1364cat >>confdefs.h <<_ACEOF
1365#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1366_ACEOF
1367
1368
1369cat >>confdefs.h <<_ACEOF
1370#define PACKAGE_VERSION "$PACKAGE_VERSION"
1371_ACEOF
1372
1373
1374cat >>confdefs.h <<_ACEOF
1375#define PACKAGE_STRING "$PACKAGE_STRING"
1376_ACEOF
1377
1378
1379cat >>confdefs.h <<_ACEOF
1380#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1381_ACEOF
1382
1383
1384# Let the site file select an alternate cache file if it wants to.
1385# Prefer explicitly selected file to automatically selected ones.
1386if test -z "$CONFIG_SITE"; then
1387 if test "x$prefix" != xNONE; then
1388 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1389 else
1390 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1391 fi
1392fi
1393for ac_site_file in $CONFIG_SITE; do
1394 if test -r "$ac_site_file"; then
1395 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1396echo "$as_me: loading site script $ac_site_file" >&6;}
1397 sed 's/^/| /' "$ac_site_file" >&5
1398 . "$ac_site_file"
1399 fi
1400done
1401
1402if test -r "$cache_file"; then
1403 # Some versions of bash will fail to source /dev/null (special
1404 # files actually), so we avoid doing that.
1405 if test -f "$cache_file"; then
1406 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1407echo "$as_me: loading cache $cache_file" >&6;}
1408 case $cache_file in
1409 [\\/]* | ?:[\\/]* ) . $cache_file;;
1410 *) . ./$cache_file;;
1411 esac
1412 fi
1413else
1414 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1415echo "$as_me: creating cache $cache_file" >&6;}
1416 >$cache_file
1417fi
1418
1419# Check that the precious variables saved in the cache have kept the same
1420# value.
1421ac_cache_corrupted=false
1422for ac_var in `(set) 2>&1 |
1423 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1424 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1425 eval ac_new_set=\$ac_env_${ac_var}_set
1426 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1427 eval ac_new_val="\$ac_env_${ac_var}_value"
1428 case $ac_old_set,$ac_new_set in
1429 set,)
1430 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1431echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1432 ac_cache_corrupted=: ;;
1433 ,set)
1434 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1435echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1436 ac_cache_corrupted=: ;;
1437 ,);;
1438 *)
1439 if test "x$ac_old_val" != "x$ac_new_val"; then
1440 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1441echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1442 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1443echo "$as_me: former value: $ac_old_val" >&2;}
1444 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1445echo "$as_me: current value: $ac_new_val" >&2;}
1446 ac_cache_corrupted=:
1447 fi;;
1448 esac
1449 # Pass precious variables to config.status.
1450 if test "$ac_new_set" = set; then
1451 case $ac_new_val in
1452 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1453 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1454 *) ac_arg=$ac_var=$ac_new_val ;;
1455 esac
1456 case " $ac_configure_args " in
1457 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1458 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1459 esac
1460 fi
1461done
1462if $ac_cache_corrupted; then
1463 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1464echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1465 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1466echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1467 { (exit 1); exit 1; }; }
1468fi
1469
1470ac_ext=c
1471ac_cpp='$CPP $CPPFLAGS'
1472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1474ac_compiler_gnu=$ac_cv_c_compiler_gnu
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
brynercb91a2f2006-08-25 21:14:45 +00001502
brynercb91a2f2006-08-25 21:14:45 +00001503ac_aux_dir=
mmentovai425d2562006-08-30 20:05:05 +00001504for ac_dir in autotools $srcdir/autotools; do
brynercb91a2f2006-08-25 21:14:45 +00001505 if test -f $ac_dir/install-sh; then
1506 ac_aux_dir=$ac_dir
1507 ac_install_sh="$ac_aux_dir/install-sh -c"
1508 break
1509 elif test -f $ac_dir/install.sh; then
1510 ac_aux_dir=$ac_dir
1511 ac_install_sh="$ac_aux_dir/install.sh -c"
1512 break
1513 elif test -f $ac_dir/shtool; then
1514 ac_aux_dir=$ac_dir
1515 ac_install_sh="$ac_aux_dir/shtool install -c"
1516 break
1517 fi
1518done
1519if test -z "$ac_aux_dir"; then
mmentovai425d2562006-08-30 20:05:05 +00001520 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autotools $srcdir/autotools" >&5
1521echo "$as_me: error: cannot find install-sh or install.sh in autotools $srcdir/autotools" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00001522 { (exit 1); exit 1; }; }
1523fi
1524ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1525ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1526ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1527
mmentovai425d2562006-08-30 20:05:05 +00001528
1529am__api_version="1.9"
brynercb91a2f2006-08-25 21:14:45 +00001530# Find a good install program. We prefer a C program (faster),
1531# so one script is as good as another. But avoid the broken or
1532# incompatible versions:
1533# SysV /etc/install, /usr/sbin/install
1534# SunOS /usr/etc/install
1535# IRIX /sbin/install
1536# AIX /bin/install
1537# AmigaOS /C/install, which installs bootblocks on floppy discs
1538# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1539# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1540# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1541# OS/2's system install, which has a completely different semantic
1542# ./install, which can be erroneously created by make from ./install.sh.
1543echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1544echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1545if test -z "$INSTALL"; then
1546if test "${ac_cv_path_install+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1548else
1549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1550for as_dir in $PATH
1551do
1552 IFS=$as_save_IFS
1553 test -z "$as_dir" && as_dir=.
1554 # Account for people who put trailing slashes in PATH elements.
1555case $as_dir/ in
1556 ./ | .// | /cC/* | \
1557 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1558 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1559 /usr/ucb/* ) ;;
1560 *)
1561 # OSF1 and SCO ODT 3.0 have their own names for install.
1562 # Don't use installbsd from OSF since it installs stuff as root
1563 # by default.
1564 for ac_prog in ginstall scoinst install; do
1565 for ac_exec_ext in '' $ac_executable_extensions; do
1566 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1567 if test $ac_prog = install &&
1568 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1569 # AIX install. It has an incompatible calling convention.
1570 :
1571 elif test $ac_prog = install &&
1572 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1573 # program-specific install script used by HP pwplus--don't use.
1574 :
1575 else
1576 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1577 break 3
1578 fi
1579 fi
1580 done
1581 done
1582 ;;
1583esac
1584done
1585
1586
1587fi
1588 if test "${ac_cv_path_install+set}" = set; then
1589 INSTALL=$ac_cv_path_install
1590 else
1591 # As a last resort, use the slow shell script. We don't cache a
1592 # path for INSTALL within a source directory, because that will
1593 # break other packages using the cache if that directory is
1594 # removed, or if the path is relative.
1595 INSTALL=$ac_install_sh
1596 fi
1597fi
1598echo "$as_me:$LINENO: result: $INSTALL" >&5
1599echo "${ECHO_T}$INSTALL" >&6
1600
1601# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1602# It thinks the first close brace ends the variable substitution.
1603test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1604
1605test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1606
1607test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1608
1609echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1610echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1611# Just in case
1612sleep 1
1613echo timestamp > conftest.file
1614# Do `set' in a subshell so we don't clobber the current shell's
1615# arguments. Must try -L first in case configure is actually a
1616# symlink; some systems play weird games with the mod time of symlinks
1617# (eg FreeBSD returns the mod time of the symlink's containing
1618# directory).
1619if (
1620 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1621 if test "$*" = "X"; then
1622 # -L didn't work.
1623 set X `ls -t $srcdir/configure conftest.file`
1624 fi
1625 rm -f conftest.file
1626 if test "$*" != "X $srcdir/configure conftest.file" \
1627 && test "$*" != "X conftest.file $srcdir/configure"; then
1628
1629 # If neither matched, then we have a broken ls. This can happen
1630 # if, for instance, CONFIG_SHELL is bash and it inherits a
1631 # broken ls alias from the environment. This has actually
1632 # happened. Such a system could not be considered "sane".
1633 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1634alias in your environment" >&5
1635echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1636alias in your environment" >&2;}
1637 { (exit 1); exit 1; }; }
1638 fi
1639
1640 test "$2" = conftest.file
1641 )
1642then
1643 # Ok.
1644 :
1645else
1646 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1647Check your system clock" >&5
1648echo "$as_me: error: newly created file is older than distributed files!
1649Check your system clock" >&2;}
1650 { (exit 1); exit 1; }; }
1651fi
1652echo "$as_me:$LINENO: result: yes" >&5
1653echo "${ECHO_T}yes" >&6
1654test "$program_prefix" != NONE &&
1655 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1656# Use a double $ so make ignores it.
1657test "$program_suffix" != NONE &&
1658 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1659# Double any \ or $. echo might interpret backslashes.
1660# By default was `s,x,x', remove it if useless.
1661cat <<\_ACEOF >conftest.sed
1662s/[\\$]/&&/g;s/;s,x,x,$//
1663_ACEOF
1664program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1665rm conftest.sed
1666
1667# expand $ac_aux_dir to an absolute path
1668am_aux_dir=`cd $ac_aux_dir && pwd`
1669
1670test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1671# Use eval to expand $SHELL
1672if eval "$MISSING --run true"; then
1673 am_missing_run="$MISSING --run "
1674else
1675 am_missing_run=
1676 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1677echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1678fi
1679
1680if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1681 # We used to keeping the `.' as first argument, in order to
1682 # allow $(mkdir_p) to be used without argument. As in
1683 # $(mkdir_p) $(somedir)
1684 # where $(somedir) is conditionally defined. However this is wrong
1685 # for two reasons:
1686 # 1. if the package is installed by a user who cannot write `.'
1687 # make install will fail,
1688 # 2. the above comment should most certainly read
1689 # $(mkdir_p) $(DESTDIR)$(somedir)
1690 # so it does not work when $(somedir) is undefined and
1691 # $(DESTDIR) is not.
1692 # To support the latter case, we have to write
1693 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1694 # so the `.' trick is pointless.
1695 mkdir_p='mkdir -p --'
1696else
1697 # On NextStep and OpenStep, the `mkdir' command does not
1698 # recognize any option. It will interpret all options as
1699 # directories to create, and then abort because `.' already
1700 # exists.
1701 for d in ./-p ./--version;
1702 do
1703 test -d $d && rmdir $d
1704 done
1705 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1706 if test -f "$ac_aux_dir/mkinstalldirs"; then
1707 mkdir_p='$(mkinstalldirs)'
1708 else
1709 mkdir_p='$(install_sh) -d'
1710 fi
1711fi
1712
1713for ac_prog in gawk mawk nawk awk
1714do
1715 # Extract the first word of "$ac_prog", so it can be a program name with args.
1716set dummy $ac_prog; ac_word=$2
1717echo "$as_me:$LINENO: checking for $ac_word" >&5
1718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719if test "${ac_cv_prog_AWK+set}" = set; then
1720 echo $ECHO_N "(cached) $ECHO_C" >&6
1721else
1722 if test -n "$AWK"; then
1723 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1724else
1725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726for as_dir in $PATH
1727do
1728 IFS=$as_save_IFS
1729 test -z "$as_dir" && as_dir=.
1730 for ac_exec_ext in '' $ac_executable_extensions; do
1731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732 ac_cv_prog_AWK="$ac_prog"
1733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1734 break 2
1735 fi
1736done
1737done
1738
1739fi
1740fi
1741AWK=$ac_cv_prog_AWK
1742if test -n "$AWK"; then
1743 echo "$as_me:$LINENO: result: $AWK" >&5
1744echo "${ECHO_T}$AWK" >&6
1745else
1746 echo "$as_me:$LINENO: result: no" >&5
1747echo "${ECHO_T}no" >&6
1748fi
1749
1750 test -n "$AWK" && break
1751done
1752
1753echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1754echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1755set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1756if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1757 echo $ECHO_N "(cached) $ECHO_C" >&6
1758else
1759 cat >conftest.make <<\_ACEOF
1760all:
1761 @echo 'ac_maketemp="$(MAKE)"'
1762_ACEOF
1763# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1764eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1765if test -n "$ac_maketemp"; then
1766 eval ac_cv_prog_make_${ac_make}_set=yes
1767else
1768 eval ac_cv_prog_make_${ac_make}_set=no
1769fi
1770rm -f conftest.make
1771fi
1772if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1773 echo "$as_me:$LINENO: result: yes" >&5
1774echo "${ECHO_T}yes" >&6
1775 SET_MAKE=
1776else
1777 echo "$as_me:$LINENO: result: no" >&5
1778echo "${ECHO_T}no" >&6
1779 SET_MAKE="MAKE=${MAKE-make}"
1780fi
1781
1782rm -rf .tst 2>/dev/null
1783mkdir .tst 2>/dev/null
1784if test -d .tst; then
1785 am__leading_dot=.
1786else
1787 am__leading_dot=_
1788fi
1789rmdir .tst 2>/dev/null
1790
1791# test to see if srcdir already configured
1792if test "`cd $srcdir && pwd`" != "`pwd`" &&
1793 test -f $srcdir/config.status; then
1794 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1795echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1796 { (exit 1); exit 1; }; }
1797fi
1798
1799# test whether we have cygpath
1800if test -z "$CYGPATH_W"; then
1801 if (cygpath --version) >/dev/null 2>/dev/null; then
1802 CYGPATH_W='cygpath -w'
1803 else
1804 CYGPATH_W=echo
1805 fi
1806fi
1807
1808
1809# Define the identity of the package.
1810 PACKAGE='airbag'
1811 VERSION='0.1'
1812
1813
1814cat >>confdefs.h <<_ACEOF
1815#define PACKAGE "$PACKAGE"
1816_ACEOF
1817
1818
1819cat >>confdefs.h <<_ACEOF
1820#define VERSION "$VERSION"
1821_ACEOF
1822
1823# Some tools Automake needs.
1824
1825ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1826
1827
1828AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1829
1830
1831AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1832
1833
1834AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1835
1836
1837MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1838
1839install_sh=${install_sh-"$am_aux_dir/install-sh"}
1840
1841# Installed binaries are usually stripped using `strip' when the user
1842# run `make install-strip'. However `strip' might not be the right
1843# tool to use in cross-compilation environments, therefore Automake
1844# will honor the `STRIP' environment variable to overrule this program.
1845if test "$cross_compiling" != no; then
1846 if test -n "$ac_tool_prefix"; then
1847 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1848set dummy ${ac_tool_prefix}strip; ac_word=$2
1849echo "$as_me:$LINENO: checking for $ac_word" >&5
1850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1851if test "${ac_cv_prog_STRIP+set}" = set; then
1852 echo $ECHO_N "(cached) $ECHO_C" >&6
1853else
1854 if test -n "$STRIP"; then
1855 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1856else
1857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858for as_dir in $PATH
1859do
1860 IFS=$as_save_IFS
1861 test -z "$as_dir" && as_dir=.
1862 for ac_exec_ext in '' $ac_executable_extensions; do
1863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1864 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1866 break 2
1867 fi
1868done
1869done
1870
1871fi
1872fi
1873STRIP=$ac_cv_prog_STRIP
1874if test -n "$STRIP"; then
1875 echo "$as_me:$LINENO: result: $STRIP" >&5
1876echo "${ECHO_T}$STRIP" >&6
1877else
1878 echo "$as_me:$LINENO: result: no" >&5
1879echo "${ECHO_T}no" >&6
1880fi
1881
1882fi
1883if test -z "$ac_cv_prog_STRIP"; then
1884 ac_ct_STRIP=$STRIP
1885 # Extract the first word of "strip", so it can be a program name with args.
1886set dummy strip; ac_word=$2
1887echo "$as_me:$LINENO: checking for $ac_word" >&5
1888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1891else
1892 if test -n "$ac_ct_STRIP"; then
1893 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1894else
1895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896for as_dir in $PATH
1897do
1898 IFS=$as_save_IFS
1899 test -z "$as_dir" && as_dir=.
1900 for ac_exec_ext in '' $ac_executable_extensions; do
1901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902 ac_cv_prog_ac_ct_STRIP="strip"
1903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904 break 2
1905 fi
1906done
1907done
1908
1909 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1910fi
1911fi
1912ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1913if test -n "$ac_ct_STRIP"; then
1914 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1915echo "${ECHO_T}$ac_ct_STRIP" >&6
1916else
1917 echo "$as_me:$LINENO: result: no" >&5
1918echo "${ECHO_T}no" >&6
1919fi
1920
1921 STRIP=$ac_ct_STRIP
1922else
1923 STRIP="$ac_cv_prog_STRIP"
1924fi
1925
1926fi
1927INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1928
1929# We need awk for the "check" target. The system "awk" is bad on
1930# some platforms.
1931# Always define AMTAR for backward compatibility.
1932
1933AMTAR=${AMTAR-"${am_missing_run}tar"}
1934
1935am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1936
1937
1938
1939
1940
1941 ac_config_headers="$ac_config_headers src/config.h"
1942
1943
brynercb91a2f2006-08-25 21:14:45 +00001944ac_ext=c
1945ac_cpp='$CPP $CPPFLAGS'
1946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1948ac_compiler_gnu=$ac_cv_c_compiler_gnu
1949if test -n "$ac_tool_prefix"; then
1950 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1951set dummy ${ac_tool_prefix}gcc; ac_word=$2
1952echo "$as_me:$LINENO: checking for $ac_word" >&5
1953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1954if test "${ac_cv_prog_CC+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1956else
1957 if test -n "$CC"; then
1958 ac_cv_prog_CC="$CC" # Let the user override the test.
1959else
1960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961for as_dir in $PATH
1962do
1963 IFS=$as_save_IFS
1964 test -z "$as_dir" && as_dir=.
1965 for ac_exec_ext in '' $ac_executable_extensions; do
1966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1967 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1969 break 2
1970 fi
1971done
1972done
1973
1974fi
1975fi
1976CC=$ac_cv_prog_CC
1977if test -n "$CC"; then
1978 echo "$as_me:$LINENO: result: $CC" >&5
1979echo "${ECHO_T}$CC" >&6
1980else
1981 echo "$as_me:$LINENO: result: no" >&5
1982echo "${ECHO_T}no" >&6
1983fi
1984
1985fi
1986if test -z "$ac_cv_prog_CC"; then
1987 ac_ct_CC=$CC
1988 # Extract the first word of "gcc", so it can be a program name with args.
1989set dummy gcc; ac_word=$2
1990echo "$as_me:$LINENO: checking for $ac_word" >&5
1991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1992if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1993 echo $ECHO_N "(cached) $ECHO_C" >&6
1994else
1995 if test -n "$ac_ct_CC"; then
1996 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1997else
1998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999for as_dir in $PATH
2000do
2001 IFS=$as_save_IFS
2002 test -z "$as_dir" && as_dir=.
2003 for ac_exec_ext in '' $ac_executable_extensions; do
2004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2005 ac_cv_prog_ac_ct_CC="gcc"
2006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2007 break 2
2008 fi
2009done
2010done
2011
2012fi
2013fi
2014ac_ct_CC=$ac_cv_prog_ac_ct_CC
2015if test -n "$ac_ct_CC"; then
2016 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2017echo "${ECHO_T}$ac_ct_CC" >&6
2018else
2019 echo "$as_me:$LINENO: result: no" >&5
2020echo "${ECHO_T}no" >&6
2021fi
2022
2023 CC=$ac_ct_CC
2024else
2025 CC="$ac_cv_prog_CC"
2026fi
2027
2028if test -z "$CC"; then
2029 if test -n "$ac_tool_prefix"; then
2030 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2031set dummy ${ac_tool_prefix}cc; ac_word=$2
2032echo "$as_me:$LINENO: checking for $ac_word" >&5
2033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2034if test "${ac_cv_prog_CC+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2036else
2037 if test -n "$CC"; then
2038 ac_cv_prog_CC="$CC" # Let the user override the test.
2039else
2040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041for as_dir in $PATH
2042do
2043 IFS=$as_save_IFS
2044 test -z "$as_dir" && as_dir=.
2045 for ac_exec_ext in '' $ac_executable_extensions; do
2046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2047 ac_cv_prog_CC="${ac_tool_prefix}cc"
2048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049 break 2
2050 fi
2051done
2052done
2053
2054fi
2055fi
2056CC=$ac_cv_prog_CC
2057if test -n "$CC"; then
2058 echo "$as_me:$LINENO: result: $CC" >&5
2059echo "${ECHO_T}$CC" >&6
2060else
2061 echo "$as_me:$LINENO: result: no" >&5
2062echo "${ECHO_T}no" >&6
2063fi
2064
2065fi
2066if test -z "$ac_cv_prog_CC"; then
2067 ac_ct_CC=$CC
2068 # Extract the first word of "cc", so it can be a program name with args.
2069set dummy cc; ac_word=$2
2070echo "$as_me:$LINENO: checking for $ac_word" >&5
2071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2072if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2074else
2075 if test -n "$ac_ct_CC"; then
2076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2077else
2078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079for as_dir in $PATH
2080do
2081 IFS=$as_save_IFS
2082 test -z "$as_dir" && as_dir=.
2083 for ac_exec_ext in '' $ac_executable_extensions; do
2084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2085 ac_cv_prog_ac_ct_CC="cc"
2086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087 break 2
2088 fi
2089done
2090done
2091
2092fi
2093fi
2094ac_ct_CC=$ac_cv_prog_ac_ct_CC
2095if test -n "$ac_ct_CC"; then
2096 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2097echo "${ECHO_T}$ac_ct_CC" >&6
2098else
2099 echo "$as_me:$LINENO: result: no" >&5
2100echo "${ECHO_T}no" >&6
2101fi
2102
2103 CC=$ac_ct_CC
2104else
2105 CC="$ac_cv_prog_CC"
2106fi
2107
2108fi
2109if test -z "$CC"; then
2110 # Extract the first word of "cc", so it can be a program name with args.
2111set dummy cc; ac_word=$2
2112echo "$as_me:$LINENO: checking for $ac_word" >&5
2113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2114if test "${ac_cv_prog_CC+set}" = set; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
2116else
2117 if test -n "$CC"; then
2118 ac_cv_prog_CC="$CC" # Let the user override the test.
2119else
2120 ac_prog_rejected=no
2121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122for as_dir in $PATH
2123do
2124 IFS=$as_save_IFS
2125 test -z "$as_dir" && as_dir=.
2126 for ac_exec_ext in '' $ac_executable_extensions; do
2127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2128 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2129 ac_prog_rejected=yes
2130 continue
2131 fi
2132 ac_cv_prog_CC="cc"
2133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2134 break 2
2135 fi
2136done
2137done
2138
2139if test $ac_prog_rejected = yes; then
2140 # We found a bogon in the path, so make sure we never use it.
2141 set dummy $ac_cv_prog_CC
2142 shift
2143 if test $# != 0; then
2144 # We chose a different compiler from the bogus one.
2145 # However, it has the same basename, so the bogon will be chosen
2146 # first if we set CC to just the basename; use the full file name.
2147 shift
2148 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2149 fi
2150fi
2151fi
2152fi
2153CC=$ac_cv_prog_CC
2154if test -n "$CC"; then
2155 echo "$as_me:$LINENO: result: $CC" >&5
2156echo "${ECHO_T}$CC" >&6
2157else
2158 echo "$as_me:$LINENO: result: no" >&5
2159echo "${ECHO_T}no" >&6
2160fi
2161
2162fi
2163if test -z "$CC"; then
2164 if test -n "$ac_tool_prefix"; then
2165 for ac_prog in cl
2166 do
2167 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2168set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2169echo "$as_me:$LINENO: checking for $ac_word" >&5
2170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2171if test "${ac_cv_prog_CC+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2173else
2174 if test -n "$CC"; then
2175 ac_cv_prog_CC="$CC" # Let the user override the test.
2176else
2177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178for as_dir in $PATH
2179do
2180 IFS=$as_save_IFS
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
2183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2184 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2186 break 2
2187 fi
2188done
2189done
2190
2191fi
2192fi
2193CC=$ac_cv_prog_CC
2194if test -n "$CC"; then
2195 echo "$as_me:$LINENO: result: $CC" >&5
2196echo "${ECHO_T}$CC" >&6
2197else
2198 echo "$as_me:$LINENO: result: no" >&5
2199echo "${ECHO_T}no" >&6
2200fi
2201
2202 test -n "$CC" && break
2203 done
2204fi
2205if test -z "$CC"; then
2206 ac_ct_CC=$CC
2207 for ac_prog in cl
2208do
2209 # Extract the first word of "$ac_prog", so it can be a program name with args.
2210set dummy $ac_prog; ac_word=$2
2211echo "$as_me:$LINENO: checking for $ac_word" >&5
2212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2213if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2215else
2216 if test -n "$ac_ct_CC"; then
2217 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2218else
2219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2220for as_dir in $PATH
2221do
2222 IFS=$as_save_IFS
2223 test -z "$as_dir" && as_dir=.
2224 for ac_exec_ext in '' $ac_executable_extensions; do
2225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2226 ac_cv_prog_ac_ct_CC="$ac_prog"
2227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2228 break 2
2229 fi
2230done
2231done
2232
2233fi
2234fi
2235ac_ct_CC=$ac_cv_prog_ac_ct_CC
2236if test -n "$ac_ct_CC"; then
2237 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2238echo "${ECHO_T}$ac_ct_CC" >&6
2239else
2240 echo "$as_me:$LINENO: result: no" >&5
2241echo "${ECHO_T}no" >&6
2242fi
2243
2244 test -n "$ac_ct_CC" && break
2245done
2246
2247 CC=$ac_ct_CC
2248fi
2249
2250fi
2251
2252
2253test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2254See \`config.log' for more details." >&5
2255echo "$as_me: error: no acceptable C compiler found in \$PATH
2256See \`config.log' for more details." >&2;}
2257 { (exit 1); exit 1; }; }
2258
2259# Provide some information about the compiler.
2260echo "$as_me:$LINENO:" \
2261 "checking for C compiler version" >&5
2262ac_compiler=`set X $ac_compile; echo $2`
2263{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2264 (eval $ac_compiler --version </dev/null >&5) 2>&5
2265 ac_status=$?
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }
2268{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2269 (eval $ac_compiler -v </dev/null >&5) 2>&5
2270 ac_status=$?
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }
2273{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2274 (eval $ac_compiler -V </dev/null >&5) 2>&5
2275 ac_status=$?
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }
2278
2279cat >conftest.$ac_ext <<_ACEOF
2280/* confdefs.h. */
2281_ACEOF
2282cat confdefs.h >>conftest.$ac_ext
2283cat >>conftest.$ac_ext <<_ACEOF
2284/* end confdefs.h. */
2285
2286int
2287main ()
2288{
2289
2290 ;
2291 return 0;
2292}
2293_ACEOF
2294ac_clean_files_save=$ac_clean_files
2295ac_clean_files="$ac_clean_files a.out a.exe b.out"
2296# Try to create an executable without -o first, disregard a.out.
2297# It will help us diagnose broken compilers, and finding out an intuition
2298# of exeext.
2299echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2300echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2301ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2302if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2303 (eval $ac_link_default) 2>&5
2304 ac_status=$?
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }; then
2307 # Find the output, starting from the most likely. This scheme is
2308# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2309# resort.
2310
2311# Be careful to initialize this variable, since it used to be cached.
2312# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2313ac_cv_exeext=
2314# b.out is created by i960 compilers.
2315for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2316do
2317 test -f "$ac_file" || continue
2318 case $ac_file in
2319 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2320 ;;
2321 conftest.$ac_ext )
2322 # This is the source file.
2323 ;;
2324 [ab].out )
2325 # We found the default executable, but exeext='' is most
2326 # certainly right.
2327 break;;
2328 *.* )
2329 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2330 # FIXME: I believe we export ac_cv_exeext for Libtool,
2331 # but it would be cool to find out if it's true. Does anybody
2332 # maintain Libtool? --akim.
2333 export ac_cv_exeext
2334 break;;
2335 * )
2336 break;;
2337 esac
2338done
2339else
2340 echo "$as_me: failed program was:" >&5
2341sed 's/^/| /' conftest.$ac_ext >&5
2342
2343{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2344See \`config.log' for more details." >&5
2345echo "$as_me: error: C compiler cannot create executables
2346See \`config.log' for more details." >&2;}
2347 { (exit 77); exit 77; }; }
2348fi
2349
2350ac_exeext=$ac_cv_exeext
2351echo "$as_me:$LINENO: result: $ac_file" >&5
2352echo "${ECHO_T}$ac_file" >&6
2353
2354# Check the compiler produces executables we can run. If not, either
2355# the compiler is broken, or we cross compile.
2356echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2357echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2358# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2359# If not cross compiling, check that we can run a simple program.
2360if test "$cross_compiling" != yes; then
2361 if { ac_try='./$ac_file'
2362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363 (eval $ac_try) 2>&5
2364 ac_status=$?
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; }; then
2367 cross_compiling=no
2368 else
2369 if test "$cross_compiling" = maybe; then
2370 cross_compiling=yes
2371 else
2372 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2373If you meant to cross compile, use \`--host'.
2374See \`config.log' for more details." >&5
2375echo "$as_me: error: cannot run C compiled programs.
2376If you meant to cross compile, use \`--host'.
2377See \`config.log' for more details." >&2;}
2378 { (exit 1); exit 1; }; }
2379 fi
2380 fi
2381fi
2382echo "$as_me:$LINENO: result: yes" >&5
2383echo "${ECHO_T}yes" >&6
2384
2385rm -f a.out a.exe conftest$ac_cv_exeext b.out
2386ac_clean_files=$ac_clean_files_save
2387# Check the compiler produces executables we can run. If not, either
2388# the compiler is broken, or we cross compile.
2389echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2390echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2391echo "$as_me:$LINENO: result: $cross_compiling" >&5
2392echo "${ECHO_T}$cross_compiling" >&6
2393
2394echo "$as_me:$LINENO: checking for suffix of executables" >&5
2395echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2397 (eval $ac_link) 2>&5
2398 ac_status=$?
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; then
2401 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2402# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2403# work properly (i.e., refer to `conftest.exe'), while it won't with
2404# `rm'.
2405for ac_file in conftest.exe conftest conftest.*; do
2406 test -f "$ac_file" || continue
2407 case $ac_file in
2408 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2409 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2410 export ac_cv_exeext
2411 break;;
2412 * ) break;;
2413 esac
2414done
2415else
2416 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2417See \`config.log' for more details." >&5
2418echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2419See \`config.log' for more details." >&2;}
2420 { (exit 1); exit 1; }; }
2421fi
2422
2423rm -f conftest$ac_cv_exeext
2424echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2425echo "${ECHO_T}$ac_cv_exeext" >&6
2426
2427rm -f conftest.$ac_ext
2428EXEEXT=$ac_cv_exeext
2429ac_exeext=$EXEEXT
2430echo "$as_me:$LINENO: checking for suffix of object files" >&5
2431echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2432if test "${ac_cv_objext+set}" = set; then
2433 echo $ECHO_N "(cached) $ECHO_C" >&6
2434else
2435 cat >conftest.$ac_ext <<_ACEOF
2436/* confdefs.h. */
2437_ACEOF
2438cat confdefs.h >>conftest.$ac_ext
2439cat >>conftest.$ac_ext <<_ACEOF
2440/* end confdefs.h. */
2441
2442int
2443main ()
2444{
2445
2446 ;
2447 return 0;
2448}
2449_ACEOF
2450rm -f conftest.o conftest.obj
2451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2452 (eval $ac_compile) 2>&5
2453 ac_status=$?
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; then
2456 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2457 case $ac_file in
2458 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2459 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2460 break;;
2461 esac
2462done
2463else
2464 echo "$as_me: failed program was:" >&5
2465sed 's/^/| /' conftest.$ac_ext >&5
2466
2467{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2468See \`config.log' for more details." >&5
2469echo "$as_me: error: cannot compute suffix of object files: cannot compile
2470See \`config.log' for more details." >&2;}
2471 { (exit 1); exit 1; }; }
2472fi
2473
2474rm -f conftest.$ac_cv_objext conftest.$ac_ext
2475fi
2476echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2477echo "${ECHO_T}$ac_cv_objext" >&6
2478OBJEXT=$ac_cv_objext
2479ac_objext=$OBJEXT
2480echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2481echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2482if test "${ac_cv_c_compiler_gnu+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2484else
2485 cat >conftest.$ac_ext <<_ACEOF
2486/* confdefs.h. */
2487_ACEOF
2488cat confdefs.h >>conftest.$ac_ext
2489cat >>conftest.$ac_ext <<_ACEOF
2490/* end confdefs.h. */
2491
2492int
2493main ()
2494{
2495#ifndef __GNUC__
2496 choke me
2497#endif
2498
2499 ;
2500 return 0;
2501}
2502_ACEOF
2503rm -f conftest.$ac_objext
2504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2505 (eval $ac_compile) 2>conftest.er1
2506 ac_status=$?
2507 grep -v '^ *+' conftest.er1 >conftest.err
2508 rm -f conftest.er1
2509 cat conftest.err >&5
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); } &&
brynerd5e66382006-09-08 02:35:53 +00002512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00002513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514 (eval $ac_try) 2>&5
2515 ac_status=$?
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }; } &&
2518 { ac_try='test -s conftest.$ac_objext'
2519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2520 (eval $ac_try) 2>&5
2521 ac_status=$?
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }; }; then
2524 ac_compiler_gnu=yes
2525else
2526 echo "$as_me: failed program was:" >&5
2527sed 's/^/| /' conftest.$ac_ext >&5
2528
2529ac_compiler_gnu=no
2530fi
2531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2532ac_cv_c_compiler_gnu=$ac_compiler_gnu
2533
2534fi
2535echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2536echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2537GCC=`test $ac_compiler_gnu = yes && echo yes`
2538ac_test_CFLAGS=${CFLAGS+set}
2539ac_save_CFLAGS=$CFLAGS
2540CFLAGS="-g"
2541echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2542echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2543if test "${ac_cv_prog_cc_g+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2545else
2546 cat >conftest.$ac_ext <<_ACEOF
2547/* confdefs.h. */
2548_ACEOF
2549cat confdefs.h >>conftest.$ac_ext
2550cat >>conftest.$ac_ext <<_ACEOF
2551/* end confdefs.h. */
2552
2553int
2554main ()
2555{
2556
2557 ;
2558 return 0;
2559}
2560_ACEOF
2561rm -f conftest.$ac_objext
2562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563 (eval $ac_compile) 2>conftest.er1
2564 ac_status=$?
2565 grep -v '^ *+' conftest.er1 >conftest.err
2566 rm -f conftest.er1
2567 cat conftest.err >&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); } &&
brynerd5e66382006-09-08 02:35:53 +00002570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00002571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572 (eval $ac_try) 2>&5
2573 ac_status=$?
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; } &&
2576 { ac_try='test -s conftest.$ac_objext'
2577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578 (eval $ac_try) 2>&5
2579 ac_status=$?
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }; }; then
2582 ac_cv_prog_cc_g=yes
2583else
2584 echo "$as_me: failed program was:" >&5
2585sed 's/^/| /' conftest.$ac_ext >&5
2586
2587ac_cv_prog_cc_g=no
2588fi
2589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2590fi
2591echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2592echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2593if test "$ac_test_CFLAGS" = set; then
2594 CFLAGS=$ac_save_CFLAGS
2595elif test $ac_cv_prog_cc_g = yes; then
2596 if test "$GCC" = yes; then
2597 CFLAGS="-g -O2"
2598 else
2599 CFLAGS="-g"
2600 fi
2601else
2602 if test "$GCC" = yes; then
2603 CFLAGS="-O2"
2604 else
2605 CFLAGS=
2606 fi
2607fi
2608echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2609echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2610if test "${ac_cv_prog_cc_stdc+set}" = set; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2612else
2613 ac_cv_prog_cc_stdc=no
2614ac_save_CC=$CC
2615cat >conftest.$ac_ext <<_ACEOF
2616/* confdefs.h. */
2617_ACEOF
2618cat confdefs.h >>conftest.$ac_ext
2619cat >>conftest.$ac_ext <<_ACEOF
2620/* end confdefs.h. */
2621#include <stdarg.h>
2622#include <stdio.h>
2623#include <sys/types.h>
2624#include <sys/stat.h>
2625/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2626struct buf { int x; };
2627FILE * (*rcsopen) (struct buf *, struct stat *, int);
2628static char *e (p, i)
2629 char **p;
2630 int i;
2631{
2632 return p[i];
2633}
2634static char *f (char * (*g) (char **, int), char **p, ...)
2635{
2636 char *s;
2637 va_list v;
2638 va_start (v,p);
2639 s = g (p, va_arg (v,int));
2640 va_end (v);
2641 return s;
2642}
2643
2644/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2645 function prototypes and stuff, but not '\xHH' hex character constants.
2646 These don't provoke an error unfortunately, instead are silently treated
2647 as 'x'. The following induces an error, until -std1 is added to get
2648 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2649 array size at least. It's necessary to write '\x00'==0 to get something
2650 that's true only with -std1. */
2651int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2652
2653int test (int i, double x);
2654struct s1 {int (*f) (int a);};
2655struct s2 {int (*f) (double a);};
2656int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2657int argc;
2658char **argv;
2659int
2660main ()
2661{
2662return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2663 ;
2664 return 0;
2665}
2666_ACEOF
2667# Don't try gcc -ansi; that turns off useful extensions and
2668# breaks some systems' header files.
2669# AIX -qlanglvl=ansi
2670# Ultrix and OSF/1 -std1
2671# HP-UX 10.20 and later -Ae
2672# HP-UX older versions -Aa -D_HPUX_SOURCE
2673# SVR4 -Xc -D__EXTENSIONS__
2674for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2675do
2676 CC="$ac_save_CC $ac_arg"
2677 rm -f conftest.$ac_objext
2678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2679 (eval $ac_compile) 2>conftest.er1
2680 ac_status=$?
2681 grep -v '^ *+' conftest.er1 >conftest.err
2682 rm -f conftest.er1
2683 cat conftest.err >&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); } &&
brynerd5e66382006-09-08 02:35:53 +00002686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00002687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688 (eval $ac_try) 2>&5
2689 ac_status=$?
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; } &&
2692 { ac_try='test -s conftest.$ac_objext'
2693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694 (eval $ac_try) 2>&5
2695 ac_status=$?
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; }; then
2698 ac_cv_prog_cc_stdc=$ac_arg
2699break
2700else
2701 echo "$as_me: failed program was:" >&5
2702sed 's/^/| /' conftest.$ac_ext >&5
2703
2704fi
2705rm -f conftest.err conftest.$ac_objext
2706done
2707rm -f conftest.$ac_ext conftest.$ac_objext
2708CC=$ac_save_CC
2709
2710fi
2711
2712case "x$ac_cv_prog_cc_stdc" in
2713 x|xno)
2714 echo "$as_me:$LINENO: result: none needed" >&5
2715echo "${ECHO_T}none needed" >&6 ;;
2716 *)
2717 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2718echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2719 CC="$CC $ac_cv_prog_cc_stdc" ;;
2720esac
2721
2722# Some people use a C++ compiler to compile C. Since we use `exit',
2723# in C++ we need to declare it. In case someone uses the same compiler
2724# for both compiling C and C++ we need to have the C++ compiler decide
2725# the declaration of exit, since it's the most demanding environment.
2726cat >conftest.$ac_ext <<_ACEOF
2727#ifndef __cplusplus
2728 choke me
2729#endif
2730_ACEOF
2731rm -f conftest.$ac_objext
2732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2733 (eval $ac_compile) 2>conftest.er1
2734 ac_status=$?
2735 grep -v '^ *+' conftest.er1 >conftest.err
2736 rm -f conftest.er1
2737 cat conftest.err >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); } &&
brynerd5e66382006-09-08 02:35:53 +00002740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00002741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742 (eval $ac_try) 2>&5
2743 ac_status=$?
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }; } &&
2746 { ac_try='test -s conftest.$ac_objext'
2747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748 (eval $ac_try) 2>&5
2749 ac_status=$?
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }; }; then
2752 for ac_declaration in \
2753 '' \
2754 'extern "C" void std::exit (int) throw (); using std::exit;' \
2755 'extern "C" void std::exit (int); using std::exit;' \
2756 'extern "C" void exit (int) throw ();' \
2757 'extern "C" void exit (int);' \
2758 'void exit (int);'
2759do
2760 cat >conftest.$ac_ext <<_ACEOF
2761/* confdefs.h. */
2762_ACEOF
2763cat confdefs.h >>conftest.$ac_ext
2764cat >>conftest.$ac_ext <<_ACEOF
2765/* end confdefs.h. */
2766$ac_declaration
2767#include <stdlib.h>
2768int
2769main ()
2770{
2771exit (42);
2772 ;
2773 return 0;
2774}
2775_ACEOF
2776rm -f conftest.$ac_objext
2777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2778 (eval $ac_compile) 2>conftest.er1
2779 ac_status=$?
2780 grep -v '^ *+' conftest.er1 >conftest.err
2781 rm -f conftest.er1
2782 cat conftest.err >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); } &&
brynerd5e66382006-09-08 02:35:53 +00002785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00002786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787 (eval $ac_try) 2>&5
2788 ac_status=$?
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }; } &&
2791 { ac_try='test -s conftest.$ac_objext'
2792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 (eval $ac_try) 2>&5
2794 ac_status=$?
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; }; then
2797 :
2798else
2799 echo "$as_me: failed program was:" >&5
2800sed 's/^/| /' conftest.$ac_ext >&5
2801
2802continue
2803fi
2804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2805 cat >conftest.$ac_ext <<_ACEOF
2806/* confdefs.h. */
2807_ACEOF
2808cat confdefs.h >>conftest.$ac_ext
2809cat >>conftest.$ac_ext <<_ACEOF
2810/* end confdefs.h. */
2811$ac_declaration
2812int
2813main ()
2814{
2815exit (42);
2816 ;
2817 return 0;
2818}
2819_ACEOF
2820rm -f conftest.$ac_objext
2821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2822 (eval $ac_compile) 2>conftest.er1
2823 ac_status=$?
2824 grep -v '^ *+' conftest.er1 >conftest.err
2825 rm -f conftest.er1
2826 cat conftest.err >&5
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); } &&
brynerd5e66382006-09-08 02:35:53 +00002829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00002830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831 (eval $ac_try) 2>&5
2832 ac_status=$?
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); }; } &&
2835 { ac_try='test -s conftest.$ac_objext'
2836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837 (eval $ac_try) 2>&5
2838 ac_status=$?
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; }; then
2841 break
2842else
2843 echo "$as_me: failed program was:" >&5
2844sed 's/^/| /' conftest.$ac_ext >&5
2845
2846fi
2847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2848done
2849rm -f conftest*
2850if test -n "$ac_declaration"; then
2851 echo '#ifdef __cplusplus' >>confdefs.h
2852 echo $ac_declaration >>confdefs.h
2853 echo '#endif' >>confdefs.h
2854fi
2855
2856else
2857 echo "$as_me: failed program was:" >&5
2858sed 's/^/| /' conftest.$ac_ext >&5
2859
2860fi
2861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2862ac_ext=c
2863ac_cpp='$CPP $CPPFLAGS'
2864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2866ac_compiler_gnu=$ac_cv_c_compiler_gnu
2867DEPDIR="${am__leading_dot}deps"
2868
2869 ac_config_commands="$ac_config_commands depfiles"
2870
2871
2872am_make=${MAKE-make}
2873cat > confinc << 'END'
2874am__doit:
2875 @echo done
2876.PHONY: am__doit
2877END
2878# If we don't find an include directive, just comment out the code.
2879echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2880echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2881am__include="#"
2882am__quote=
2883_am_result=none
2884# First try GNU make style include.
2885echo "include confinc" > confmf
2886# We grep out `Entering directory' and `Leaving directory'
2887# messages which can occur if `w' ends up in MAKEFLAGS.
2888# In particular we don't look at `^make:' because GNU make might
2889# be invoked under some other name (usually "gmake"), in which
2890# case it prints its new name instead of `make'.
2891if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2892 am__include=include
2893 am__quote=
2894 _am_result=GNU
2895fi
2896# Now try BSD make style include.
2897if test "$am__include" = "#"; then
2898 echo '.include "confinc"' > confmf
2899 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2900 am__include=.include
2901 am__quote="\""
2902 _am_result=BSD
2903 fi
2904fi
2905
2906
2907echo "$as_me:$LINENO: result: $_am_result" >&5
2908echo "${ECHO_T}$_am_result" >&6
2909rm -f confinc confmf
2910
2911# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2912if test "${enable_dependency_tracking+set}" = set; then
2913 enableval="$enable_dependency_tracking"
2914
2915fi;
2916if test "x$enable_dependency_tracking" != xno; then
2917 am_depcomp="$ac_aux_dir/depcomp"
2918 AMDEPBACKSLASH='\'
2919fi
2920
2921
2922if test "x$enable_dependency_tracking" != xno; then
2923 AMDEP_TRUE=
2924 AMDEP_FALSE='#'
2925else
2926 AMDEP_TRUE='#'
2927 AMDEP_FALSE=
2928fi
2929
2930
2931
2932
2933depcc="$CC" am_compiler_list=
2934
2935echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2936echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2937if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2938 echo $ECHO_N "(cached) $ECHO_C" >&6
2939else
2940 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2941 # We make a subdir and do the tests there. Otherwise we can end up
2942 # making bogus files that we don't know about and never remove. For
2943 # instance it was reported that on HP-UX the gcc test will end up
2944 # making a dummy file named `D' -- because `-MD' means `put the output
2945 # in D'.
2946 mkdir conftest.dir
2947 # Copy depcomp to subdir because otherwise we won't find it if we're
2948 # using a relative directory.
2949 cp "$am_depcomp" conftest.dir
2950 cd conftest.dir
2951 # We will build objects and dependencies in a subdirectory because
2952 # it helps to detect inapplicable dependency modes. For instance
2953 # both Tru64's cc and ICC support -MD to output dependencies as a
2954 # side effect of compilation, but ICC will put the dependencies in
2955 # the current directory while Tru64 will put them in the object
2956 # directory.
2957 mkdir sub
2958
2959 am_cv_CC_dependencies_compiler_type=none
2960 if test "$am_compiler_list" = ""; then
2961 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2962 fi
2963 for depmode in $am_compiler_list; do
2964 # Setup a source with many dependencies, because some compilers
2965 # like to wrap large dependency lists on column 80 (with \), and
2966 # we should not choose a depcomp mode which is confused by this.
2967 #
2968 # We need to recreate these files for each test, as the compiler may
2969 # overwrite some of them when testing with obscure command lines.
2970 # This happens at least with the AIX C compiler.
2971 : > sub/conftest.c
2972 for i in 1 2 3 4 5 6; do
2973 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2974 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2975 # Solaris 8's {/usr,}/bin/sh.
2976 touch sub/conftst$i.h
2977 done
2978 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2979
2980 case $depmode in
2981 nosideeffect)
2982 # after this tag, mechanisms are not by side-effect, so they'll
2983 # only be used when explicitly requested
2984 if test "x$enable_dependency_tracking" = xyes; then
2985 continue
2986 else
2987 break
2988 fi
2989 ;;
2990 none) break ;;
2991 esac
2992 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2993 # mode. It turns out that the SunPro C++ compiler does not properly
2994 # handle `-M -o', and we need to detect this.
2995 if depmode=$depmode \
2996 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2997 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2998 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2999 >/dev/null 2>conftest.err &&
3000 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3001 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3002 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3003 # icc doesn't choke on unknown options, it will just issue warnings
3004 # or remarks (even with -Werror). So we grep stderr for any message
3005 # that says an option was ignored or not supported.
3006 # When given -MP, icc 7.0 and 7.1 complain thusly:
3007 # icc: Command line warning: ignoring option '-M'; no argument required
3008 # The diagnosis changed in icc 8.0:
3009 # icc: Command line remark: option '-MP' not supported
3010 if (grep 'ignoring option' conftest.err ||
3011 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3012 am_cv_CC_dependencies_compiler_type=$depmode
3013 break
3014 fi
3015 fi
3016 done
3017
3018 cd ..
3019 rm -rf conftest.dir
3020else
3021 am_cv_CC_dependencies_compiler_type=none
3022fi
3023
3024fi
3025echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3026echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3027CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3028
3029
3030
3031if
3032 test "x$enable_dependency_tracking" != xno \
3033 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3034 am__fastdepCC_TRUE=
3035 am__fastdepCC_FALSE='#'
3036else
3037 am__fastdepCC_TRUE='#'
3038 am__fastdepCC_FALSE=
3039fi
3040
3041
3042ac_ext=c
3043ac_cpp='$CPP $CPPFLAGS'
3044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046ac_compiler_gnu=$ac_cv_c_compiler_gnu
3047echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3048echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3049# On Suns, sometimes $CPP names a directory.
3050if test -n "$CPP" && test -d "$CPP"; then
3051 CPP=
3052fi
3053if test -z "$CPP"; then
3054 if test "${ac_cv_prog_CPP+set}" = set; then
3055 echo $ECHO_N "(cached) $ECHO_C" >&6
3056else
3057 # Double quotes because CPP needs to be expanded
3058 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3059 do
3060 ac_preproc_ok=false
3061for ac_c_preproc_warn_flag in '' yes
3062do
3063 # Use a header file that comes with gcc, so configuring glibc
3064 # with a fresh cross-compiler works.
3065 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3066 # <limits.h> exists even on freestanding compilers.
3067 # On the NeXT, cc -E runs the code through the compiler's parser,
3068 # not just through cpp. "Syntax error" is here to catch this case.
3069 cat >conftest.$ac_ext <<_ACEOF
3070/* confdefs.h. */
3071_ACEOF
3072cat confdefs.h >>conftest.$ac_ext
3073cat >>conftest.$ac_ext <<_ACEOF
3074/* end confdefs.h. */
3075#ifdef __STDC__
3076# include <limits.h>
3077#else
3078# include <assert.h>
3079#endif
3080 Syntax error
3081_ACEOF
3082if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3084 ac_status=$?
3085 grep -v '^ *+' conftest.er1 >conftest.err
3086 rm -f conftest.er1
3087 cat conftest.err >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); } >/dev/null; then
3090 if test -s conftest.err; then
3091 ac_cpp_err=$ac_c_preproc_warn_flag
3092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3093 else
3094 ac_cpp_err=
3095 fi
3096else
3097 ac_cpp_err=yes
3098fi
3099if test -z "$ac_cpp_err"; then
3100 :
3101else
3102 echo "$as_me: failed program was:" >&5
3103sed 's/^/| /' conftest.$ac_ext >&5
3104
3105 # Broken: fails on valid input.
3106continue
3107fi
3108rm -f conftest.err conftest.$ac_ext
3109
3110 # OK, works on sane cases. Now check whether non-existent headers
3111 # can be detected and how.
3112 cat >conftest.$ac_ext <<_ACEOF
3113/* confdefs.h. */
3114_ACEOF
3115cat confdefs.h >>conftest.$ac_ext
3116cat >>conftest.$ac_ext <<_ACEOF
3117/* end confdefs.h. */
3118#include <ac_nonexistent.h>
3119_ACEOF
3120if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3122 ac_status=$?
3123 grep -v '^ *+' conftest.er1 >conftest.err
3124 rm -f conftest.er1
3125 cat conftest.err >&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); } >/dev/null; then
3128 if test -s conftest.err; then
3129 ac_cpp_err=$ac_c_preproc_warn_flag
3130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3131 else
3132 ac_cpp_err=
3133 fi
3134else
3135 ac_cpp_err=yes
3136fi
3137if test -z "$ac_cpp_err"; then
3138 # Broken: success on invalid input.
3139continue
3140else
3141 echo "$as_me: failed program was:" >&5
3142sed 's/^/| /' conftest.$ac_ext >&5
3143
3144 # Passes both tests.
3145ac_preproc_ok=:
3146break
3147fi
3148rm -f conftest.err conftest.$ac_ext
3149
3150done
3151# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3152rm -f conftest.err conftest.$ac_ext
3153if $ac_preproc_ok; then
3154 break
3155fi
3156
3157 done
3158 ac_cv_prog_CPP=$CPP
3159
3160fi
3161 CPP=$ac_cv_prog_CPP
3162else
3163 ac_cv_prog_CPP=$CPP
3164fi
3165echo "$as_me:$LINENO: result: $CPP" >&5
3166echo "${ECHO_T}$CPP" >&6
3167ac_preproc_ok=false
3168for ac_c_preproc_warn_flag in '' yes
3169do
3170 # Use a header file that comes with gcc, so configuring glibc
3171 # with a fresh cross-compiler works.
3172 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3173 # <limits.h> exists even on freestanding compilers.
3174 # On the NeXT, cc -E runs the code through the compiler's parser,
3175 # not just through cpp. "Syntax error" is here to catch this case.
3176 cat >conftest.$ac_ext <<_ACEOF
3177/* confdefs.h. */
3178_ACEOF
3179cat confdefs.h >>conftest.$ac_ext
3180cat >>conftest.$ac_ext <<_ACEOF
3181/* end confdefs.h. */
3182#ifdef __STDC__
3183# include <limits.h>
3184#else
3185# include <assert.h>
3186#endif
3187 Syntax error
3188_ACEOF
3189if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3191 ac_status=$?
3192 grep -v '^ *+' conftest.er1 >conftest.err
3193 rm -f conftest.er1
3194 cat conftest.err >&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); } >/dev/null; then
3197 if test -s conftest.err; then
3198 ac_cpp_err=$ac_c_preproc_warn_flag
3199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3200 else
3201 ac_cpp_err=
3202 fi
3203else
3204 ac_cpp_err=yes
3205fi
3206if test -z "$ac_cpp_err"; then
3207 :
3208else
3209 echo "$as_me: failed program was:" >&5
3210sed 's/^/| /' conftest.$ac_ext >&5
3211
3212 # Broken: fails on valid input.
3213continue
3214fi
3215rm -f conftest.err conftest.$ac_ext
3216
3217 # OK, works on sane cases. Now check whether non-existent headers
3218 # can be detected and how.
3219 cat >conftest.$ac_ext <<_ACEOF
3220/* confdefs.h. */
3221_ACEOF
3222cat confdefs.h >>conftest.$ac_ext
3223cat >>conftest.$ac_ext <<_ACEOF
3224/* end confdefs.h. */
3225#include <ac_nonexistent.h>
3226_ACEOF
3227if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3229 ac_status=$?
3230 grep -v '^ *+' conftest.er1 >conftest.err
3231 rm -f conftest.er1
3232 cat conftest.err >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); } >/dev/null; then
3235 if test -s conftest.err; then
3236 ac_cpp_err=$ac_c_preproc_warn_flag
3237 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3238 else
3239 ac_cpp_err=
3240 fi
3241else
3242 ac_cpp_err=yes
3243fi
3244if test -z "$ac_cpp_err"; then
3245 # Broken: success on invalid input.
3246continue
3247else
3248 echo "$as_me: failed program was:" >&5
3249sed 's/^/| /' conftest.$ac_ext >&5
3250
3251 # Passes both tests.
3252ac_preproc_ok=:
3253break
3254fi
3255rm -f conftest.err conftest.$ac_ext
3256
3257done
3258# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3259rm -f conftest.err conftest.$ac_ext
3260if $ac_preproc_ok; then
3261 :
3262else
3263 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3264See \`config.log' for more details." >&5
3265echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3266See \`config.log' for more details." >&2;}
3267 { (exit 1); exit 1; }; }
3268fi
3269
3270ac_ext=c
3271ac_cpp='$CPP $CPPFLAGS'
3272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274ac_compiler_gnu=$ac_cv_c_compiler_gnu
3275
3276ac_ext=cc
3277ac_cpp='$CXXCPP $CPPFLAGS'
3278ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3279ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3280ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3281if test -n "$ac_tool_prefix"; then
3282 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3283 do
3284 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3285set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3286echo "$as_me:$LINENO: checking for $ac_word" >&5
3287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3288if test "${ac_cv_prog_CXX+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3290else
3291 if test -n "$CXX"; then
3292 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3293else
3294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295for as_dir in $PATH
3296do
3297 IFS=$as_save_IFS
3298 test -z "$as_dir" && as_dir=.
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3301 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3303 break 2
3304 fi
3305done
3306done
3307
3308fi
3309fi
3310CXX=$ac_cv_prog_CXX
3311if test -n "$CXX"; then
3312 echo "$as_me:$LINENO: result: $CXX" >&5
3313echo "${ECHO_T}$CXX" >&6
3314else
3315 echo "$as_me:$LINENO: result: no" >&5
3316echo "${ECHO_T}no" >&6
3317fi
3318
3319 test -n "$CXX" && break
3320 done
3321fi
3322if test -z "$CXX"; then
3323 ac_ct_CXX=$CXX
3324 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3325do
3326 # Extract the first word of "$ac_prog", so it can be a program name with args.
3327set dummy $ac_prog; ac_word=$2
3328echo "$as_me:$LINENO: checking for $ac_word" >&5
3329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3330if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3331 echo $ECHO_N "(cached) $ECHO_C" >&6
3332else
3333 if test -n "$ac_ct_CXX"; then
3334 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3335else
3336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337for as_dir in $PATH
3338do
3339 IFS=$as_save_IFS
3340 test -z "$as_dir" && as_dir=.
3341 for ac_exec_ext in '' $ac_executable_extensions; do
3342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3343 ac_cv_prog_ac_ct_CXX="$ac_prog"
3344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3345 break 2
3346 fi
3347done
3348done
3349
3350fi
3351fi
3352ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3353if test -n "$ac_ct_CXX"; then
3354 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3355echo "${ECHO_T}$ac_ct_CXX" >&6
3356else
3357 echo "$as_me:$LINENO: result: no" >&5
3358echo "${ECHO_T}no" >&6
3359fi
3360
3361 test -n "$ac_ct_CXX" && break
3362done
3363test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3364
3365 CXX=$ac_ct_CXX
3366fi
3367
3368
3369# Provide some information about the compiler.
3370echo "$as_me:$LINENO:" \
3371 "checking for C++ compiler version" >&5
3372ac_compiler=`set X $ac_compile; echo $2`
3373{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3374 (eval $ac_compiler --version </dev/null >&5) 2>&5
3375 ac_status=$?
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); }
3378{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3379 (eval $ac_compiler -v </dev/null >&5) 2>&5
3380 ac_status=$?
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }
3383{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3384 (eval $ac_compiler -V </dev/null >&5) 2>&5
3385 ac_status=$?
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }
3388
3389echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3390echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3391if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3393else
3394 cat >conftest.$ac_ext <<_ACEOF
3395/* confdefs.h. */
3396_ACEOF
3397cat confdefs.h >>conftest.$ac_ext
3398cat >>conftest.$ac_ext <<_ACEOF
3399/* end confdefs.h. */
3400
3401int
3402main ()
3403{
3404#ifndef __GNUC__
3405 choke me
3406#endif
3407
3408 ;
3409 return 0;
3410}
3411_ACEOF
3412rm -f conftest.$ac_objext
3413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3414 (eval $ac_compile) 2>conftest.er1
3415 ac_status=$?
3416 grep -v '^ *+' conftest.er1 >conftest.err
3417 rm -f conftest.er1
3418 cat conftest.err >&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); } &&
brynerd5e66382006-09-08 02:35:53 +00003421 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00003422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423 (eval $ac_try) 2>&5
3424 ac_status=$?
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); }; } &&
3427 { ac_try='test -s conftest.$ac_objext'
3428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3429 (eval $ac_try) 2>&5
3430 ac_status=$?
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); }; }; then
3433 ac_compiler_gnu=yes
3434else
3435 echo "$as_me: failed program was:" >&5
3436sed 's/^/| /' conftest.$ac_ext >&5
3437
3438ac_compiler_gnu=no
3439fi
3440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3441ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3442
3443fi
3444echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3445echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3446GXX=`test $ac_compiler_gnu = yes && echo yes`
3447ac_test_CXXFLAGS=${CXXFLAGS+set}
3448ac_save_CXXFLAGS=$CXXFLAGS
3449CXXFLAGS="-g"
3450echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3451echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3452if test "${ac_cv_prog_cxx_g+set}" = set; then
3453 echo $ECHO_N "(cached) $ECHO_C" >&6
3454else
3455 cat >conftest.$ac_ext <<_ACEOF
3456/* confdefs.h. */
3457_ACEOF
3458cat confdefs.h >>conftest.$ac_ext
3459cat >>conftest.$ac_ext <<_ACEOF
3460/* end confdefs.h. */
3461
3462int
3463main ()
3464{
3465
3466 ;
3467 return 0;
3468}
3469_ACEOF
3470rm -f conftest.$ac_objext
3471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3472 (eval $ac_compile) 2>conftest.er1
3473 ac_status=$?
3474 grep -v '^ *+' conftest.er1 >conftest.err
3475 rm -f conftest.er1
3476 cat conftest.err >&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); } &&
brynerd5e66382006-09-08 02:35:53 +00003479 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00003480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3481 (eval $ac_try) 2>&5
3482 ac_status=$?
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); }; } &&
3485 { ac_try='test -s conftest.$ac_objext'
3486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3487 (eval $ac_try) 2>&5
3488 ac_status=$?
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); }; }; then
3491 ac_cv_prog_cxx_g=yes
3492else
3493 echo "$as_me: failed program was:" >&5
3494sed 's/^/| /' conftest.$ac_ext >&5
3495
3496ac_cv_prog_cxx_g=no
3497fi
3498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3499fi
3500echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3501echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3502if test "$ac_test_CXXFLAGS" = set; then
3503 CXXFLAGS=$ac_save_CXXFLAGS
3504elif test $ac_cv_prog_cxx_g = yes; then
3505 if test "$GXX" = yes; then
3506 CXXFLAGS="-g -O2"
3507 else
3508 CXXFLAGS="-g"
3509 fi
3510else
3511 if test "$GXX" = yes; then
3512 CXXFLAGS="-O2"
3513 else
3514 CXXFLAGS=
3515 fi
3516fi
3517for ac_declaration in \
3518 '' \
3519 'extern "C" void std::exit (int) throw (); using std::exit;' \
3520 'extern "C" void std::exit (int); using std::exit;' \
3521 'extern "C" void exit (int) throw ();' \
3522 'extern "C" void exit (int);' \
3523 'void exit (int);'
3524do
3525 cat >conftest.$ac_ext <<_ACEOF
3526/* confdefs.h. */
3527_ACEOF
3528cat confdefs.h >>conftest.$ac_ext
3529cat >>conftest.$ac_ext <<_ACEOF
3530/* end confdefs.h. */
3531$ac_declaration
3532#include <stdlib.h>
3533int
3534main ()
3535{
3536exit (42);
3537 ;
3538 return 0;
3539}
3540_ACEOF
3541rm -f conftest.$ac_objext
3542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3543 (eval $ac_compile) 2>conftest.er1
3544 ac_status=$?
3545 grep -v '^ *+' conftest.er1 >conftest.err
3546 rm -f conftest.er1
3547 cat conftest.err >&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); } &&
brynerd5e66382006-09-08 02:35:53 +00003550 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00003551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3552 (eval $ac_try) 2>&5
3553 ac_status=$?
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); }; } &&
3556 { ac_try='test -s conftest.$ac_objext'
3557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3558 (eval $ac_try) 2>&5
3559 ac_status=$?
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); }; }; then
3562 :
3563else
3564 echo "$as_me: failed program was:" >&5
3565sed 's/^/| /' conftest.$ac_ext >&5
3566
3567continue
3568fi
3569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3570 cat >conftest.$ac_ext <<_ACEOF
3571/* confdefs.h. */
3572_ACEOF
3573cat confdefs.h >>conftest.$ac_ext
3574cat >>conftest.$ac_ext <<_ACEOF
3575/* end confdefs.h. */
3576$ac_declaration
3577int
3578main ()
3579{
3580exit (42);
3581 ;
3582 return 0;
3583}
3584_ACEOF
3585rm -f conftest.$ac_objext
3586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3587 (eval $ac_compile) 2>conftest.er1
3588 ac_status=$?
3589 grep -v '^ *+' conftest.er1 >conftest.err
3590 rm -f conftest.er1
3591 cat conftest.err >&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); } &&
brynerd5e66382006-09-08 02:35:53 +00003594 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00003595 { (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); }; } &&
3600 { ac_try='test -s conftest.$ac_objext'
3601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3602 (eval $ac_try) 2>&5
3603 ac_status=$?
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; }; then
3606 break
3607else
3608 echo "$as_me: failed program was:" >&5
3609sed 's/^/| /' conftest.$ac_ext >&5
3610
3611fi
3612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3613done
3614rm -f conftest*
3615if test -n "$ac_declaration"; then
3616 echo '#ifdef __cplusplus' >>confdefs.h
3617 echo $ac_declaration >>confdefs.h
3618 echo '#endif' >>confdefs.h
3619fi
3620
3621ac_ext=c
3622ac_cpp='$CPP $CPPFLAGS'
3623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3625ac_compiler_gnu=$ac_cv_c_compiler_gnu
3626
3627depcc="$CXX" am_compiler_list=
3628
3629echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3630echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3631if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3632 echo $ECHO_N "(cached) $ECHO_C" >&6
3633else
3634 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3635 # We make a subdir and do the tests there. Otherwise we can end up
3636 # making bogus files that we don't know about and never remove. For
3637 # instance it was reported that on HP-UX the gcc test will end up
3638 # making a dummy file named `D' -- because `-MD' means `put the output
3639 # in D'.
3640 mkdir conftest.dir
3641 # Copy depcomp to subdir because otherwise we won't find it if we're
3642 # using a relative directory.
3643 cp "$am_depcomp" conftest.dir
3644 cd conftest.dir
3645 # We will build objects and dependencies in a subdirectory because
3646 # it helps to detect inapplicable dependency modes. For instance
3647 # both Tru64's cc and ICC support -MD to output dependencies as a
3648 # side effect of compilation, but ICC will put the dependencies in
3649 # the current directory while Tru64 will put them in the object
3650 # directory.
3651 mkdir sub
3652
3653 am_cv_CXX_dependencies_compiler_type=none
3654 if test "$am_compiler_list" = ""; then
3655 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3656 fi
3657 for depmode in $am_compiler_list; do
3658 # Setup a source with many dependencies, because some compilers
3659 # like to wrap large dependency lists on column 80 (with \), and
3660 # we should not choose a depcomp mode which is confused by this.
3661 #
3662 # We need to recreate these files for each test, as the compiler may
3663 # overwrite some of them when testing with obscure command lines.
3664 # This happens at least with the AIX C compiler.
3665 : > sub/conftest.c
3666 for i in 1 2 3 4 5 6; do
3667 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3668 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3669 # Solaris 8's {/usr,}/bin/sh.
3670 touch sub/conftst$i.h
3671 done
3672 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3673
3674 case $depmode in
3675 nosideeffect)
3676 # after this tag, mechanisms are not by side-effect, so they'll
3677 # only be used when explicitly requested
3678 if test "x$enable_dependency_tracking" = xyes; then
3679 continue
3680 else
3681 break
3682 fi
3683 ;;
3684 none) break ;;
3685 esac
3686 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3687 # mode. It turns out that the SunPro C++ compiler does not properly
3688 # handle `-M -o', and we need to detect this.
3689 if depmode=$depmode \
3690 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3691 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3692 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3693 >/dev/null 2>conftest.err &&
3694 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3695 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3696 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3697 # icc doesn't choke on unknown options, it will just issue warnings
3698 # or remarks (even with -Werror). So we grep stderr for any message
3699 # that says an option was ignored or not supported.
3700 # When given -MP, icc 7.0 and 7.1 complain thusly:
3701 # icc: Command line warning: ignoring option '-M'; no argument required
3702 # The diagnosis changed in icc 8.0:
3703 # icc: Command line remark: option '-MP' not supported
3704 if (grep 'ignoring option' conftest.err ||
3705 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3706 am_cv_CXX_dependencies_compiler_type=$depmode
3707 break
3708 fi
3709 fi
3710 done
3711
3712 cd ..
3713 rm -rf conftest.dir
3714else
3715 am_cv_CXX_dependencies_compiler_type=none
3716fi
3717
3718fi
3719echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3720echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3721CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3722
3723
3724
3725if
3726 test "x$enable_dependency_tracking" != xno \
3727 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3728 am__fastdepCXX_TRUE=
3729 am__fastdepCXX_FALSE='#'
3730else
3731 am__fastdepCXX_TRUE='#'
3732 am__fastdepCXX_FALSE=
3733fi
3734
3735
3736
mmentovai425d2562006-08-30 20:05:05 +00003737
brynercb91a2f2006-08-25 21:14:45 +00003738# Check whether --enable-shared or --disable-shared was given.
3739if test "${enable_shared+set}" = set; then
3740 enableval="$enable_shared"
3741 p=${PACKAGE-default}
3742 case $enableval in
3743 yes) enable_shared=yes ;;
3744 no) enable_shared=no ;;
3745 *)
3746 enable_shared=no
3747 # Look at the argument we got. We use all the common list separators.
3748 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3749 for pkg in $enableval; do
3750 IFS="$lt_save_ifs"
3751 if test "X$pkg" = "X$p"; then
3752 enable_shared=yes
3753 fi
3754 done
3755 IFS="$lt_save_ifs"
3756 ;;
3757 esac
3758else
3759 enable_shared=yes
3760fi;
3761
3762# Check whether --enable-static or --disable-static was given.
3763if test "${enable_static+set}" = set; then
3764 enableval="$enable_static"
3765 p=${PACKAGE-default}
3766 case $enableval in
3767 yes) enable_static=yes ;;
3768 no) enable_static=no ;;
3769 *)
3770 enable_static=no
3771 # Look at the argument we got. We use all the common list separators.
3772 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3773 for pkg in $enableval; do
3774 IFS="$lt_save_ifs"
3775 if test "X$pkg" = "X$p"; then
3776 enable_static=yes
3777 fi
3778 done
3779 IFS="$lt_save_ifs"
3780 ;;
3781 esac
3782else
3783 enable_static=yes
3784fi;
3785
3786# Check whether --enable-fast-install or --disable-fast-install was given.
3787if test "${enable_fast_install+set}" = set; then
3788 enableval="$enable_fast_install"
3789 p=${PACKAGE-default}
3790 case $enableval in
3791 yes) enable_fast_install=yes ;;
3792 no) enable_fast_install=no ;;
3793 *)
3794 enable_fast_install=no
3795 # Look at the argument we got. We use all the common list separators.
3796 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3797 for pkg in $enableval; do
3798 IFS="$lt_save_ifs"
3799 if test "X$pkg" = "X$p"; then
3800 enable_fast_install=yes
3801 fi
3802 done
3803 IFS="$lt_save_ifs"
3804 ;;
3805 esac
3806else
3807 enable_fast_install=yes
3808fi;
3809
3810# Make sure we can run config.sub.
3811$ac_config_sub sun4 >/dev/null 2>&1 ||
3812 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3813echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3814 { (exit 1); exit 1; }; }
3815
3816echo "$as_me:$LINENO: checking build system type" >&5
3817echo $ECHO_N "checking build system type... $ECHO_C" >&6
3818if test "${ac_cv_build+set}" = set; then
3819 echo $ECHO_N "(cached) $ECHO_C" >&6
3820else
3821 ac_cv_build_alias=$build_alias
3822test -z "$ac_cv_build_alias" &&
3823 ac_cv_build_alias=`$ac_config_guess`
3824test -z "$ac_cv_build_alias" &&
3825 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3826echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3827 { (exit 1); exit 1; }; }
3828ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3829 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3830echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3831 { (exit 1); exit 1; }; }
3832
3833fi
3834echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3835echo "${ECHO_T}$ac_cv_build" >&6
3836build=$ac_cv_build
3837build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3838build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3839build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3840
3841
3842echo "$as_me:$LINENO: checking host system type" >&5
3843echo $ECHO_N "checking host system type... $ECHO_C" >&6
3844if test "${ac_cv_host+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3846else
3847 ac_cv_host_alias=$host_alias
3848test -z "$ac_cv_host_alias" &&
3849 ac_cv_host_alias=$ac_cv_build_alias
3850ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3851 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3852echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3853 { (exit 1); exit 1; }; }
3854
3855fi
3856echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3857echo "${ECHO_T}$ac_cv_host" >&6
3858host=$ac_cv_host
3859host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3860host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3861host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3862
3863
3864echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3865echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3866if test "${lt_cv_path_SED+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3868else
3869 # Loop through the user's path and test for sed and gsed.
3870# Then use that list of sed's as ones to test for truncation.
3871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3872for as_dir in $PATH
3873do
3874 IFS=$as_save_IFS
3875 test -z "$as_dir" && as_dir=.
3876 for lt_ac_prog in sed gsed; do
3877 for ac_exec_ext in '' $ac_executable_extensions; do
3878 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3879 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3880 fi
3881 done
3882 done
3883done
3884lt_ac_max=0
3885lt_ac_count=0
3886# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3887# along with /bin/sed that truncates output.
3888for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
brynerd5e66382006-09-08 02:35:53 +00003889 test ! -f $lt_ac_sed && break
brynercb91a2f2006-08-25 21:14:45 +00003890 cat /dev/null > conftest.in
3891 lt_ac_count=0
3892 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3893 # Check for GNU sed and select it if it is found.
3894 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3895 lt_cv_path_SED=$lt_ac_sed
3896 break
3897 fi
3898 while true; do
3899 cat conftest.in conftest.in >conftest.tmp
3900 mv conftest.tmp conftest.in
3901 cp conftest.in conftest.nl
3902 echo >>conftest.nl
3903 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3904 cmp -s conftest.out conftest.nl || break
3905 # 10000 chars as input seems more than enough
3906 test $lt_ac_count -gt 10 && break
3907 lt_ac_count=`expr $lt_ac_count + 1`
3908 if test $lt_ac_count -gt $lt_ac_max; then
3909 lt_ac_max=$lt_ac_count
3910 lt_cv_path_SED=$lt_ac_sed
3911 fi
3912 done
3913done
brynerd5e66382006-09-08 02:35:53 +00003914SED=$lt_cv_path_SED
brynercb91a2f2006-08-25 21:14:45 +00003915
3916fi
3917
3918echo "$as_me:$LINENO: result: $SED" >&5
3919echo "${ECHO_T}$SED" >&6
3920
3921echo "$as_me:$LINENO: checking for egrep" >&5
3922echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3923if test "${ac_cv_prog_egrep+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3925else
3926 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3927 then ac_cv_prog_egrep='grep -E'
3928 else ac_cv_prog_egrep='egrep'
3929 fi
3930fi
3931echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3932echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3933 EGREP=$ac_cv_prog_egrep
3934
3935
3936
3937# Check whether --with-gnu-ld or --without-gnu-ld was given.
3938if test "${with_gnu_ld+set}" = set; then
3939 withval="$with_gnu_ld"
3940 test "$withval" = no || with_gnu_ld=yes
3941else
3942 with_gnu_ld=no
3943fi;
3944ac_prog=ld
3945if test "$GCC" = yes; then
3946 # Check if gcc -print-prog-name=ld gives a path.
3947 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3948echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3949 case $host in
3950 *-*-mingw*)
3951 # gcc leaves a trailing carriage return which upsets mingw
3952 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3953 *)
3954 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3955 esac
3956 case $ac_prog in
3957 # Accept absolute paths.
3958 [\\/]* | ?:[\\/]*)
3959 re_direlt='/[^/][^/]*/\.\./'
3960 # Canonicalize the pathname of ld
3961 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3962 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3963 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3964 done
3965 test -z "$LD" && LD="$ac_prog"
3966 ;;
3967 "")
3968 # If it fails, then pretend we aren't using GCC.
3969 ac_prog=ld
3970 ;;
3971 *)
3972 # If it is relative, then search for the first ld in PATH.
3973 with_gnu_ld=unknown
3974 ;;
3975 esac
3976elif test "$with_gnu_ld" = yes; then
3977 echo "$as_me:$LINENO: checking for GNU ld" >&5
3978echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3979else
3980 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3981echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3982fi
3983if test "${lt_cv_path_LD+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3985else
3986 if test -z "$LD"; then
3987 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3988 for ac_dir in $PATH; do
3989 IFS="$lt_save_ifs"
3990 test -z "$ac_dir" && ac_dir=.
3991 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3992 lt_cv_path_LD="$ac_dir/$ac_prog"
3993 # Check to see if the program is GNU ld. I'd rather use --version,
brynerd5e66382006-09-08 02:35:53 +00003994 # but apparently some GNU ld's only accept -v.
brynercb91a2f2006-08-25 21:14:45 +00003995 # Break only if it was the GNU/non-GNU ld that we prefer.
3996 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3997 *GNU* | *'with BFD'*)
3998 test "$with_gnu_ld" != no && break
3999 ;;
4000 *)
4001 test "$with_gnu_ld" != yes && break
4002 ;;
4003 esac
4004 fi
4005 done
4006 IFS="$lt_save_ifs"
4007else
4008 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4009fi
4010fi
4011
4012LD="$lt_cv_path_LD"
4013if test -n "$LD"; then
4014 echo "$as_me:$LINENO: result: $LD" >&5
4015echo "${ECHO_T}$LD" >&6
4016else
4017 echo "$as_me:$LINENO: result: no" >&5
4018echo "${ECHO_T}no" >&6
4019fi
4020test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4021echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4022 { (exit 1); exit 1; }; }
4023echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4024echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4025if test "${lt_cv_prog_gnu_ld+set}" = set; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4027else
brynerd5e66382006-09-08 02:35:53 +00004028 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
brynercb91a2f2006-08-25 21:14:45 +00004029case `$LD -v 2>&1 </dev/null` in
4030*GNU* | *'with BFD'*)
4031 lt_cv_prog_gnu_ld=yes
4032 ;;
4033*)
4034 lt_cv_prog_gnu_ld=no
4035 ;;
4036esac
4037fi
4038echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4039echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4040with_gnu_ld=$lt_cv_prog_gnu_ld
4041
4042
4043echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4044echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4045if test "${lt_cv_ld_reload_flag+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4047else
4048 lt_cv_ld_reload_flag='-r'
4049fi
4050echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4051echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4052reload_flag=$lt_cv_ld_reload_flag
4053case $reload_flag in
4054"" | " "*) ;;
4055*) reload_flag=" $reload_flag" ;;
4056esac
4057reload_cmds='$LD$reload_flag -o $output$reload_objs'
4058
4059echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4060echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4061if test "${lt_cv_path_NM+set}" = set; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
4063else
4064 if test -n "$NM"; then
4065 # Let the user override the test.
4066 lt_cv_path_NM="$NM"
4067else
brynerd5e66382006-09-08 02:35:53 +00004068 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4069 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4070 IFS="$lt_save_ifs"
4071 test -z "$ac_dir" && ac_dir=.
4072 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4073 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4074 # Check to see if the nm accepts a BSD-compat flag.
4075 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4076 # nm: unknown option "B" ignored
4077 # Tru64's nm complains that /dev/null is an invalid object file
4078 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4079 */dev/null* | *'Invalid file or object type'*)
4080 lt_cv_path_NM="$tmp_nm -B"
4081 break
4082 ;;
4083 *)
4084 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4085 */dev/null*)
4086 lt_cv_path_NM="$tmp_nm -p"
brynercb91a2f2006-08-25 21:14:45 +00004087 break
4088 ;;
4089 *)
brynerd5e66382006-09-08 02:35:53 +00004090 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4091 continue # so that we can try to find one that supports BSD flags
brynercb91a2f2006-08-25 21:14:45 +00004092 ;;
4093 esac
brynerd5e66382006-09-08 02:35:53 +00004094 esac
4095 fi
brynercb91a2f2006-08-25 21:14:45 +00004096 done
brynerd5e66382006-09-08 02:35:53 +00004097 IFS="$lt_save_ifs"
brynercb91a2f2006-08-25 21:14:45 +00004098 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4099fi
4100fi
4101echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4102echo "${ECHO_T}$lt_cv_path_NM" >&6
4103NM="$lt_cv_path_NM"
4104
4105echo "$as_me:$LINENO: checking whether ln -s works" >&5
4106echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4107LN_S=$as_ln_s
4108if test "$LN_S" = "ln -s"; then
4109 echo "$as_me:$LINENO: result: yes" >&5
4110echo "${ECHO_T}yes" >&6
4111else
4112 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4113echo "${ECHO_T}no, using $LN_S" >&6
4114fi
4115
4116echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4117echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4118if test "${lt_cv_deplibs_check_method+set}" = set; then
4119 echo $ECHO_N "(cached) $ECHO_C" >&6
4120else
4121 lt_cv_file_magic_cmd='$MAGIC_CMD'
4122lt_cv_file_magic_test_file=
4123lt_cv_deplibs_check_method='unknown'
4124# Need to set the preceding variable on all platforms that support
4125# interlibrary dependencies.
4126# 'none' -- dependencies not supported.
4127# `unknown' -- same as none, but documents that we really don't know.
4128# 'pass_all' -- all dependencies passed with no checks.
4129# 'test_compile' -- check by making test program.
4130# 'file_magic [[regex]]' -- check by looking for files in library path
4131# which responds to the $file_magic_cmd with a given extended regex.
4132# If you have `file' or equivalent on your system and you're not sure
4133# whether `pass_all' will *always* work, you probably want this one.
4134
4135case $host_os in
4136aix4* | aix5*)
4137 lt_cv_deplibs_check_method=pass_all
4138 ;;
4139
4140beos*)
4141 lt_cv_deplibs_check_method=pass_all
4142 ;;
4143
brynerd5e66382006-09-08 02:35:53 +00004144bsdi4*)
brynercb91a2f2006-08-25 21:14:45 +00004145 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4146 lt_cv_file_magic_cmd='/usr/bin/file -L'
4147 lt_cv_file_magic_test_file=/shlib/libc.so
4148 ;;
4149
4150cygwin*)
4151 # func_win32_libid is a shell function defined in ltmain.sh
4152 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4153 lt_cv_file_magic_cmd='func_win32_libid'
4154 ;;
4155
4156mingw* | pw32*)
4157 # Base MSYS/MinGW do not provide the 'file' command needed by
4158 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4159 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4160 lt_cv_file_magic_cmd='$OBJDUMP -f'
4161 ;;
4162
4163darwin* | rhapsody*)
4164 lt_cv_deplibs_check_method=pass_all
4165 ;;
4166
brynerd5e66382006-09-08 02:35:53 +00004167freebsd* | kfreebsd*-gnu)
brynercb91a2f2006-08-25 21:14:45 +00004168 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4169 case $host_cpu in
4170 i*86 )
4171 # Not sure whether the presence of OpenBSD here was a mistake.
4172 # Let's accept both of them until this is cleared up.
brynerd5e66382006-09-08 02:35:53 +00004173 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
brynercb91a2f2006-08-25 21:14:45 +00004174 lt_cv_file_magic_cmd=/usr/bin/file
4175 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4176 ;;
4177 esac
4178 else
4179 lt_cv_deplibs_check_method=pass_all
4180 fi
4181 ;;
4182
4183gnu*)
4184 lt_cv_deplibs_check_method=pass_all
4185 ;;
4186
4187hpux10.20* | hpux11*)
4188 lt_cv_file_magic_cmd=/usr/bin/file
brynerd5e66382006-09-08 02:35:53 +00004189 case "$host_cpu" in
brynercb91a2f2006-08-25 21:14:45 +00004190 ia64*)
4191 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4192 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4193 ;;
4194 hppa*64*)
4195 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]'
4196 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4197 ;;
4198 *)
4199 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4200 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4201 ;;
4202 esac
4203 ;;
4204
4205irix5* | irix6* | nonstopux*)
4206 case $LD in
4207 *-32|*"-32 ") libmagic=32-bit;;
4208 *-n32|*"-n32 ") libmagic=N32;;
4209 *-64|*"-64 ") libmagic=64-bit;;
4210 *) libmagic=never-match;;
4211 esac
4212 lt_cv_deplibs_check_method=pass_all
4213 ;;
4214
4215# This must be Linux ELF.
4216linux*)
4217 lt_cv_deplibs_check_method=pass_all
4218 ;;
4219
brynerd5e66382006-09-08 02:35:53 +00004220netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
brynercb91a2f2006-08-25 21:14:45 +00004221 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4222 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4223 else
4224 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4225 fi
4226 ;;
4227
4228newos6*)
4229 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4230 lt_cv_file_magic_cmd=/usr/bin/file
4231 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4232 ;;
4233
4234nto-qnx*)
4235 lt_cv_deplibs_check_method=unknown
4236 ;;
4237
4238openbsd*)
brynerd5e66382006-09-08 02:35:53 +00004239 lt_cv_file_magic_cmd=/usr/bin/file
4240 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
brynercb91a2f2006-08-25 21:14:45 +00004241 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
brynerd5e66382006-09-08 02:35:53 +00004242 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
brynercb91a2f2006-08-25 21:14:45 +00004243 else
brynerd5e66382006-09-08 02:35:53 +00004244 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
brynercb91a2f2006-08-25 21:14:45 +00004245 fi
4246 ;;
4247
4248osf3* | osf4* | osf5*)
4249 lt_cv_deplibs_check_method=pass_all
4250 ;;
4251
brynerd5e66382006-09-08 02:35:53 +00004252sco3.2v5*)
4253 lt_cv_deplibs_check_method=pass_all
4254 ;;
4255
brynercb91a2f2006-08-25 21:14:45 +00004256solaris*)
4257 lt_cv_deplibs_check_method=pass_all
4258 ;;
4259
brynerd5e66382006-09-08 02:35:53 +00004260sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
brynercb91a2f2006-08-25 21:14:45 +00004261 case $host_vendor in
4262 motorola)
4263 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]'
4264 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4265 ;;
4266 ncr)
4267 lt_cv_deplibs_check_method=pass_all
4268 ;;
4269 sequent)
4270 lt_cv_file_magic_cmd='/bin/file'
4271 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4272 ;;
4273 sni)
4274 lt_cv_file_magic_cmd='/bin/file'
4275 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4276 lt_cv_file_magic_test_file=/lib/libc.so
4277 ;;
4278 siemens)
4279 lt_cv_deplibs_check_method=pass_all
4280 ;;
4281 esac
4282 ;;
4283
brynerd5e66382006-09-08 02:35:53 +00004284sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
brynercb91a2f2006-08-25 21:14:45 +00004285 lt_cv_deplibs_check_method=pass_all
4286 ;;
4287esac
4288
4289fi
4290echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4291echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4292file_magic_cmd=$lt_cv_file_magic_cmd
4293deplibs_check_method=$lt_cv_deplibs_check_method
4294test -z "$deplibs_check_method" && deplibs_check_method=unknown
4295
4296
4297
4298
4299# If no C compiler was specified, use CC.
4300LTCC=${LTCC-"$CC"}
4301
4302# Allow CC to be a program name with arguments.
4303compiler=$CC
4304
4305
4306# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4307if test "${enable_libtool_lock+set}" = set; then
4308 enableval="$enable_libtool_lock"
4309
4310fi;
4311test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4312
4313# Some flags need to be propagated to the compiler or linker for good
4314# libtool support.
4315case $host in
4316ia64-*-hpux*)
4317 # Find out which ABI we are using.
4318 echo 'int i;' > conftest.$ac_ext
4319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4320 (eval $ac_compile) 2>&5
4321 ac_status=$?
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; then
4324 case `/usr/bin/file conftest.$ac_objext` in
4325 *ELF-32*)
4326 HPUX_IA64_MODE="32"
4327 ;;
4328 *ELF-64*)
4329 HPUX_IA64_MODE="64"
4330 ;;
4331 esac
4332 fi
4333 rm -rf conftest*
4334 ;;
4335*-*-irix6*)
4336 # Find out which ABI we are using.
brynerd5e66382006-09-08 02:35:53 +00004337 echo '#line 4337 "configure"' > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4339 (eval $ac_compile) 2>&5
4340 ac_status=$?
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; then
4343 if test "$lt_cv_prog_gnu_ld" = yes; then
4344 case `/usr/bin/file conftest.$ac_objext` in
4345 *32-bit*)
4346 LD="${LD-ld} -melf32bsmip"
4347 ;;
4348 *N32*)
4349 LD="${LD-ld} -melf32bmipn32"
4350 ;;
4351 *64-bit*)
4352 LD="${LD-ld} -melf64bmip"
4353 ;;
4354 esac
4355 else
4356 case `/usr/bin/file conftest.$ac_objext` in
4357 *32-bit*)
4358 LD="${LD-ld} -32"
4359 ;;
4360 *N32*)
4361 LD="${LD-ld} -n32"
4362 ;;
4363 *64-bit*)
4364 LD="${LD-ld} -64"
4365 ;;
4366 esac
4367 fi
4368 fi
4369 rm -rf conftest*
4370 ;;
4371
4372x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4373 # Find out which ABI we are using.
4374 echo 'int i;' > conftest.$ac_ext
4375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4376 (eval $ac_compile) 2>&5
4377 ac_status=$?
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; then
brynerd5e66382006-09-08 02:35:53 +00004380 case "`/usr/bin/file conftest.o`" in
brynercb91a2f2006-08-25 21:14:45 +00004381 *32-bit*)
4382 case $host in
4383 x86_64-*linux*)
4384 LD="${LD-ld} -m elf_i386"
4385 ;;
4386 ppc64-*linux*|powerpc64-*linux*)
4387 LD="${LD-ld} -m elf32ppclinux"
4388 ;;
4389 s390x-*linux*)
4390 LD="${LD-ld} -m elf_s390"
4391 ;;
4392 sparc64-*linux*)
4393 LD="${LD-ld} -m elf32_sparc"
4394 ;;
4395 esac
4396 ;;
4397 *64-bit*)
4398 case $host in
4399 x86_64-*linux*)
4400 LD="${LD-ld} -m elf_x86_64"
4401 ;;
4402 ppc*-*linux*|powerpc*-*linux*)
4403 LD="${LD-ld} -m elf64ppc"
4404 ;;
4405 s390*-*linux*)
4406 LD="${LD-ld} -m elf64_s390"
4407 ;;
4408 sparc*-*linux*)
4409 LD="${LD-ld} -m elf64_sparc"
4410 ;;
4411 esac
4412 ;;
4413 esac
4414 fi
4415 rm -rf conftest*
4416 ;;
4417
4418*-*-sco3.2v5*)
4419 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4420 SAVE_CFLAGS="$CFLAGS"
4421 CFLAGS="$CFLAGS -belf"
4422 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4423echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4424if test "${lt_cv_cc_needs_belf+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4426else
4427 ac_ext=c
4428ac_cpp='$CPP $CPPFLAGS'
4429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4431ac_compiler_gnu=$ac_cv_c_compiler_gnu
4432
4433 cat >conftest.$ac_ext <<_ACEOF
4434/* confdefs.h. */
4435_ACEOF
4436cat confdefs.h >>conftest.$ac_ext
4437cat >>conftest.$ac_ext <<_ACEOF
4438/* end confdefs.h. */
4439
4440int
4441main ()
4442{
4443
4444 ;
4445 return 0;
4446}
4447_ACEOF
4448rm -f conftest.$ac_objext conftest$ac_exeext
4449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4450 (eval $ac_link) 2>conftest.er1
4451 ac_status=$?
4452 grep -v '^ *+' conftest.er1 >conftest.err
4453 rm -f conftest.er1
4454 cat conftest.err >&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } &&
brynerd5e66382006-09-08 02:35:53 +00004457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00004458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459 (eval $ac_try) 2>&5
4460 ac_status=$?
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); }; } &&
4463 { ac_try='test -s conftest$ac_exeext'
4464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465 (eval $ac_try) 2>&5
4466 ac_status=$?
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); }; }; then
4469 lt_cv_cc_needs_belf=yes
4470else
4471 echo "$as_me: failed program was:" >&5
4472sed 's/^/| /' conftest.$ac_ext >&5
4473
4474lt_cv_cc_needs_belf=no
4475fi
4476rm -f conftest.err conftest.$ac_objext \
4477 conftest$ac_exeext conftest.$ac_ext
4478 ac_ext=c
4479ac_cpp='$CPP $CPPFLAGS'
4480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4482ac_compiler_gnu=$ac_cv_c_compiler_gnu
4483
4484fi
4485echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4486echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4487 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4488 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4489 CFLAGS="$SAVE_CFLAGS"
4490 fi
4491 ;;
4492
4493esac
4494
4495need_locks="$enable_libtool_lock"
4496
4497
4498
4499echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4500echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4501if test "${ac_cv_header_stdc+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4503else
4504 cat >conftest.$ac_ext <<_ACEOF
4505/* confdefs.h. */
4506_ACEOF
4507cat confdefs.h >>conftest.$ac_ext
4508cat >>conftest.$ac_ext <<_ACEOF
4509/* end confdefs.h. */
4510#include <stdlib.h>
4511#include <stdarg.h>
4512#include <string.h>
4513#include <float.h>
4514
4515int
4516main ()
4517{
4518
4519 ;
4520 return 0;
4521}
4522_ACEOF
4523rm -f conftest.$ac_objext
4524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4525 (eval $ac_compile) 2>conftest.er1
4526 ac_status=$?
4527 grep -v '^ *+' conftest.er1 >conftest.err
4528 rm -f conftest.er1
4529 cat conftest.err >&5
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); } &&
brynerd5e66382006-09-08 02:35:53 +00004532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00004533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4534 (eval $ac_try) 2>&5
4535 ac_status=$?
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); }; } &&
4538 { ac_try='test -s conftest.$ac_objext'
4539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4540 (eval $ac_try) 2>&5
4541 ac_status=$?
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }; }; then
4544 ac_cv_header_stdc=yes
4545else
4546 echo "$as_me: failed program was:" >&5
4547sed 's/^/| /' conftest.$ac_ext >&5
4548
4549ac_cv_header_stdc=no
4550fi
4551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4552
4553if test $ac_cv_header_stdc = yes; then
4554 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4555 cat >conftest.$ac_ext <<_ACEOF
4556/* confdefs.h. */
4557_ACEOF
4558cat confdefs.h >>conftest.$ac_ext
4559cat >>conftest.$ac_ext <<_ACEOF
4560/* end confdefs.h. */
4561#include <string.h>
4562
4563_ACEOF
4564if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4565 $EGREP "memchr" >/dev/null 2>&1; then
4566 :
4567else
4568 ac_cv_header_stdc=no
4569fi
4570rm -f conftest*
4571
4572fi
4573
4574if test $ac_cv_header_stdc = yes; then
4575 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4576 cat >conftest.$ac_ext <<_ACEOF
4577/* confdefs.h. */
4578_ACEOF
4579cat confdefs.h >>conftest.$ac_ext
4580cat >>conftest.$ac_ext <<_ACEOF
4581/* end confdefs.h. */
4582#include <stdlib.h>
4583
4584_ACEOF
4585if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4586 $EGREP "free" >/dev/null 2>&1; then
4587 :
4588else
4589 ac_cv_header_stdc=no
4590fi
4591rm -f conftest*
4592
4593fi
4594
4595if test $ac_cv_header_stdc = yes; then
4596 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4597 if test "$cross_compiling" = yes; then
4598 :
4599else
4600 cat >conftest.$ac_ext <<_ACEOF
4601/* confdefs.h. */
4602_ACEOF
4603cat confdefs.h >>conftest.$ac_ext
4604cat >>conftest.$ac_ext <<_ACEOF
4605/* end confdefs.h. */
4606#include <ctype.h>
4607#if ((' ' & 0x0FF) == 0x020)
4608# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4609# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4610#else
4611# define ISLOWER(c) \
4612 (('a' <= (c) && (c) <= 'i') \
4613 || ('j' <= (c) && (c) <= 'r') \
4614 || ('s' <= (c) && (c) <= 'z'))
4615# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4616#endif
4617
4618#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4619int
4620main ()
4621{
4622 int i;
4623 for (i = 0; i < 256; i++)
4624 if (XOR (islower (i), ISLOWER (i))
4625 || toupper (i) != TOUPPER (i))
4626 exit(2);
4627 exit (0);
4628}
4629_ACEOF
4630rm -f conftest$ac_exeext
4631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4632 (eval $ac_link) 2>&5
4633 ac_status=$?
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4637 (eval $ac_try) 2>&5
4638 ac_status=$?
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); }; }; then
4641 :
4642else
4643 echo "$as_me: program exited with status $ac_status" >&5
4644echo "$as_me: failed program was:" >&5
4645sed 's/^/| /' conftest.$ac_ext >&5
4646
4647( exit $ac_status )
4648ac_cv_header_stdc=no
4649fi
4650rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4651fi
4652fi
4653fi
4654echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4655echo "${ECHO_T}$ac_cv_header_stdc" >&6
4656if test $ac_cv_header_stdc = yes; then
4657
4658cat >>confdefs.h <<\_ACEOF
4659#define STDC_HEADERS 1
4660_ACEOF
4661
4662fi
4663
4664# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4675 inttypes.h stdint.h unistd.h
4676do
4677as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4678echo "$as_me:$LINENO: checking for $ac_header" >&5
4679echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4680if eval "test \"\${$as_ac_Header+set}\" = set"; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4682else
4683 cat >conftest.$ac_ext <<_ACEOF
4684/* confdefs.h. */
4685_ACEOF
4686cat confdefs.h >>conftest.$ac_ext
4687cat >>conftest.$ac_ext <<_ACEOF
4688/* end confdefs.h. */
4689$ac_includes_default
4690
4691#include <$ac_header>
4692_ACEOF
4693rm -f conftest.$ac_objext
4694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4695 (eval $ac_compile) 2>conftest.er1
4696 ac_status=$?
4697 grep -v '^ *+' conftest.er1 >conftest.err
4698 rm -f conftest.er1
4699 cat conftest.err >&5
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); } &&
brynerd5e66382006-09-08 02:35:53 +00004702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00004703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704 (eval $ac_try) 2>&5
4705 ac_status=$?
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }; } &&
4708 { ac_try='test -s conftest.$ac_objext'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710 (eval $ac_try) 2>&5
4711 ac_status=$?
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; }; then
4714 eval "$as_ac_Header=yes"
4715else
4716 echo "$as_me: failed program was:" >&5
4717sed 's/^/| /' conftest.$ac_ext >&5
4718
4719eval "$as_ac_Header=no"
4720fi
4721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4722fi
4723echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4724echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4725if test `eval echo '${'$as_ac_Header'}'` = yes; then
4726 cat >>confdefs.h <<_ACEOF
4727#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4728_ACEOF
4729
4730fi
4731
4732done
4733
4734
4735
4736for ac_header in dlfcn.h
4737do
4738as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4739if eval "test \"\${$as_ac_Header+set}\" = set"; then
4740 echo "$as_me:$LINENO: checking for $ac_header" >&5
4741echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4742if eval "test \"\${$as_ac_Header+set}\" = set"; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4744fi
4745echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4746echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4747else
4748 # Is the header compilable?
4749echo "$as_me:$LINENO: checking $ac_header usability" >&5
4750echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4751cat >conftest.$ac_ext <<_ACEOF
4752/* confdefs.h. */
4753_ACEOF
4754cat confdefs.h >>conftest.$ac_ext
4755cat >>conftest.$ac_ext <<_ACEOF
4756/* end confdefs.h. */
4757$ac_includes_default
4758#include <$ac_header>
4759_ACEOF
4760rm -f conftest.$ac_objext
4761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4762 (eval $ac_compile) 2>conftest.er1
4763 ac_status=$?
4764 grep -v '^ *+' conftest.er1 >conftest.err
4765 rm -f conftest.er1
4766 cat conftest.err >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } &&
brynerd5e66382006-09-08 02:35:53 +00004769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00004770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4771 (eval $ac_try) 2>&5
4772 ac_status=$?
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); }; } &&
4775 { ac_try='test -s conftest.$ac_objext'
4776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777 (eval $ac_try) 2>&5
4778 ac_status=$?
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; }; then
4781 ac_header_compiler=yes
4782else
4783 echo "$as_me: failed program was:" >&5
4784sed 's/^/| /' conftest.$ac_ext >&5
4785
4786ac_header_compiler=no
4787fi
4788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4789echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4790echo "${ECHO_T}$ac_header_compiler" >&6
4791
4792# Is the header present?
4793echo "$as_me:$LINENO: checking $ac_header presence" >&5
4794echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4795cat >conftest.$ac_ext <<_ACEOF
4796/* confdefs.h. */
4797_ACEOF
4798cat confdefs.h >>conftest.$ac_ext
4799cat >>conftest.$ac_ext <<_ACEOF
4800/* end confdefs.h. */
4801#include <$ac_header>
4802_ACEOF
4803if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4804 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4805 ac_status=$?
4806 grep -v '^ *+' conftest.er1 >conftest.err
4807 rm -f conftest.er1
4808 cat conftest.err >&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } >/dev/null; then
4811 if test -s conftest.err; then
4812 ac_cpp_err=$ac_c_preproc_warn_flag
4813 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4814 else
4815 ac_cpp_err=
4816 fi
4817else
4818 ac_cpp_err=yes
4819fi
4820if test -z "$ac_cpp_err"; then
4821 ac_header_preproc=yes
4822else
4823 echo "$as_me: failed program was:" >&5
4824sed 's/^/| /' conftest.$ac_ext >&5
4825
4826 ac_header_preproc=no
4827fi
4828rm -f conftest.err conftest.$ac_ext
4829echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4830echo "${ECHO_T}$ac_header_preproc" >&6
4831
4832# So? What about this header?
4833case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4834 yes:no: )
4835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4836echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4838echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4839 ac_header_preproc=yes
4840 ;;
4841 no:yes:* )
4842 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4843echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4844 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4845echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4846 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4847echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4848 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4849echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4851echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4852 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4853echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4854 (
4855 cat <<\_ASBOX
4856## ------------------------------------ ##
4857## Report this to opensource@google.com ##
4858## ------------------------------------ ##
4859_ASBOX
4860 ) |
4861 sed "s/^/$as_me: WARNING: /" >&2
4862 ;;
4863esac
4864echo "$as_me:$LINENO: checking for $ac_header" >&5
4865echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4866if eval "test \"\${$as_ac_Header+set}\" = set"; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
4868else
4869 eval "$as_ac_Header=\$ac_header_preproc"
4870fi
4871echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4872echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4873
4874fi
4875if test `eval echo '${'$as_ac_Header'}'` = yes; then
4876 cat >>confdefs.h <<_ACEOF
4877#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4878_ACEOF
4879
4880fi
4881
4882done
4883
brynerd5e66382006-09-08 02:35:53 +00004884ac_ext=cc
brynercb91a2f2006-08-25 21:14:45 +00004885ac_cpp='$CXXCPP $CPPFLAGS'
4886ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4887ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4888ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4889echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4890echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4891if test -z "$CXXCPP"; then
4892 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
4894else
4895 # Double quotes because CXXCPP needs to be expanded
4896 for CXXCPP in "$CXX -E" "/lib/cpp"
4897 do
4898 ac_preproc_ok=false
4899for ac_cxx_preproc_warn_flag in '' yes
4900do
4901 # Use a header file that comes with gcc, so configuring glibc
4902 # with a fresh cross-compiler works.
4903 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4904 # <limits.h> exists even on freestanding compilers.
4905 # On the NeXT, cc -E runs the code through the compiler's parser,
4906 # not just through cpp. "Syntax error" is here to catch this case.
4907 cat >conftest.$ac_ext <<_ACEOF
4908/* confdefs.h. */
4909_ACEOF
4910cat confdefs.h >>conftest.$ac_ext
4911cat >>conftest.$ac_ext <<_ACEOF
4912/* end confdefs.h. */
4913#ifdef __STDC__
4914# include <limits.h>
4915#else
4916# include <assert.h>
4917#endif
4918 Syntax error
4919_ACEOF
4920if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4922 ac_status=$?
4923 grep -v '^ *+' conftest.er1 >conftest.err
4924 rm -f conftest.er1
4925 cat conftest.err >&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); } >/dev/null; then
4928 if test -s conftest.err; then
4929 ac_cpp_err=$ac_cxx_preproc_warn_flag
4930 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4931 else
4932 ac_cpp_err=
4933 fi
4934else
4935 ac_cpp_err=yes
4936fi
4937if test -z "$ac_cpp_err"; then
4938 :
4939else
4940 echo "$as_me: failed program was:" >&5
4941sed 's/^/| /' conftest.$ac_ext >&5
4942
4943 # Broken: fails on valid input.
4944continue
4945fi
4946rm -f conftest.err conftest.$ac_ext
4947
4948 # OK, works on sane cases. Now check whether non-existent headers
4949 # can be detected and how.
4950 cat >conftest.$ac_ext <<_ACEOF
4951/* confdefs.h. */
4952_ACEOF
4953cat confdefs.h >>conftest.$ac_ext
4954cat >>conftest.$ac_ext <<_ACEOF
4955/* end confdefs.h. */
4956#include <ac_nonexistent.h>
4957_ACEOF
4958if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4960 ac_status=$?
4961 grep -v '^ *+' conftest.er1 >conftest.err
4962 rm -f conftest.er1
4963 cat conftest.err >&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } >/dev/null; then
4966 if test -s conftest.err; then
4967 ac_cpp_err=$ac_cxx_preproc_warn_flag
4968 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4969 else
4970 ac_cpp_err=
4971 fi
4972else
4973 ac_cpp_err=yes
4974fi
4975if test -z "$ac_cpp_err"; then
4976 # Broken: success on invalid input.
4977continue
4978else
4979 echo "$as_me: failed program was:" >&5
4980sed 's/^/| /' conftest.$ac_ext >&5
4981
4982 # Passes both tests.
4983ac_preproc_ok=:
4984break
4985fi
4986rm -f conftest.err conftest.$ac_ext
4987
4988done
4989# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4990rm -f conftest.err conftest.$ac_ext
4991if $ac_preproc_ok; then
4992 break
4993fi
4994
4995 done
4996 ac_cv_prog_CXXCPP=$CXXCPP
4997
4998fi
4999 CXXCPP=$ac_cv_prog_CXXCPP
5000else
5001 ac_cv_prog_CXXCPP=$CXXCPP
5002fi
5003echo "$as_me:$LINENO: result: $CXXCPP" >&5
5004echo "${ECHO_T}$CXXCPP" >&6
5005ac_preproc_ok=false
5006for ac_cxx_preproc_warn_flag in '' yes
5007do
5008 # Use a header file that comes with gcc, so configuring glibc
5009 # with a fresh cross-compiler works.
5010 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5011 # <limits.h> exists even on freestanding compilers.
5012 # On the NeXT, cc -E runs the code through the compiler's parser,
5013 # not just through cpp. "Syntax error" is here to catch this case.
5014 cat >conftest.$ac_ext <<_ACEOF
5015/* confdefs.h. */
5016_ACEOF
5017cat confdefs.h >>conftest.$ac_ext
5018cat >>conftest.$ac_ext <<_ACEOF
5019/* end confdefs.h. */
5020#ifdef __STDC__
5021# include <limits.h>
5022#else
5023# include <assert.h>
5024#endif
5025 Syntax error
5026_ACEOF
5027if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5029 ac_status=$?
5030 grep -v '^ *+' conftest.er1 >conftest.err
5031 rm -f conftest.er1
5032 cat conftest.err >&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); } >/dev/null; then
5035 if test -s conftest.err; then
5036 ac_cpp_err=$ac_cxx_preproc_warn_flag
5037 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5038 else
5039 ac_cpp_err=
5040 fi
5041else
5042 ac_cpp_err=yes
5043fi
5044if test -z "$ac_cpp_err"; then
5045 :
5046else
5047 echo "$as_me: failed program was:" >&5
5048sed 's/^/| /' conftest.$ac_ext >&5
5049
5050 # Broken: fails on valid input.
5051continue
5052fi
5053rm -f conftest.err conftest.$ac_ext
5054
5055 # OK, works on sane cases. Now check whether non-existent headers
5056 # can be detected and how.
5057 cat >conftest.$ac_ext <<_ACEOF
5058/* confdefs.h. */
5059_ACEOF
5060cat confdefs.h >>conftest.$ac_ext
5061cat >>conftest.$ac_ext <<_ACEOF
5062/* end confdefs.h. */
5063#include <ac_nonexistent.h>
5064_ACEOF
5065if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5067 ac_status=$?
5068 grep -v '^ *+' conftest.er1 >conftest.err
5069 rm -f conftest.er1
5070 cat conftest.err >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); } >/dev/null; then
5073 if test -s conftest.err; then
5074 ac_cpp_err=$ac_cxx_preproc_warn_flag
5075 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5076 else
5077 ac_cpp_err=
5078 fi
5079else
5080 ac_cpp_err=yes
5081fi
5082if test -z "$ac_cpp_err"; then
5083 # Broken: success on invalid input.
5084continue
5085else
5086 echo "$as_me: failed program was:" >&5
5087sed 's/^/| /' conftest.$ac_ext >&5
5088
5089 # Passes both tests.
5090ac_preproc_ok=:
5091break
5092fi
5093rm -f conftest.err conftest.$ac_ext
5094
5095done
5096# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5097rm -f conftest.err conftest.$ac_ext
5098if $ac_preproc_ok; then
5099 :
5100else
5101 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5102See \`config.log' for more details." >&5
5103echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5104See \`config.log' for more details." >&2;}
5105 { (exit 1); exit 1; }; }
5106fi
5107
5108ac_ext=cc
5109ac_cpp='$CXXCPP $CPPFLAGS'
5110ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5111ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5112ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5113
brynercb91a2f2006-08-25 21:14:45 +00005114
5115
5116
5117# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5118
5119# find the maximum length of command line arguments
5120echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5121echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5122if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5123 echo $ECHO_N "(cached) $ECHO_C" >&6
5124else
5125 i=0
5126 teststring="ABCD"
5127
5128 case $build_os in
5129 msdosdjgpp*)
5130 # On DJGPP, this test can blow up pretty badly due to problems in libc
5131 # (any single argument exceeding 2000 bytes causes a buffer overrun
5132 # during glob expansion). Even if it were fixed, the result of this
5133 # check would be larger than it should be.
5134 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5135 ;;
5136
5137 gnu*)
5138 # Under GNU Hurd, this test is not required because there is
5139 # no limit to the length of command line arguments.
5140 # Libtool will interpret -1 as no limit whatsoever
5141 lt_cv_sys_max_cmd_len=-1;
5142 ;;
5143
5144 cygwin* | mingw*)
5145 # On Win9x/ME, this test blows up -- it succeeds, but takes
5146 # about 5 minutes as the teststring grows exponentially.
5147 # Worse, since 9x/ME are not pre-emptively multitasking,
5148 # you end up with a "frozen" computer, even though with patience
5149 # the test eventually succeeds (with a max line length of 256k).
5150 # Instead, let's just punt: use the minimum linelength reported by
5151 # all of the supported platforms: 8192 (on NT/2K/XP).
5152 lt_cv_sys_max_cmd_len=8192;
5153 ;;
5154
5155 amigaos*)
5156 # On AmigaOS with pdksh, this test takes hours, literally.
5157 # So we just punt and use a minimum line length of 8192.
5158 lt_cv_sys_max_cmd_len=8192;
5159 ;;
5160
brynerd5e66382006-09-08 02:35:53 +00005161 *)
brynercb91a2f2006-08-25 21:14:45 +00005162 # If test is not a shell built-in, we'll probably end up computing a
5163 # maximum length that is only half of the actual maximum length, but
5164 # we can't tell.
brynerd5e66382006-09-08 02:35:53 +00005165 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
brynercb91a2f2006-08-25 21:14:45 +00005166 = "XX$teststring") >/dev/null 2>&1 &&
5167 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5168 lt_cv_sys_max_cmd_len=$new_result &&
5169 test $i != 17 # 1/2 MB should be enough
5170 do
5171 i=`expr $i + 1`
5172 teststring=$teststring$teststring
5173 done
5174 teststring=
5175 # Add a significant safety factor because C++ compilers can tack on massive
5176 # amounts of additional arguments before passing them to the linker.
5177 # It appears as though 1/2 is a usable value.
5178 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5179 ;;
5180 esac
5181
5182fi
5183
5184if test -n $lt_cv_sys_max_cmd_len ; then
5185 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5186echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5187else
5188 echo "$as_me:$LINENO: result: none" >&5
5189echo "${ECHO_T}none" >&6
5190fi
5191
5192
5193
5194
5195# Check for command to grab the raw symbol name followed by C symbol from nm.
5196echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5197echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5198if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5200else
5201
5202# These are sane defaults that work on at least a few old systems.
5203# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5204
5205# Character class describing NM global symbol codes.
5206symcode='[BCDEGRST]'
5207
5208# Regexp to match symbols that can be accessed directly from C.
5209sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5210
brynerd5e66382006-09-08 02:35:53 +00005211# Transform the above into a raw symbol and a C symbol.
5212symxfrm='\1 \2\3 \3'
5213
brynercb91a2f2006-08-25 21:14:45 +00005214# Transform an extracted symbol line into a proper C declaration
5215lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5216
5217# Transform an extracted symbol line into symbol name and symbol address
5218lt_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'"
5219
5220# Define system-specific variables.
5221case $host_os in
5222aix*)
5223 symcode='[BCDT]'
5224 ;;
5225cygwin* | mingw* | pw32*)
5226 symcode='[ABCDGISTW]'
5227 ;;
5228hpux*) # Its linker distinguishes data from code symbols
5229 if test "$host_cpu" = ia64; then
5230 symcode='[ABCDEGRST]'
5231 fi
5232 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5233 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'"
5234 ;;
5235irix* | nonstopux*)
5236 symcode='[BCDEGRST]'
5237 ;;
5238osf*)
5239 symcode='[BCDEGQRST]'
5240 ;;
brynerd5e66382006-09-08 02:35:53 +00005241solaris* | sysv5*)
brynercb91a2f2006-08-25 21:14:45 +00005242 symcode='[BDRT]'
5243 ;;
5244sysv4)
5245 symcode='[DFNSTU]'
5246 ;;
5247esac
5248
5249# Handle CRLF in mingw tool chain
5250opt_cr=
5251case $build_os in
5252mingw*)
5253 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5254 ;;
5255esac
5256
5257# If we're using GNU nm, then use its standard symbol codes.
5258case `$NM -V 2>&1` in
5259*GNU* | *'with BFD'*)
5260 symcode='[ABCDGIRSTW]' ;;
5261esac
5262
5263# Try without a prefix undercore, then with it.
5264for ac_symprfx in "" "_"; do
5265
5266 # Write the raw and C identifiers.
brynerd5e66382006-09-08 02:35:53 +00005267 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
brynercb91a2f2006-08-25 21:14:45 +00005268
5269 # Check to see that the pipe works correctly.
5270 pipe_works=no
5271
5272 rm -f conftest*
5273 cat > conftest.$ac_ext <<EOF
5274#ifdef __cplusplus
5275extern "C" {
5276#endif
5277char nm_test_var;
5278void nm_test_func(){}
5279#ifdef __cplusplus
5280}
5281#endif
5282int main(){nm_test_var='a';nm_test_func();return(0);}
5283EOF
5284
5285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5286 (eval $ac_compile) 2>&5
5287 ac_status=$?
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); }; then
5290 # Now try to grab the symbols.
5291 nlist=conftest.nm
5292 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5293 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5294 ac_status=$?
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } && test -s "$nlist"; then
5297 # Try sorting and uniquifying the output.
5298 if sort "$nlist" | uniq > "$nlist"T; then
5299 mv -f "$nlist"T "$nlist"
5300 else
5301 rm -f "$nlist"T
5302 fi
5303
5304 # Make sure that we snagged all the symbols we need.
5305 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5306 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5307 cat <<EOF > conftest.$ac_ext
5308#ifdef __cplusplus
5309extern "C" {
5310#endif
5311
5312EOF
5313 # Now generate the symbol file.
5314 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5315
5316 cat <<EOF >> conftest.$ac_ext
5317#if defined (__STDC__) && __STDC__
5318# define lt_ptr_t void *
5319#else
5320# define lt_ptr_t char *
5321# define const
5322#endif
5323
5324/* The mapping between symbol names and symbols. */
5325const struct {
5326 const char *name;
5327 lt_ptr_t address;
5328}
5329lt_preloaded_symbols[] =
5330{
5331EOF
5332 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5333 cat <<\EOF >> conftest.$ac_ext
5334 {0, (lt_ptr_t) 0}
5335};
5336
5337#ifdef __cplusplus
5338}
5339#endif
5340EOF
5341 # Now try linking the two files.
5342 mv conftest.$ac_objext conftstm.$ac_objext
5343 lt_save_LIBS="$LIBS"
5344 lt_save_CFLAGS="$CFLAGS"
5345 LIBS="conftstm.$ac_objext"
5346 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5348 (eval $ac_link) 2>&5
5349 ac_status=$?
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5352 pipe_works=yes
5353 fi
5354 LIBS="$lt_save_LIBS"
5355 CFLAGS="$lt_save_CFLAGS"
5356 else
5357 echo "cannot find nm_test_func in $nlist" >&5
5358 fi
5359 else
5360 echo "cannot find nm_test_var in $nlist" >&5
5361 fi
5362 else
5363 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5364 fi
5365 else
5366 echo "$progname: failed program was:" >&5
5367 cat conftest.$ac_ext >&5
5368 fi
5369 rm -f conftest* conftst*
5370
5371 # Do not use the global_symbol_pipe unless it works.
5372 if test "$pipe_works" = yes; then
5373 break
5374 else
5375 lt_cv_sys_global_symbol_pipe=
5376 fi
5377done
5378
5379fi
5380
5381if test -z "$lt_cv_sys_global_symbol_pipe"; then
5382 lt_cv_sys_global_symbol_to_cdecl=
5383fi
5384if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5385 echo "$as_me:$LINENO: result: failed" >&5
5386echo "${ECHO_T}failed" >&6
5387else
5388 echo "$as_me:$LINENO: result: ok" >&5
5389echo "${ECHO_T}ok" >&6
5390fi
5391
5392echo "$as_me:$LINENO: checking for objdir" >&5
5393echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5394if test "${lt_cv_objdir+set}" = set; then
5395 echo $ECHO_N "(cached) $ECHO_C" >&6
5396else
5397 rm -f .libs 2>/dev/null
5398mkdir .libs 2>/dev/null
5399if test -d .libs; then
5400 lt_cv_objdir=.libs
5401else
5402 # MS-DOS does not allow filenames that begin with a dot.
5403 lt_cv_objdir=_libs
5404fi
5405rmdir .libs 2>/dev/null
5406fi
5407echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5408echo "${ECHO_T}$lt_cv_objdir" >&6
5409objdir=$lt_cv_objdir
5410
5411
5412
5413
5414
5415case $host_os in
5416aix3*)
5417 # AIX sometimes has problems with the GCC collect2 program. For some
5418 # reason, if we set the COLLECT_NAMES environment variable, the problems
5419 # vanish in a puff of smoke.
5420 if test "X${COLLECT_NAMES+set}" != Xset; then
5421 COLLECT_NAMES=
5422 export COLLECT_NAMES
5423 fi
5424 ;;
5425esac
5426
5427# Sed substitution that helps us do robust quoting. It backslashifies
5428# metacharacters that are still active within double-quoted strings.
brynerd5e66382006-09-08 02:35:53 +00005429Xsed='sed -e s/^X//'
brynercb91a2f2006-08-25 21:14:45 +00005430sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5431
5432# Same as above, but do not quote variable references.
5433double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5434
5435# Sed substitution to delay expansion of an escaped shell variable in a
5436# double_quote_subst'ed string.
5437delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5438
5439# Sed substitution to avoid accidental globbing in evaled expressions
5440no_glob_subst='s/\*/\\\*/g'
5441
5442# Constants:
5443rm="rm -f"
5444
5445# Global variables:
5446default_ofile=libtool
5447can_build_shared=yes
5448
brynerd5e66382006-09-08 02:35:53 +00005449# All known linkers require a `.a' archive for static linking (except M$VC,
brynercb91a2f2006-08-25 21:14:45 +00005450# which needs '.lib').
5451libext=a
5452ltmain="$ac_aux_dir/ltmain.sh"
5453ofile="$default_ofile"
5454with_gnu_ld="$lt_cv_prog_gnu_ld"
5455
5456if test -n "$ac_tool_prefix"; then
5457 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5458set dummy ${ac_tool_prefix}ar; ac_word=$2
5459echo "$as_me:$LINENO: checking for $ac_word" >&5
5460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5461if test "${ac_cv_prog_AR+set}" = set; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5463else
5464 if test -n "$AR"; then
5465 ac_cv_prog_AR="$AR" # Let the user override the test.
5466else
5467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468for as_dir in $PATH
5469do
5470 IFS=$as_save_IFS
5471 test -z "$as_dir" && as_dir=.
5472 for ac_exec_ext in '' $ac_executable_extensions; do
5473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5474 ac_cv_prog_AR="${ac_tool_prefix}ar"
5475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5476 break 2
5477 fi
5478done
5479done
5480
5481fi
5482fi
5483AR=$ac_cv_prog_AR
5484if test -n "$AR"; then
5485 echo "$as_me:$LINENO: result: $AR" >&5
5486echo "${ECHO_T}$AR" >&6
5487else
5488 echo "$as_me:$LINENO: result: no" >&5
5489echo "${ECHO_T}no" >&6
5490fi
5491
5492fi
5493if test -z "$ac_cv_prog_AR"; then
5494 ac_ct_AR=$AR
5495 # Extract the first word of "ar", so it can be a program name with args.
5496set dummy ar; ac_word=$2
5497echo "$as_me:$LINENO: checking for $ac_word" >&5
5498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5499if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5501else
5502 if test -n "$ac_ct_AR"; then
5503 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5504else
5505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506for as_dir in $PATH
5507do
5508 IFS=$as_save_IFS
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5512 ac_cv_prog_ac_ct_AR="ar"
5513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 break 2
5515 fi
5516done
5517done
5518
5519 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5520fi
5521fi
5522ac_ct_AR=$ac_cv_prog_ac_ct_AR
5523if test -n "$ac_ct_AR"; then
5524 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5525echo "${ECHO_T}$ac_ct_AR" >&6
5526else
5527 echo "$as_me:$LINENO: result: no" >&5
5528echo "${ECHO_T}no" >&6
5529fi
5530
5531 AR=$ac_ct_AR
5532else
5533 AR="$ac_cv_prog_AR"
5534fi
5535
5536if test -n "$ac_tool_prefix"; then
5537 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5538set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5539echo "$as_me:$LINENO: checking for $ac_word" >&5
5540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5541if test "${ac_cv_prog_RANLIB+set}" = set; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5543else
5544 if test -n "$RANLIB"; then
5545 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5546else
5547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548for as_dir in $PATH
5549do
5550 IFS=$as_save_IFS
5551 test -z "$as_dir" && as_dir=.
5552 for ac_exec_ext in '' $ac_executable_extensions; do
5553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5554 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5556 break 2
5557 fi
5558done
5559done
5560
5561fi
5562fi
5563RANLIB=$ac_cv_prog_RANLIB
5564if test -n "$RANLIB"; then
5565 echo "$as_me:$LINENO: result: $RANLIB" >&5
5566echo "${ECHO_T}$RANLIB" >&6
5567else
5568 echo "$as_me:$LINENO: result: no" >&5
5569echo "${ECHO_T}no" >&6
5570fi
5571
5572fi
5573if test -z "$ac_cv_prog_RANLIB"; then
5574 ac_ct_RANLIB=$RANLIB
5575 # Extract the first word of "ranlib", so it can be a program name with args.
5576set dummy ranlib; ac_word=$2
5577echo "$as_me:$LINENO: checking for $ac_word" >&5
5578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5579if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5581else
5582 if test -n "$ac_ct_RANLIB"; then
5583 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5584else
5585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586for as_dir in $PATH
5587do
5588 IFS=$as_save_IFS
5589 test -z "$as_dir" && as_dir=.
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5592 ac_cv_prog_ac_ct_RANLIB="ranlib"
5593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5594 break 2
5595 fi
5596done
5597done
5598
5599 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5600fi
5601fi
5602ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5603if test -n "$ac_ct_RANLIB"; then
5604 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5605echo "${ECHO_T}$ac_ct_RANLIB" >&6
5606else
5607 echo "$as_me:$LINENO: result: no" >&5
5608echo "${ECHO_T}no" >&6
5609fi
5610
5611 RANLIB=$ac_ct_RANLIB
5612else
5613 RANLIB="$ac_cv_prog_RANLIB"
5614fi
5615
5616if test -n "$ac_tool_prefix"; then
5617 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5618set dummy ${ac_tool_prefix}strip; ac_word=$2
5619echo "$as_me:$LINENO: checking for $ac_word" >&5
5620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5621if test "${ac_cv_prog_STRIP+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5623else
5624 if test -n "$STRIP"; then
5625 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5626else
5627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628for as_dir in $PATH
5629do
5630 IFS=$as_save_IFS
5631 test -z "$as_dir" && as_dir=.
5632 for ac_exec_ext in '' $ac_executable_extensions; do
5633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5634 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5636 break 2
5637 fi
5638done
5639done
5640
5641fi
5642fi
5643STRIP=$ac_cv_prog_STRIP
5644if test -n "$STRIP"; then
5645 echo "$as_me:$LINENO: result: $STRIP" >&5
5646echo "${ECHO_T}$STRIP" >&6
5647else
5648 echo "$as_me:$LINENO: result: no" >&5
5649echo "${ECHO_T}no" >&6
5650fi
5651
5652fi
5653if test -z "$ac_cv_prog_STRIP"; then
5654 ac_ct_STRIP=$STRIP
5655 # Extract the first word of "strip", so it can be a program name with args.
5656set dummy strip; ac_word=$2
5657echo "$as_me:$LINENO: checking for $ac_word" >&5
5658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5659if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5660 echo $ECHO_N "(cached) $ECHO_C" >&6
5661else
5662 if test -n "$ac_ct_STRIP"; then
5663 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5664else
5665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5666for as_dir in $PATH
5667do
5668 IFS=$as_save_IFS
5669 test -z "$as_dir" && as_dir=.
5670 for ac_exec_ext in '' $ac_executable_extensions; do
5671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5672 ac_cv_prog_ac_ct_STRIP="strip"
5673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5674 break 2
5675 fi
5676done
5677done
5678
5679 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5680fi
5681fi
5682ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5683if test -n "$ac_ct_STRIP"; then
5684 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5685echo "${ECHO_T}$ac_ct_STRIP" >&6
5686else
5687 echo "$as_me:$LINENO: result: no" >&5
5688echo "${ECHO_T}no" >&6
5689fi
5690
5691 STRIP=$ac_ct_STRIP
5692else
5693 STRIP="$ac_cv_prog_STRIP"
5694fi
5695
5696
5697old_CC="$CC"
5698old_CFLAGS="$CFLAGS"
5699
5700# Set sane defaults for various variables
5701test -z "$AR" && AR=ar
5702test -z "$AR_FLAGS" && AR_FLAGS=cru
5703test -z "$AS" && AS=as
5704test -z "$CC" && CC=cc
5705test -z "$LTCC" && LTCC=$CC
5706test -z "$DLLTOOL" && DLLTOOL=dlltool
5707test -z "$LD" && LD=ld
5708test -z "$LN_S" && LN_S="ln -s"
5709test -z "$MAGIC_CMD" && MAGIC_CMD=file
5710test -z "$NM" && NM=nm
5711test -z "$SED" && SED=sed
5712test -z "$OBJDUMP" && OBJDUMP=objdump
5713test -z "$RANLIB" && RANLIB=:
5714test -z "$STRIP" && STRIP=:
5715test -z "$ac_objext" && ac_objext=o
5716
5717# Determine commands to create old-style static archives.
5718old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5719old_postinstall_cmds='chmod 644 $oldlib'
5720old_postuninstall_cmds=
5721
5722if test -n "$RANLIB"; then
5723 case $host_os in
5724 openbsd*)
brynerd5e66382006-09-08 02:35:53 +00005725 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
brynercb91a2f2006-08-25 21:14:45 +00005726 ;;
5727 *)
brynerd5e66382006-09-08 02:35:53 +00005728 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
brynercb91a2f2006-08-25 21:14:45 +00005729 ;;
5730 esac
5731 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5732fi
5733
5734# Only perform the check for file, if the check method requires it
5735case $deplibs_check_method in
5736file_magic*)
5737 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5738 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5739echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5740if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5742else
5743 case $MAGIC_CMD in
5744[\\/*] | ?:[\\/]*)
5745 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5746 ;;
5747*)
5748 lt_save_MAGIC_CMD="$MAGIC_CMD"
5749 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5750 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5751 for ac_dir in $ac_dummy; do
5752 IFS="$lt_save_ifs"
5753 test -z "$ac_dir" && ac_dir=.
5754 if test -f $ac_dir/${ac_tool_prefix}file; then
5755 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5756 if test -n "$file_magic_test_file"; then
5757 case $deplibs_check_method in
5758 "file_magic "*)
brynerd5e66382006-09-08 02:35:53 +00005759 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
brynercb91a2f2006-08-25 21:14:45 +00005760 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5761 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5762 $EGREP "$file_magic_regex" > /dev/null; then
5763 :
5764 else
5765 cat <<EOF 1>&2
5766
5767*** Warning: the command libtool uses to detect shared libraries,
5768*** $file_magic_cmd, produces output that libtool cannot recognize.
5769*** The result is that libtool may fail to recognize shared libraries
5770*** as such. This will affect the creation of libtool libraries that
5771*** depend on shared libraries, but programs linked with such libtool
5772*** libraries will work regardless of this problem. Nevertheless, you
5773*** may want to report the problem to your system manager and/or to
5774*** bug-libtool@gnu.org
5775
5776EOF
5777 fi ;;
5778 esac
5779 fi
5780 break
5781 fi
5782 done
5783 IFS="$lt_save_ifs"
5784 MAGIC_CMD="$lt_save_MAGIC_CMD"
5785 ;;
5786esac
5787fi
5788
5789MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5790if test -n "$MAGIC_CMD"; then
5791 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5792echo "${ECHO_T}$MAGIC_CMD" >&6
5793else
5794 echo "$as_me:$LINENO: result: no" >&5
5795echo "${ECHO_T}no" >&6
5796fi
5797
5798if test -z "$lt_cv_path_MAGIC_CMD"; then
5799 if test -n "$ac_tool_prefix"; then
5800 echo "$as_me:$LINENO: checking for file" >&5
5801echo $ECHO_N "checking for file... $ECHO_C" >&6
5802if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5804else
5805 case $MAGIC_CMD in
5806[\\/*] | ?:[\\/]*)
5807 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5808 ;;
5809*)
5810 lt_save_MAGIC_CMD="$MAGIC_CMD"
5811 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5812 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5813 for ac_dir in $ac_dummy; do
5814 IFS="$lt_save_ifs"
5815 test -z "$ac_dir" && ac_dir=.
5816 if test -f $ac_dir/file; then
5817 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5818 if test -n "$file_magic_test_file"; then
5819 case $deplibs_check_method in
5820 "file_magic "*)
brynerd5e66382006-09-08 02:35:53 +00005821 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
brynercb91a2f2006-08-25 21:14:45 +00005822 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5823 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5824 $EGREP "$file_magic_regex" > /dev/null; then
5825 :
5826 else
5827 cat <<EOF 1>&2
5828
5829*** Warning: the command libtool uses to detect shared libraries,
5830*** $file_magic_cmd, produces output that libtool cannot recognize.
5831*** The result is that libtool may fail to recognize shared libraries
5832*** as such. This will affect the creation of libtool libraries that
5833*** depend on shared libraries, but programs linked with such libtool
5834*** libraries will work regardless of this problem. Nevertheless, you
5835*** may want to report the problem to your system manager and/or to
5836*** bug-libtool@gnu.org
5837
5838EOF
5839 fi ;;
5840 esac
5841 fi
5842 break
5843 fi
5844 done
5845 IFS="$lt_save_ifs"
5846 MAGIC_CMD="$lt_save_MAGIC_CMD"
5847 ;;
5848esac
5849fi
5850
5851MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5852if test -n "$MAGIC_CMD"; then
5853 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5854echo "${ECHO_T}$MAGIC_CMD" >&6
5855else
5856 echo "$as_me:$LINENO: result: no" >&5
5857echo "${ECHO_T}no" >&6
5858fi
5859
5860 else
5861 MAGIC_CMD=:
5862 fi
5863fi
5864
5865 fi
5866 ;;
5867esac
5868
5869enable_dlopen=no
5870enable_win32_dll=no
5871
5872# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5873if test "${enable_libtool_lock+set}" = set; then
5874 enableval="$enable_libtool_lock"
5875
5876fi;
5877test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5878
5879
5880# Check whether --with-pic or --without-pic was given.
5881if test "${with_pic+set}" = set; then
5882 withval="$with_pic"
5883 pic_mode="$withval"
5884else
5885 pic_mode=default
5886fi;
5887test -z "$pic_mode" && pic_mode=default
5888
5889# Use C for the default configuration in the libtool script
5890tagname=
5891lt_save_CC="$CC"
5892ac_ext=c
5893ac_cpp='$CPP $CPPFLAGS'
5894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5896ac_compiler_gnu=$ac_cv_c_compiler_gnu
5897
5898
5899# Source file extension for C test sources.
5900ac_ext=c
5901
5902# Object file extension for compiled C test sources.
5903objext=o
5904objext=$objext
5905
5906# Code to be used in simple compile tests
5907lt_simple_compile_test_code="int some_variable = 0;\n"
5908
5909# Code to be used in simple link tests
5910lt_simple_link_test_code='int main(){return(0);}\n'
5911
5912
5913# If no C compiler was specified, use CC.
5914LTCC=${LTCC-"$CC"}
5915
5916# Allow CC to be a program name with arguments.
5917compiler=$CC
5918
5919
brynerd5e66382006-09-08 02:35:53 +00005920#
5921# Check for any special shared library compilation flags.
5922#
5923lt_prog_cc_shlib=
5924if test "$GCC" = no; then
5925 case $host_os in
5926 sco3.2v5*)
5927 lt_prog_cc_shlib='-belf'
5928 ;;
5929 esac
5930fi
5931if test -n "$lt_prog_cc_shlib"; then
5932 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5933echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5934 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5935 else
5936 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5937echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5938 lt_cv_prog_cc_can_build_shared=no
5939 fi
5940fi
brynercb91a2f2006-08-25 21:14:45 +00005941
brynerd5e66382006-09-08 02:35:53 +00005942
5943#
5944# Check to make sure the static flag actually works.
5945#
5946echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5947echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5948if test "${lt_prog_compiler_static_works+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5950else
5951 lt_prog_compiler_static_works=no
5952 save_LDFLAGS="$LDFLAGS"
5953 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5954 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5955 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5956 # The compiler can only warn and ignore the option if not recognized
5957 # So say no if there are warnings
5958 if test -s conftest.err; then
5959 # Append any errors to the config.log.
5960 cat conftest.err 1>&5
5961 else
5962 lt_prog_compiler_static_works=yes
5963 fi
5964 fi
5965 $rm conftest*
5966 LDFLAGS="$save_LDFLAGS"
5967
5968fi
5969echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5970echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5971
5972if test x"$lt_prog_compiler_static_works" = xyes; then
5973 :
5974else
5975 lt_prog_compiler_static=
5976fi
5977
brynercb91a2f2006-08-25 21:14:45 +00005978
5979
5980
5981lt_prog_compiler_no_builtin_flag=
5982
5983if test "$GCC" = yes; then
5984 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5985
5986
5987echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5988echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5989if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5991else
5992 lt_cv_prog_compiler_rtti_exceptions=no
5993 ac_outfile=conftest.$ac_objext
5994 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5995 lt_compiler_flag="-fno-rtti -fno-exceptions"
5996 # Insert the option either (1) after the last *FLAGS variable, or
5997 # (2) before a word containing "conftest.", or (3) at the end.
5998 # Note that $ac_compile itself does not contain backslashes and begins
5999 # with a dollar sign (not a hyphen), so the echo should work correctly.
6000 # The option is referenced via a variable to avoid confusing sed.
6001 lt_compile=`echo "$ac_compile" | $SED \
brynerd5e66382006-09-08 02:35:53 +00006002 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00006003 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6004 -e 's:$: $lt_compiler_flag:'`
brynerd5e66382006-09-08 02:35:53 +00006005 (eval echo "\"\$as_me:6005: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00006006 (eval "$lt_compile" 2>conftest.err)
6007 ac_status=$?
6008 cat conftest.err >&5
brynerd5e66382006-09-08 02:35:53 +00006009 echo "$as_me:6009: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00006010 if (exit $ac_status) && test -s "$ac_outfile"; then
6011 # The compiler can only warn and ignore the option if not recognized
brynerd5e66382006-09-08 02:35:53 +00006012 # So say no if there are warnings
6013 if test ! -s conftest.err; then
brynercb91a2f2006-08-25 21:14:45 +00006014 lt_cv_prog_compiler_rtti_exceptions=yes
6015 fi
6016 fi
6017 $rm conftest*
6018
6019fi
6020echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6021echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6022
6023if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6024 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6025else
6026 :
6027fi
6028
6029fi
6030
6031lt_prog_compiler_wl=
6032lt_prog_compiler_pic=
6033lt_prog_compiler_static=
6034
6035echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6036echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6037
6038 if test "$GCC" = yes; then
6039 lt_prog_compiler_wl='-Wl,'
6040 lt_prog_compiler_static='-static'
6041
6042 case $host_os in
6043 aix*)
6044 # All AIX code is PIC.
6045 if test "$host_cpu" = ia64; then
6046 # AIX 5 now supports IA64 processor
6047 lt_prog_compiler_static='-Bstatic'
6048 fi
6049 ;;
6050
6051 amigaos*)
6052 # FIXME: we need at least 68020 code to build shared libraries, but
6053 # adding the `-m68020' flag to GCC prevents building anything better,
6054 # like `-m68040'.
6055 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6056 ;;
6057
6058 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6059 # PIC is the default for these OSes.
6060 ;;
6061
6062 mingw* | pw32* | os2*)
6063 # This hack is so that the source file can tell whether it is being
6064 # built for inclusion in a dll (and should export symbols for example).
6065 lt_prog_compiler_pic='-DDLL_EXPORT'
6066 ;;
6067
6068 darwin* | rhapsody*)
6069 # PIC is the default on this platform
6070 # Common symbols not allowed in MH_DYLIB files
6071 lt_prog_compiler_pic='-fno-common'
6072 ;;
6073
6074 msdosdjgpp*)
6075 # Just because we use GCC doesn't mean we suddenly get shared libraries
6076 # on systems that don't support them.
6077 lt_prog_compiler_can_build_shared=no
6078 enable_shared=no
6079 ;;
6080
6081 sysv4*MP*)
6082 if test -d /usr/nec; then
6083 lt_prog_compiler_pic=-Kconform_pic
6084 fi
6085 ;;
6086
6087 hpux*)
6088 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6089 # not for PA HP-UX.
brynerd5e66382006-09-08 02:35:53 +00006090 case "$host_cpu" in
brynercb91a2f2006-08-25 21:14:45 +00006091 hppa*64*|ia64*)
6092 # +Z the default
6093 ;;
6094 *)
6095 lt_prog_compiler_pic='-fPIC'
6096 ;;
6097 esac
6098 ;;
6099
6100 *)
6101 lt_prog_compiler_pic='-fPIC'
6102 ;;
6103 esac
6104 else
6105 # PORTME Check for flag to pass linker flags through the system compiler.
6106 case $host_os in
6107 aix*)
6108 lt_prog_compiler_wl='-Wl,'
6109 if test "$host_cpu" = ia64; then
6110 # AIX 5 now supports IA64 processor
6111 lt_prog_compiler_static='-Bstatic'
6112 else
6113 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6114 fi
6115 ;;
6116
6117 mingw* | pw32* | os2*)
6118 # This hack is so that the source file can tell whether it is being
6119 # built for inclusion in a dll (and should export symbols for example).
6120 lt_prog_compiler_pic='-DDLL_EXPORT'
6121 ;;
6122
6123 hpux9* | hpux10* | hpux11*)
6124 lt_prog_compiler_wl='-Wl,'
6125 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6126 # not for PA HP-UX.
brynerd5e66382006-09-08 02:35:53 +00006127 case "$host_cpu" in
brynercb91a2f2006-08-25 21:14:45 +00006128 hppa*64*|ia64*)
6129 # +Z the default
6130 ;;
6131 *)
6132 lt_prog_compiler_pic='+Z'
6133 ;;
6134 esac
6135 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6136 lt_prog_compiler_static='${wl}-a ${wl}archive'
6137 ;;
6138
6139 irix5* | irix6* | nonstopux*)
6140 lt_prog_compiler_wl='-Wl,'
6141 # PIC (with -KPIC) is the default.
6142 lt_prog_compiler_static='-non_shared'
6143 ;;
6144
6145 newsos6)
6146 lt_prog_compiler_pic='-KPIC'
6147 lt_prog_compiler_static='-Bstatic'
6148 ;;
6149
6150 linux*)
brynerd5e66382006-09-08 02:35:53 +00006151 case $CC in
brynercb91a2f2006-08-25 21:14:45 +00006152 icc* | ecc*)
6153 lt_prog_compiler_wl='-Wl,'
6154 lt_prog_compiler_pic='-KPIC'
6155 lt_prog_compiler_static='-static'
6156 ;;
6157 ccc*)
6158 lt_prog_compiler_wl='-Wl,'
6159 # All Alpha code is PIC.
6160 lt_prog_compiler_static='-non_shared'
6161 ;;
6162 esac
6163 ;;
6164
6165 osf3* | osf4* | osf5*)
6166 lt_prog_compiler_wl='-Wl,'
6167 # All OSF/1 code is PIC.
6168 lt_prog_compiler_static='-non_shared'
6169 ;;
6170
brynerd5e66382006-09-08 02:35:53 +00006171 sco3.2v5*)
6172 lt_prog_compiler_pic='-Kpic'
6173 lt_prog_compiler_static='-dn'
6174 ;;
6175
brynercb91a2f2006-08-25 21:14:45 +00006176 solaris*)
brynerd5e66382006-09-08 02:35:53 +00006177 lt_prog_compiler_wl='-Wl,'
brynercb91a2f2006-08-25 21:14:45 +00006178 lt_prog_compiler_pic='-KPIC'
6179 lt_prog_compiler_static='-Bstatic'
6180 ;;
6181
6182 sunos4*)
6183 lt_prog_compiler_wl='-Qoption ld '
6184 lt_prog_compiler_pic='-PIC'
6185 lt_prog_compiler_static='-Bstatic'
6186 ;;
6187
brynerd5e66382006-09-08 02:35:53 +00006188 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
brynercb91a2f2006-08-25 21:14:45 +00006189 lt_prog_compiler_wl='-Wl,'
6190 lt_prog_compiler_pic='-KPIC'
6191 lt_prog_compiler_static='-Bstatic'
6192 ;;
6193
6194 sysv4*MP*)
6195 if test -d /usr/nec ;then
6196 lt_prog_compiler_pic='-Kconform_pic'
6197 lt_prog_compiler_static='-Bstatic'
6198 fi
6199 ;;
6200
6201 uts4*)
6202 lt_prog_compiler_pic='-pic'
6203 lt_prog_compiler_static='-Bstatic'
6204 ;;
6205
6206 *)
6207 lt_prog_compiler_can_build_shared=no
6208 ;;
6209 esac
6210 fi
6211
6212echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6213echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6214
6215#
6216# Check to make sure the PIC flag actually works.
6217#
6218if test -n "$lt_prog_compiler_pic"; then
6219
6220echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6221echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6222if test "${lt_prog_compiler_pic_works+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6224else
6225 lt_prog_compiler_pic_works=no
6226 ac_outfile=conftest.$ac_objext
6227 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6228 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6229 # Insert the option either (1) after the last *FLAGS variable, or
6230 # (2) before a word containing "conftest.", or (3) at the end.
6231 # Note that $ac_compile itself does not contain backslashes and begins
6232 # with a dollar sign (not a hyphen), so the echo should work correctly.
6233 # The option is referenced via a variable to avoid confusing sed.
6234 lt_compile=`echo "$ac_compile" | $SED \
brynerd5e66382006-09-08 02:35:53 +00006235 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00006236 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6237 -e 's:$: $lt_compiler_flag:'`
brynerd5e66382006-09-08 02:35:53 +00006238 (eval echo "\"\$as_me:6238: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00006239 (eval "$lt_compile" 2>conftest.err)
6240 ac_status=$?
6241 cat conftest.err >&5
brynerd5e66382006-09-08 02:35:53 +00006242 echo "$as_me:6242: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00006243 if (exit $ac_status) && test -s "$ac_outfile"; then
6244 # The compiler can only warn and ignore the option if not recognized
brynerd5e66382006-09-08 02:35:53 +00006245 # So say no if there are warnings
6246 if test ! -s conftest.err; then
brynercb91a2f2006-08-25 21:14:45 +00006247 lt_prog_compiler_pic_works=yes
6248 fi
6249 fi
6250 $rm conftest*
6251
6252fi
6253echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6254echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6255
6256if test x"$lt_prog_compiler_pic_works" = xyes; then
6257 case $lt_prog_compiler_pic in
6258 "" | " "*) ;;
6259 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6260 esac
6261else
6262 lt_prog_compiler_pic=
6263 lt_prog_compiler_can_build_shared=no
6264fi
6265
6266fi
brynerd5e66382006-09-08 02:35:53 +00006267case "$host_os" in
brynercb91a2f2006-08-25 21:14:45 +00006268 # For platforms which do not support PIC, -DPIC is meaningless:
6269 *djgpp*)
6270 lt_prog_compiler_pic=
6271 ;;
6272 *)
6273 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6274 ;;
6275esac
6276
6277echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6278echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6279if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6281else
6282 lt_cv_prog_compiler_c_o=no
6283 $rm -r conftest 2>/dev/null
6284 mkdir conftest
6285 cd conftest
6286 mkdir out
6287 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6288
6289 lt_compiler_flag="-o out/conftest2.$ac_objext"
6290 # Insert the option either (1) after the last *FLAGS variable, or
6291 # (2) before a word containing "conftest.", or (3) at the end.
6292 # Note that $ac_compile itself does not contain backslashes and begins
6293 # with a dollar sign (not a hyphen), so the echo should work correctly.
6294 lt_compile=`echo "$ac_compile" | $SED \
brynerd5e66382006-09-08 02:35:53 +00006295 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00006296 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6297 -e 's:$: $lt_compiler_flag:'`
brynerd5e66382006-09-08 02:35:53 +00006298 (eval echo "\"\$as_me:6298: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00006299 (eval "$lt_compile" 2>out/conftest.err)
6300 ac_status=$?
6301 cat out/conftest.err >&5
brynerd5e66382006-09-08 02:35:53 +00006302 echo "$as_me:6302: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00006303 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6304 then
6305 # The compiler can only warn and ignore the option if not recognized
6306 # So say no if there are warnings
brynerd5e66382006-09-08 02:35:53 +00006307 if test ! -s out/conftest.err; then
brynercb91a2f2006-08-25 21:14:45 +00006308 lt_cv_prog_compiler_c_o=yes
6309 fi
6310 fi
brynerd5e66382006-09-08 02:35:53 +00006311 chmod u+w .
brynercb91a2f2006-08-25 21:14:45 +00006312 $rm conftest*
6313 # SGI C++ compiler will create directory out/ii_files/ for
6314 # template instantiation
6315 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6316 $rm out/* && rmdir out
6317 cd ..
6318 rmdir conftest
6319 $rm conftest*
6320
6321fi
6322echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6323echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6324
6325
6326hard_links="nottested"
6327if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6328 # do not overwrite the value of need_locks provided by the user
6329 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6330echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6331 hard_links=yes
6332 $rm conftest*
6333 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6334 touch conftest.a
6335 ln conftest.a conftest.b 2>&5 || hard_links=no
6336 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6337 echo "$as_me:$LINENO: result: $hard_links" >&5
6338echo "${ECHO_T}$hard_links" >&6
6339 if test "$hard_links" = no; then
6340 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6341echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6342 need_locks=warn
6343 fi
6344else
6345 need_locks=no
6346fi
6347
6348echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6349echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6350
6351 runpath_var=
6352 allow_undefined_flag=
6353 enable_shared_with_static_runtimes=no
6354 archive_cmds=
6355 archive_expsym_cmds=
6356 old_archive_From_new_cmds=
6357 old_archive_from_expsyms_cmds=
6358 export_dynamic_flag_spec=
6359 whole_archive_flag_spec=
6360 thread_safe_flag_spec=
6361 hardcode_libdir_flag_spec=
6362 hardcode_libdir_flag_spec_ld=
6363 hardcode_libdir_separator=
6364 hardcode_direct=no
6365 hardcode_minus_L=no
6366 hardcode_shlibpath_var=unsupported
6367 link_all_deplibs=unknown
6368 hardcode_automatic=no
6369 module_cmds=
6370 module_expsym_cmds=
6371 always_export_symbols=no
6372 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6373 # include_expsyms should be a list of space-separated symbols to be *always*
6374 # included in the symbol list
6375 include_expsyms=
6376 # exclude_expsyms can be an extended regexp of symbols to exclude
6377 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6378 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6379 # as well as any symbol that contains `d'.
6380 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6381 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6382 # platforms (ab)use it in PIC code, but their linkers get confused if
6383 # the symbol is explicitly referenced. Since portable code cannot
6384 # rely on this symbol name, it's probably fine to never include it in
6385 # preloaded symbol tables.
6386 extract_expsyms_cmds=
6387
6388 case $host_os in
6389 cygwin* | mingw* | pw32*)
6390 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6391 # When not using gcc, we currently assume that we are using
6392 # Microsoft Visual C++.
6393 if test "$GCC" != yes; then
6394 with_gnu_ld=no
6395 fi
6396 ;;
6397 openbsd*)
6398 with_gnu_ld=no
6399 ;;
6400 esac
6401
6402 ld_shlibs=yes
6403 if test "$with_gnu_ld" = yes; then
6404 # If archive_cmds runs LD, not CC, wlarc should be empty
6405 wlarc='${wl}'
6406
6407 # See if GNU ld supports shared libraries.
6408 case $host_os in
6409 aix3* | aix4* | aix5*)
6410 # On AIX/PPC, the GNU linker is very broken
6411 if test "$host_cpu" != ia64; then
6412 ld_shlibs=no
6413 cat <<EOF 1>&2
6414
6415*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6416*** to be unable to reliably create shared libraries on AIX.
6417*** Therefore, libtool is disabling shared libraries support. If you
6418*** really care for shared libraries, you may want to modify your PATH
6419*** so that a non-GNU linker is found, and then restart.
6420
6421EOF
6422 fi
6423 ;;
6424
6425 amigaos*)
6426 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)'
6427 hardcode_libdir_flag_spec='-L$libdir'
6428 hardcode_minus_L=yes
6429
6430 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6431 # that the semantics of dynamic libraries on AmigaOS, at least up
6432 # to version 4, is to share data among multiple programs linked
6433 # with the same dynamic library. Since this doesn't match the
6434 # behavior of shared libraries on other platforms, we can't use
6435 # them.
6436 ld_shlibs=no
6437 ;;
6438
6439 beos*)
6440 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6441 allow_undefined_flag=unsupported
6442 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6443 # support --undefined. This deserves some investigation. FIXME
6444 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6445 else
6446 ld_shlibs=no
6447 fi
6448 ;;
6449
6450 cygwin* | mingw* | pw32*)
6451 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6452 # as there is no search path for DLLs.
6453 hardcode_libdir_flag_spec='-L$libdir'
6454 allow_undefined_flag=unsupported
6455 always_export_symbols=no
6456 enable_shared_with_static_runtimes=yes
brynerd5e66382006-09-08 02:35:53 +00006457 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
brynercb91a2f2006-08-25 21:14:45 +00006458
6459 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
brynerd5e66382006-09-08 02:35:53 +00006460 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
brynercb91a2f2006-08-25 21:14:45 +00006461 # If the export-symbols file already is a .def file (1st line
6462 # is EXPORTS), use it as is; otherwise, prepend...
6463 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6464 cp $export_symbols $output_objdir/$soname.def;
6465 else
6466 echo EXPORTS > $output_objdir/$soname.def;
6467 cat $export_symbols >> $output_objdir/$soname.def;
6468 fi~
brynerd5e66382006-09-08 02:35:53 +00006469 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
brynercb91a2f2006-08-25 21:14:45 +00006470 else
6471 ld_shlibs=no
6472 fi
6473 ;;
6474
brynerd5e66382006-09-08 02:35:53 +00006475 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
brynercb91a2f2006-08-25 21:14:45 +00006476 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6477 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6478 wlarc=
6479 else
6480 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6481 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6482 fi
6483 ;;
6484
brynerd5e66382006-09-08 02:35:53 +00006485 solaris* | sysv5*)
brynercb91a2f2006-08-25 21:14:45 +00006486 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6487 ld_shlibs=no
6488 cat <<EOF 1>&2
6489
6490*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6491*** create shared libraries on Solaris systems. Therefore, libtool
6492*** is disabling shared libraries support. We urge you to upgrade GNU
6493*** binutils to release 2.9.1 or newer. Another option is to modify
6494*** your PATH or compiler configuration so that the native linker is
6495*** used, and then restart.
6496
6497EOF
6498 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6499 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6500 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6501 else
6502 ld_shlibs=no
6503 fi
6504 ;;
6505
6506 sunos4*)
6507 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6508 wlarc=
6509 hardcode_direct=yes
6510 hardcode_shlibpath_var=no
6511 ;;
6512
brynerd5e66382006-09-08 02:35:53 +00006513 linux*)
6514 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6515 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6516 archive_cmds="$tmp_archive_cmds"
6517 supports_anon_versioning=no
6518 case `$LD -v 2>/dev/null` in
6519 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6520 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6521 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6522 *\ 2.11.*) ;; # other 2.11 versions
6523 *) supports_anon_versioning=yes ;;
6524 esac
6525 if test $supports_anon_versioning = yes; then
6526 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6527cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6528$echo "local: *; };" >> $output_objdir/$libname.ver~
6529 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6530 else
6531 archive_expsym_cmds="$tmp_archive_cmds"
6532 fi
6533 link_all_deplibs=no
6534 else
6535 ld_shlibs=no
6536 fi
6537 ;;
6538
brynercb91a2f2006-08-25 21:14:45 +00006539 *)
6540 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6541 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6542 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6543 else
6544 ld_shlibs=no
6545 fi
6546 ;;
6547 esac
6548
brynerd5e66382006-09-08 02:35:53 +00006549 if test "$ld_shlibs" = yes; then
6550 runpath_var=LD_RUN_PATH
6551 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6552 export_dynamic_flag_spec='${wl}--export-dynamic'
6553 # ancient GNU ld didn't support --whole-archive et. al.
6554 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6555 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6556 else
6557 whole_archive_flag_spec=
6558 fi
brynercb91a2f2006-08-25 21:14:45 +00006559 fi
6560 else
6561 # PORTME fill in a description of your system's linker (not GNU ld)
6562 case $host_os in
6563 aix3*)
6564 allow_undefined_flag=unsupported
6565 always_export_symbols=yes
6566 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'
6567 # Note: this linker hardcodes the directories in LIBPATH if there
6568 # are no directories specified by -L.
6569 hardcode_minus_L=yes
brynerd5e66382006-09-08 02:35:53 +00006570 if test "$GCC" = yes && test -z "$link_static_flag"; then
brynercb91a2f2006-08-25 21:14:45 +00006571 # Neither direct hardcoding nor static linking is supported with a
6572 # broken collect2.
6573 hardcode_direct=unsupported
6574 fi
6575 ;;
6576
6577 aix4* | aix5*)
6578 if test "$host_cpu" = ia64; then
6579 # On IA64, the linker does run time linking by default, so we don't
6580 # have to do anything special.
6581 aix_use_runtimelinking=no
6582 exp_sym_flag='-Bexport'
6583 no_entry_flag=""
6584 else
6585 # If we're using GNU nm, then we don't want the "-C" option.
6586 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6587 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6588 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'
6589 else
6590 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'
6591 fi
6592 aix_use_runtimelinking=no
6593
6594 # Test if we are trying to use run time linking or normal
6595 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6596 # need to do runtime linking.
6597 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6598 for ld_flag in $LDFLAGS; do
6599 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6600 aix_use_runtimelinking=yes
6601 break
6602 fi
6603 done
6604 esac
6605
6606 exp_sym_flag='-bexport'
6607 no_entry_flag='-bnoentry'
6608 fi
6609
6610 # When large executables or shared objects are built, AIX ld can
6611 # have problems creating the table of contents. If linking a library
6612 # or program results in "error TOC overflow" add -mminimal-toc to
6613 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6614 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6615
6616 archive_cmds=''
6617 hardcode_direct=yes
6618 hardcode_libdir_separator=':'
6619 link_all_deplibs=yes
6620
6621 if test "$GCC" = yes; then
brynerd5e66382006-09-08 02:35:53 +00006622 case $host_os in aix4.012|aix4.012.*)
brynercb91a2f2006-08-25 21:14:45 +00006623 # We only want to do this on AIX 4.2 and lower, the check
6624 # below for broken collect2 doesn't work under 4.3+
6625 collect2name=`${CC} -print-prog-name=collect2`
6626 if test -f "$collect2name" && \
6627 strings "$collect2name" | grep resolve_lib_name >/dev/null
6628 then
6629 # We have reworked collect2
6630 hardcode_direct=yes
6631 else
6632 # We have old collect2
6633 hardcode_direct=unsupported
6634 # It fails to find uninstalled libraries when the uninstalled
6635 # path is not listed in the libpath. Setting hardcode_minus_L
6636 # to unsupported forces relinking
6637 hardcode_minus_L=yes
6638 hardcode_libdir_flag_spec='-L$libdir'
6639 hardcode_libdir_separator=
6640 fi
6641 esac
6642 shared_flag='-shared'
6643 else
6644 # not using gcc
6645 if test "$host_cpu" = ia64; then
6646 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6647 # chokes on -Wl,-G. The following line is correct:
6648 shared_flag='-G'
6649 else
brynerd5e66382006-09-08 02:35:53 +00006650 if test "$aix_use_runtimelinking" = yes; then
brynercb91a2f2006-08-25 21:14:45 +00006651 shared_flag='${wl}-G'
6652 else
6653 shared_flag='${wl}-bM:SRE'
brynerd5e66382006-09-08 02:35:53 +00006654 fi
brynercb91a2f2006-08-25 21:14:45 +00006655 fi
6656 fi
6657
6658 # It seems that -bexpall does not export symbols beginning with
6659 # underscore (_), so it is better to generate a list of symbols to export.
6660 always_export_symbols=yes
6661 if test "$aix_use_runtimelinking" = yes; then
6662 # Warning - without using the other runtime loading flags (-brtl),
6663 # -berok will link without error, but may produce a broken library.
6664 allow_undefined_flag='-berok'
6665 # Determine the default libpath from the value encoded in an empty executable.
6666 cat >conftest.$ac_ext <<_ACEOF
6667/* confdefs.h. */
6668_ACEOF
6669cat confdefs.h >>conftest.$ac_ext
6670cat >>conftest.$ac_ext <<_ACEOF
6671/* end confdefs.h. */
6672
6673int
6674main ()
6675{
6676
6677 ;
6678 return 0;
6679}
6680_ACEOF
6681rm -f conftest.$ac_objext conftest$ac_exeext
6682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6683 (eval $ac_link) 2>conftest.er1
6684 ac_status=$?
6685 grep -v '^ *+' conftest.er1 >conftest.err
6686 rm -f conftest.er1
6687 cat conftest.err >&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); } &&
brynerd5e66382006-09-08 02:35:53 +00006690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00006691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6692 (eval $ac_try) 2>&5
6693 ac_status=$?
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); }; } &&
6696 { ac_try='test -s conftest$ac_exeext'
6697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6698 (eval $ac_try) 2>&5
6699 ac_status=$?
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); }; }; then
6702
6703aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6704}'`
6705# Check for a 64-bit object if we didn't find anything.
6706if 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; }
6707}'`; fi
6708else
6709 echo "$as_me: failed program was:" >&5
6710sed 's/^/| /' conftest.$ac_ext >&5
6711
6712fi
6713rm -f conftest.err conftest.$ac_objext \
6714 conftest$ac_exeext conftest.$ac_ext
6715if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6716
6717 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
brynerd5e66382006-09-08 02:35:53 +00006718 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"
brynercb91a2f2006-08-25 21:14:45 +00006719 else
6720 if test "$host_cpu" = ia64; then
6721 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6722 allow_undefined_flag="-z nodefs"
brynerd5e66382006-09-08 02:35:53 +00006723 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"
brynercb91a2f2006-08-25 21:14:45 +00006724 else
6725 # Determine the default libpath from the value encoded in an empty executable.
6726 cat >conftest.$ac_ext <<_ACEOF
6727/* confdefs.h. */
6728_ACEOF
6729cat confdefs.h >>conftest.$ac_ext
6730cat >>conftest.$ac_ext <<_ACEOF
6731/* end confdefs.h. */
6732
6733int
6734main ()
6735{
6736
6737 ;
6738 return 0;
6739}
6740_ACEOF
6741rm -f conftest.$ac_objext conftest$ac_exeext
6742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6743 (eval $ac_link) 2>conftest.er1
6744 ac_status=$?
6745 grep -v '^ *+' conftest.er1 >conftest.err
6746 rm -f conftest.er1
6747 cat conftest.err >&5
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); } &&
brynerd5e66382006-09-08 02:35:53 +00006750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00006751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6752 (eval $ac_try) 2>&5
6753 ac_status=$?
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); }; } &&
6756 { ac_try='test -s conftest$ac_exeext'
6757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6758 (eval $ac_try) 2>&5
6759 ac_status=$?
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); }; }; then
6762
6763aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6764}'`
6765# Check for a 64-bit object if we didn't find anything.
6766if 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; }
6767}'`; fi
6768else
6769 echo "$as_me: failed program was:" >&5
6770sed 's/^/| /' conftest.$ac_ext >&5
6771
6772fi
6773rm -f conftest.err conftest.$ac_objext \
6774 conftest$ac_exeext conftest.$ac_ext
6775if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6776
6777 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6778 # Warning - without using the other run time loading flags,
6779 # -berok will link without error, but may produce a broken library.
6780 no_undefined_flag=' ${wl}-bernotok'
6781 allow_undefined_flag=' ${wl}-berok'
brynerd5e66382006-09-08 02:35:53 +00006782 # -bexpall does not export symbols beginning with underscore (_)
6783 always_export_symbols=yes
brynercb91a2f2006-08-25 21:14:45 +00006784 # Exported symbols can be pulled into shared objects from archives
brynerd5e66382006-09-08 02:35:53 +00006785 whole_archive_flag_spec=' '
brynercb91a2f2006-08-25 21:14:45 +00006786 archive_cmds_need_lc=yes
brynerd5e66382006-09-08 02:35:53 +00006787 # This is similar to how AIX traditionally builds it's shared libraries.
6788 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'
brynercb91a2f2006-08-25 21:14:45 +00006789 fi
6790 fi
6791 ;;
6792
6793 amigaos*)
6794 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)'
6795 hardcode_libdir_flag_spec='-L$libdir'
6796 hardcode_minus_L=yes
6797 # see comment about different semantics on the GNU ld section
6798 ld_shlibs=no
6799 ;;
6800
brynerd5e66382006-09-08 02:35:53 +00006801 bsdi4*)
brynercb91a2f2006-08-25 21:14:45 +00006802 export_dynamic_flag_spec=-rdynamic
6803 ;;
6804
6805 cygwin* | mingw* | pw32*)
6806 # When not using gcc, we currently assume that we are using
6807 # Microsoft Visual C++.
6808 # hardcode_libdir_flag_spec is actually meaningless, as there is
6809 # no search path for DLLs.
6810 hardcode_libdir_flag_spec=' '
6811 allow_undefined_flag=unsupported
6812 # Tell ltmain to make .lib files, not .a files.
6813 libext=lib
6814 # Tell ltmain to make .dll files, not .so files.
6815 shrext_cmds=".dll"
6816 # FIXME: Setting linknames here is a bad hack.
6817 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6818 # The linker will automatically build a .lib file if we build a DLL.
6819 old_archive_From_new_cmds='true'
6820 # FIXME: Should let the user specify the lib program.
6821 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6822 fix_srcfile_path='`cygpath -w "$srcfile"`'
6823 enable_shared_with_static_runtimes=yes
6824 ;;
6825
6826 darwin* | rhapsody*)
brynerd5e66382006-09-08 02:35:53 +00006827 if test "$GXX" = yes ; then
mmentovai3261e8b2006-09-06 02:56:44 +00006828 archive_cmds_need_lc=no
brynerd5e66382006-09-08 02:35:53 +00006829 case "$host_os" in
6830 rhapsody* | darwin1.[012])
6831 allow_undefined_flag='-undefined suppress'
6832 ;;
6833 *) # Darwin 1.3 on
6834 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6835 allow_undefined_flag='-flat_namespace -undefined suppress'
6836 else
6837 case ${MACOSX_DEPLOYMENT_TARGET} in
6838 10.[012])
6839 allow_undefined_flag='-flat_namespace -undefined suppress'
6840 ;;
6841 10.*)
6842 allow_undefined_flag='-undefined dynamic_lookup'
6843 ;;
6844 esac
6845 fi
6846 ;;
6847 esac
6848 lt_int_apple_cc_single_mod=no
6849 output_verbose_link_cmd='echo'
6850 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6851 lt_int_apple_cc_single_mod=yes
6852 fi
6853 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6854 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6855 else
6856 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'
6857 fi
6858 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6859 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6860 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6861 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}'
6862 else
6863 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}'
6864 fi
6865 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}'
brynercb91a2f2006-08-25 21:14:45 +00006866 hardcode_direct=no
6867 hardcode_automatic=yes
6868 hardcode_shlibpath_var=unsupported
brynerd5e66382006-09-08 02:35:53 +00006869 whole_archive_flag_spec='-all_load $convenience'
brynercb91a2f2006-08-25 21:14:45 +00006870 link_all_deplibs=yes
6871 else
brynerd5e66382006-09-08 02:35:53 +00006872 ld_shlibs=no
brynercb91a2f2006-08-25 21:14:45 +00006873 fi
6874 ;;
6875
6876 dgux*)
6877 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6878 hardcode_libdir_flag_spec='-L$libdir'
6879 hardcode_shlibpath_var=no
6880 ;;
6881
6882 freebsd1*)
6883 ld_shlibs=no
6884 ;;
6885
6886 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6887 # support. Future versions do this automatically, but an explicit c++rt0.o
6888 # does not break anything, and helps significantly (at the cost of a little
6889 # extra space).
6890 freebsd2.2*)
6891 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6892 hardcode_libdir_flag_spec='-R$libdir'
6893 hardcode_direct=yes
6894 hardcode_shlibpath_var=no
6895 ;;
6896
6897 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6898 freebsd2*)
6899 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6900 hardcode_direct=yes
6901 hardcode_minus_L=yes
6902 hardcode_shlibpath_var=no
6903 ;;
6904
6905 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
brynerd5e66382006-09-08 02:35:53 +00006906 freebsd* | kfreebsd*-gnu)
brynercb91a2f2006-08-25 21:14:45 +00006907 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6908 hardcode_libdir_flag_spec='-R$libdir'
6909 hardcode_direct=yes
6910 hardcode_shlibpath_var=no
6911 ;;
6912
6913 hpux9*)
6914 if test "$GCC" = yes; then
6915 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'
6916 else
6917 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'
6918 fi
6919 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6920 hardcode_libdir_separator=:
6921 hardcode_direct=yes
6922
6923 # hardcode_minus_L: Not really in the search PATH,
6924 # but as the default location of the library.
6925 hardcode_minus_L=yes
6926 export_dynamic_flag_spec='${wl}-E'
6927 ;;
6928
brynerd5e66382006-09-08 02:35:53 +00006929 hpux10* | hpux11*)
brynercb91a2f2006-08-25 21:14:45 +00006930 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
brynerd5e66382006-09-08 02:35:53 +00006931 case "$host_cpu" in
6932 hppa*64*|ia64*)
brynercb91a2f2006-08-25 21:14:45 +00006933 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6934 ;;
6935 *)
6936 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6937 ;;
6938 esac
6939 else
brynerd5e66382006-09-08 02:35:53 +00006940 case "$host_cpu" in
6941 hppa*64*|ia64*)
6942 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
brynercb91a2f2006-08-25 21:14:45 +00006943 ;;
6944 *)
brynerd5e66382006-09-08 02:35:53 +00006945 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
brynercb91a2f2006-08-25 21:14:45 +00006946 ;;
6947 esac
6948 fi
6949 if test "$with_gnu_ld" = no; then
brynerd5e66382006-09-08 02:35:53 +00006950 case "$host_cpu" in
6951 hppa*64*)
6952 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
mmentovai3261e8b2006-09-06 02:56:44 +00006953 hardcode_libdir_flag_spec_ld='+b $libdir'
brynerd5e66382006-09-08 02:35:53 +00006954 hardcode_libdir_separator=:
mmentovai3261e8b2006-09-06 02:56:44 +00006955 hardcode_direct=no
6956 hardcode_shlibpath_var=no
bryner07f8ef52006-09-05 19:42:57 +00006957 ;;
brynerd5e66382006-09-08 02:35:53 +00006958 ia64*)
6959 hardcode_libdir_flag_spec='-L$libdir'
6960 hardcode_direct=no
6961 hardcode_shlibpath_var=no
6962
6963 # hardcode_minus_L: Not really in the search PATH,
6964 # but as the default location of the library.
6965 hardcode_minus_L=yes
6966 ;;
brynercb91a2f2006-08-25 21:14:45 +00006967 *)
brynerd5e66382006-09-08 02:35:53 +00006968 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6969 hardcode_libdir_separator=:
brynercb91a2f2006-08-25 21:14:45 +00006970 hardcode_direct=yes
6971 export_dynamic_flag_spec='${wl}-E'
6972
6973 # hardcode_minus_L: Not really in the search PATH,
6974 # but as the default location of the library.
6975 hardcode_minus_L=yes
6976 ;;
6977 esac
6978 fi
6979 ;;
6980
6981 irix5* | irix6* | nonstopux*)
6982 if test "$GCC" = yes; then
6983 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'
6984 else
6985 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'
6986 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6987 fi
6988 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6989 hardcode_libdir_separator=:
6990 link_all_deplibs=yes
6991 ;;
6992
brynerd5e66382006-09-08 02:35:53 +00006993 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
brynercb91a2f2006-08-25 21:14:45 +00006994 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6995 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6996 else
6997 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6998 fi
6999 hardcode_libdir_flag_spec='-R$libdir'
7000 hardcode_direct=yes
7001 hardcode_shlibpath_var=no
7002 ;;
7003
7004 newsos6)
7005 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7006 hardcode_direct=yes
7007 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7008 hardcode_libdir_separator=:
7009 hardcode_shlibpath_var=no
7010 ;;
7011
7012 openbsd*)
7013 hardcode_direct=yes
7014 hardcode_shlibpath_var=no
7015 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7016 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7017 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7018 export_dynamic_flag_spec='${wl}-E'
7019 else
7020 case $host_os in
7021 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7022 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7023 hardcode_libdir_flag_spec='-R$libdir'
7024 ;;
7025 *)
7026 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7027 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7028 ;;
7029 esac
7030 fi
7031 ;;
7032
7033 os2*)
7034 hardcode_libdir_flag_spec='-L$libdir'
7035 hardcode_minus_L=yes
7036 allow_undefined_flag=unsupported
7037 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'
7038 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7039 ;;
7040
7041 osf3*)
7042 if test "$GCC" = yes; then
7043 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7044 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'
7045 else
7046 allow_undefined_flag=' -expect_unresolved \*'
7047 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'
7048 fi
7049 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7050 hardcode_libdir_separator=:
7051 ;;
7052
7053 osf4* | osf5*) # as osf3* with the addition of -msym flag
7054 if test "$GCC" = yes; then
7055 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7056 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'
7057 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7058 else
7059 allow_undefined_flag=' -expect_unresolved \*'
7060 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'
7061 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
brynerd5e66382006-09-08 02:35:53 +00007062 $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'
brynercb91a2f2006-08-25 21:14:45 +00007063
7064 # Both c and cxx compiler support -rpath directly
7065 hardcode_libdir_flag_spec='-rpath $libdir'
7066 fi
7067 hardcode_libdir_separator=:
7068 ;;
7069
brynerd5e66382006-09-08 02:35:53 +00007070 sco3.2v5*)
7071 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7072 hardcode_shlibpath_var=no
7073 export_dynamic_flag_spec='${wl}-Bexport'
7074 runpath_var=LD_RUN_PATH
7075 hardcode_runpath_var=yes
7076 ;;
7077
brynercb91a2f2006-08-25 21:14:45 +00007078 solaris*)
7079 no_undefined_flag=' -z text'
7080 if test "$GCC" = yes; then
7081 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7082 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7083 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7084 else
7085 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7086 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7087 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7088 fi
7089 hardcode_libdir_flag_spec='-R$libdir'
7090 hardcode_shlibpath_var=no
7091 case $host_os in
7092 solaris2.[0-5] | solaris2.[0-5].*) ;;
brynerd5e66382006-09-08 02:35:53 +00007093 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7094 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
brynercb91a2f2006-08-25 21:14:45 +00007095 esac
7096 link_all_deplibs=yes
7097 ;;
7098
7099 sunos4*)
7100 if test "x$host_vendor" = xsequent; then
7101 # Use $CC to link under sequent, because it throws in some extra .o
7102 # files that make .init and .fini sections work.
7103 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7104 else
7105 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7106 fi
7107 hardcode_libdir_flag_spec='-L$libdir'
7108 hardcode_direct=yes
7109 hardcode_minus_L=yes
7110 hardcode_shlibpath_var=no
7111 ;;
7112
7113 sysv4)
7114 case $host_vendor in
7115 sni)
7116 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7117 hardcode_direct=yes # is this really true???
7118 ;;
7119 siemens)
7120 ## LD is ld it makes a PLAMLIB
7121 ## CC just makes a GrossModule.
7122 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7123 reload_cmds='$CC -r -o $output$reload_objs'
7124 hardcode_direct=no
7125 ;;
7126 motorola)
7127 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7128 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7129 ;;
7130 esac
7131 runpath_var='LD_RUN_PATH'
7132 hardcode_shlibpath_var=no
7133 ;;
7134
7135 sysv4.3*)
7136 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7137 hardcode_shlibpath_var=no
7138 export_dynamic_flag_spec='-Bexport'
7139 ;;
7140
7141 sysv4*MP*)
7142 if test -d /usr/nec; then
7143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7144 hardcode_shlibpath_var=no
7145 runpath_var=LD_RUN_PATH
7146 hardcode_runpath_var=yes
7147 ld_shlibs=yes
7148 fi
7149 ;;
7150
brynerd5e66382006-09-08 02:35:53 +00007151 sysv4.2uw2*)
7152 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7153 hardcode_direct=yes
7154 hardcode_minus_L=no
brynercb91a2f2006-08-25 21:14:45 +00007155 hardcode_shlibpath_var=no
brynerd5e66382006-09-08 02:35:53 +00007156 hardcode_runpath_var=yes
7157 runpath_var=LD_RUN_PATH
bryner07f8ef52006-09-05 19:42:57 +00007158 ;;
7159
brynerd5e66382006-09-08 02:35:53 +00007160 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7161 no_undefined_flag='${wl}-z ${wl}text'
mmentovai3261e8b2006-09-06 02:56:44 +00007162 if test "$GCC" = yes; then
brynerd5e66382006-09-08 02:35:53 +00007163 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +00007164 else
brynerd5e66382006-09-08 02:35:53 +00007165 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +00007166 fi
brynerd5e66382006-09-08 02:35:53 +00007167 runpath_var='LD_RUN_PATH'
7168 hardcode_shlibpath_var=no
7169 ;;
7170
7171 sysv5*)
7172 no_undefined_flag=' -z text'
7173 # $CC -shared without GNU ld will not create a library from C++
7174 # object files and a static libstdc++, better avoid it by now
7175 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7176 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7177 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7178 hardcode_libdir_flag_spec=
7179 hardcode_shlibpath_var=no
7180 runpath_var='LD_RUN_PATH'
brynercb91a2f2006-08-25 21:14:45 +00007181 ;;
7182
7183 uts4*)
7184 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7185 hardcode_libdir_flag_spec='-L$libdir'
7186 hardcode_shlibpath_var=no
7187 ;;
7188
7189 *)
7190 ld_shlibs=no
7191 ;;
7192 esac
7193 fi
7194
7195echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7196echo "${ECHO_T}$ld_shlibs" >&6
7197test "$ld_shlibs" = no && can_build_shared=no
7198
brynerd5e66382006-09-08 02:35:53 +00007199variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7200if test "$GCC" = yes; then
7201 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7202fi
7203
brynercb91a2f2006-08-25 21:14:45 +00007204#
7205# Do we need to explicitly link libc?
7206#
7207case "x$archive_cmds_need_lc" in
7208x|xyes)
7209 # Assume -lc should be added
7210 archive_cmds_need_lc=yes
7211
7212 if test "$enable_shared" = yes && test "$GCC" = yes; then
7213 case $archive_cmds in
7214 *'~'*)
7215 # FIXME: we may have to deal with multi-command sequences.
7216 ;;
7217 '$CC '*)
7218 # Test whether the compiler implicitly links with -lc since on some
7219 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7220 # to ld, don't add -lc before -lgcc.
7221 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7222echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7223 $rm conftest*
7224 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7225
7226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7227 (eval $ac_compile) 2>&5
7228 ac_status=$?
7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); } 2>conftest.err; then
7231 soname=conftest
7232 lib=conftest
7233 libobjs=conftest.$ac_objext
7234 deplibs=
7235 wl=$lt_prog_compiler_wl
7236 compiler_flags=-v
7237 linker_flags=-v
7238 verstring=
7239 output_objdir=.
7240 libname=conftest
7241 lt_save_allow_undefined_flag=$allow_undefined_flag
7242 allow_undefined_flag=
7243 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7244 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7245 ac_status=$?
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); }
7248 then
7249 archive_cmds_need_lc=no
7250 else
7251 archive_cmds_need_lc=yes
7252 fi
7253 allow_undefined_flag=$lt_save_allow_undefined_flag
7254 else
7255 cat conftest.err 1>&5
7256 fi
7257 $rm conftest*
7258 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7259echo "${ECHO_T}$archive_cmds_need_lc" >&6
7260 ;;
7261 esac
7262 fi
7263 ;;
7264esac
7265
7266echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7267echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7268library_names_spec=
7269libname_spec='lib$name'
7270soname_spec=
7271shrext_cmds=".so"
7272postinstall_cmds=
7273postuninstall_cmds=
7274finish_cmds=
7275finish_eval=
7276shlibpath_var=
7277shlibpath_overrides_runpath=unknown
7278version_type=none
7279dynamic_linker="$host_os ld.so"
7280sys_lib_dlsearch_path_spec="/lib /usr/lib"
7281if test "$GCC" = yes; then
7282 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7283 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7284 # if the path contains ";" then we assume it to be the separator
7285 # otherwise default to the standard path separator (i.e. ":") - it is
7286 # assumed that no part of a normal pathname contains ";" but that should
7287 # okay in the real world where ";" in dirpaths is itself problematic.
7288 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7289 else
7290 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7291 fi
7292else
7293 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7294fi
7295need_lib_prefix=unknown
7296hardcode_into_libs=no
7297
7298# when you set need_version to no, make sure it does not cause -set_version
7299# flags to be left without arguments
7300need_version=unknown
7301
7302case $host_os in
7303aix3*)
7304 version_type=linux
7305 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7306 shlibpath_var=LIBPATH
7307
7308 # AIX 3 has no versioning support, so we append a major version to the name.
7309 soname_spec='${libname}${release}${shared_ext}$major'
7310 ;;
7311
7312aix4* | aix5*)
7313 version_type=linux
7314 need_lib_prefix=no
7315 need_version=no
7316 hardcode_into_libs=yes
7317 if test "$host_cpu" = ia64; then
7318 # AIX 5 supports IA64
7319 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7320 shlibpath_var=LD_LIBRARY_PATH
7321 else
7322 # With GCC up to 2.95.x, collect2 would create an import file
7323 # for dependence libraries. The import file would start with
7324 # the line `#! .'. This would cause the generated library to
7325 # depend on `.', always an invalid library. This was fixed in
7326 # development snapshots of GCC prior to 3.0.
7327 case $host_os in
7328 aix4 | aix4.[01] | aix4.[01].*)
7329 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7330 echo ' yes '
7331 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7332 :
7333 else
7334 can_build_shared=no
7335 fi
7336 ;;
7337 esac
7338 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7339 # soname into executable. Probably we can add versioning support to
7340 # collect2, so additional links can be useful in future.
7341 if test "$aix_use_runtimelinking" = yes; then
7342 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7343 # instead of lib<name>.a to let people know that these are not
7344 # typical AIX shared libraries.
7345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7346 else
7347 # We preserve .a as extension for shared libraries through AIX4.2
7348 # and later when we are not doing run time linking.
7349 library_names_spec='${libname}${release}.a $libname.a'
7350 soname_spec='${libname}${release}${shared_ext}$major'
7351 fi
7352 shlibpath_var=LIBPATH
7353 fi
7354 ;;
7355
7356amigaos*)
7357 library_names_spec='$libname.ixlibrary $libname.a'
7358 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7359 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'
7360 ;;
7361
7362beos*)
7363 library_names_spec='${libname}${shared_ext}'
7364 dynamic_linker="$host_os ld.so"
7365 shlibpath_var=LIBRARY_PATH
7366 ;;
7367
brynerd5e66382006-09-08 02:35:53 +00007368bsdi4*)
brynercb91a2f2006-08-25 21:14:45 +00007369 version_type=linux
7370 need_version=no
7371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7372 soname_spec='${libname}${release}${shared_ext}$major'
7373 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7374 shlibpath_var=LD_LIBRARY_PATH
7375 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7376 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7377 # the default ld.so.conf also contains /usr/contrib/lib and
7378 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7379 # libtool to hard-code these into programs
7380 ;;
7381
7382cygwin* | mingw* | pw32*)
7383 version_type=windows
7384 shrext_cmds=".dll"
7385 need_version=no
7386 need_lib_prefix=no
7387
7388 case $GCC,$host_os in
7389 yes,cygwin* | yes,mingw* | yes,pw32*)
7390 library_names_spec='$libname.dll.a'
7391 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7392 postinstall_cmds='base_file=`basename \${file}`~
7393 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7394 dldir=$destdir/`dirname \$dlpath`~
7395 test -d \$dldir || mkdir -p \$dldir~
brynerd5e66382006-09-08 02:35:53 +00007396 $install_prog $dir/$dlname \$dldir/$dlname'
brynercb91a2f2006-08-25 21:14:45 +00007397 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7398 dlpath=$dir/\$dldll~
7399 $rm \$dlpath'
7400 shlibpath_overrides_runpath=yes
7401
7402 case $host_os in
7403 cygwin*)
7404 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7405 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7406 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7407 ;;
7408 mingw*)
7409 # MinGW DLLs use traditional 'lib' prefix
7410 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7411 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7412 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7413 # It is most probably a Windows format PATH printed by
7414 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7415 # path with ; separators, and with drive letters. We can handle the
7416 # drive letters (cygwin fileutils understands them), so leave them,
7417 # especially as we might pass files found there to a mingw objdump,
7418 # which wouldn't understand a cygwinified path. Ahh.
7419 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7420 else
7421 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7422 fi
7423 ;;
7424 pw32*)
7425 # pw32 DLLs use 'pw' prefix rather than 'lib'
brynerd5e66382006-09-08 02:35:53 +00007426 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
brynercb91a2f2006-08-25 21:14:45 +00007427 ;;
7428 esac
7429 ;;
7430
7431 *)
7432 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7433 ;;
7434 esac
7435 dynamic_linker='Win32 ld.exe'
7436 # FIXME: first we should search . and the directory the executable is in
7437 shlibpath_var=PATH
7438 ;;
7439
7440darwin* | rhapsody*)
7441 dynamic_linker="$host_os dyld"
7442 version_type=darwin
7443 need_lib_prefix=no
7444 need_version=no
7445 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7446 soname_spec='${libname}${release}${major}$shared_ext'
7447 shlibpath_overrides_runpath=yes
7448 shlibpath_var=DYLD_LIBRARY_PATH
brynerd5e66382006-09-08 02:35:53 +00007449 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
brynercb91a2f2006-08-25 21:14:45 +00007450 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7451 if test "$GCC" = yes; then
7452 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"`
7453 else
7454 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7455 fi
7456 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7457 ;;
7458
7459dgux*)
7460 version_type=linux
7461 need_lib_prefix=no
7462 need_version=no
7463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7464 soname_spec='${libname}${release}${shared_ext}$major'
7465 shlibpath_var=LD_LIBRARY_PATH
7466 ;;
7467
7468freebsd1*)
7469 dynamic_linker=no
7470 ;;
7471
7472kfreebsd*-gnu)
7473 version_type=linux
7474 need_lib_prefix=no
7475 need_version=no
7476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7477 soname_spec='${libname}${release}${shared_ext}$major'
7478 shlibpath_var=LD_LIBRARY_PATH
7479 shlibpath_overrides_runpath=no
7480 hardcode_into_libs=yes
7481 dynamic_linker='GNU ld.so'
7482 ;;
7483
brynerd5e66382006-09-08 02:35:53 +00007484freebsd*)
7485 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
brynercb91a2f2006-08-25 21:14:45 +00007486 version_type=freebsd-$objformat
7487 case $version_type in
7488 freebsd-elf*)
7489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7490 need_version=no
7491 need_lib_prefix=no
7492 ;;
7493 freebsd-*)
7494 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7495 need_version=yes
7496 ;;
7497 esac
7498 shlibpath_var=LD_LIBRARY_PATH
7499 case $host_os in
7500 freebsd2*)
7501 shlibpath_overrides_runpath=yes
7502 ;;
brynerd5e66382006-09-08 02:35:53 +00007503 freebsd3.01* | freebsdelf3.01*)
brynercb91a2f2006-08-25 21:14:45 +00007504 shlibpath_overrides_runpath=yes
7505 hardcode_into_libs=yes
7506 ;;
brynerd5e66382006-09-08 02:35:53 +00007507 *) # from 3.2 on
brynercb91a2f2006-08-25 21:14:45 +00007508 shlibpath_overrides_runpath=no
7509 hardcode_into_libs=yes
7510 ;;
7511 esac
7512 ;;
7513
7514gnu*)
7515 version_type=linux
7516 need_lib_prefix=no
7517 need_version=no
7518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7519 soname_spec='${libname}${release}${shared_ext}$major'
7520 shlibpath_var=LD_LIBRARY_PATH
7521 hardcode_into_libs=yes
7522 ;;
7523
7524hpux9* | hpux10* | hpux11*)
7525 # Give a soname corresponding to the major version so that dld.sl refuses to
7526 # link against other versions.
7527 version_type=sunos
7528 need_lib_prefix=no
7529 need_version=no
brynerd5e66382006-09-08 02:35:53 +00007530 case "$host_cpu" in
brynercb91a2f2006-08-25 21:14:45 +00007531 ia64*)
7532 shrext_cmds='.so'
7533 hardcode_into_libs=yes
7534 dynamic_linker="$host_os dld.so"
7535 shlibpath_var=LD_LIBRARY_PATH
7536 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7538 soname_spec='${libname}${release}${shared_ext}$major'
7539 if test "X$HPUX_IA64_MODE" = X32; then
7540 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7541 else
7542 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7543 fi
7544 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7545 ;;
7546 hppa*64*)
7547 shrext_cmds='.sl'
7548 hardcode_into_libs=yes
7549 dynamic_linker="$host_os dld.sl"
7550 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7551 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7553 soname_spec='${libname}${release}${shared_ext}$major'
7554 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7555 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7556 ;;
7557 *)
7558 shrext_cmds='.sl'
7559 dynamic_linker="$host_os dld.sl"
7560 shlibpath_var=SHLIB_PATH
7561 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7563 soname_spec='${libname}${release}${shared_ext}$major'
7564 ;;
7565 esac
7566 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7567 postinstall_cmds='chmod 555 $lib'
7568 ;;
7569
7570irix5* | irix6* | nonstopux*)
7571 case $host_os in
7572 nonstopux*) version_type=nonstopux ;;
7573 *)
7574 if test "$lt_cv_prog_gnu_ld" = yes; then
7575 version_type=linux
7576 else
7577 version_type=irix
7578 fi ;;
7579 esac
7580 need_lib_prefix=no
7581 need_version=no
7582 soname_spec='${libname}${release}${shared_ext}$major'
7583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7584 case $host_os in
7585 irix5* | nonstopux*)
7586 libsuff= shlibsuff=
7587 ;;
7588 *)
7589 case $LD in # libtool.m4 will add one of these switches to LD
7590 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7591 libsuff= shlibsuff= libmagic=32-bit;;
7592 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7593 libsuff=32 shlibsuff=N32 libmagic=N32;;
7594 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7595 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7596 *) libsuff= shlibsuff= libmagic=never-match;;
7597 esac
7598 ;;
7599 esac
7600 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7601 shlibpath_overrides_runpath=no
7602 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7603 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7604 hardcode_into_libs=yes
7605 ;;
7606
7607# No shared lib support for Linux oldld, aout, or coff.
7608linux*oldld* | linux*aout* | linux*coff*)
7609 dynamic_linker=no
7610 ;;
7611
7612# This must be Linux ELF.
7613linux*)
7614 version_type=linux
7615 need_lib_prefix=no
7616 need_version=no
7617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7618 soname_spec='${libname}${release}${shared_ext}$major'
7619 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7620 shlibpath_var=LD_LIBRARY_PATH
7621 shlibpath_overrides_runpath=no
7622 # This implies no fast_install, which is unacceptable.
7623 # Some rework will be needed to allow for fast_install
7624 # before this can be enabled.
7625 hardcode_into_libs=yes
7626
7627 # Append ld.so.conf contents to the search path
7628 if test -f /etc/ld.so.conf; then
brynerd5e66382006-09-08 02:35:53 +00007629 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
brynercb91a2f2006-08-25 21:14:45 +00007630 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7631 fi
7632
7633 # We used to test for /lib/ld.so.1 and disable shared libraries on
7634 # powerpc, because MkLinux only supported shared libraries with the
7635 # GNU dynamic linker. Since this was broken with cross compilers,
7636 # most powerpc-linux boxes support dynamic linking these days and
7637 # people can always --disable-shared, the test was removed, and we
7638 # assume the GNU/Linux dynamic linker is in use.
7639 dynamic_linker='GNU/Linux ld.so'
7640 ;;
7641
brynerd5e66382006-09-08 02:35:53 +00007642netbsdelf*-gnu)
7643 version_type=linux
7644 need_lib_prefix=no
7645 need_version=no
7646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7647 soname_spec='${libname}${release}${shared_ext}$major'
7648 shlibpath_var=LD_LIBRARY_PATH
7649 shlibpath_overrides_runpath=no
7650 hardcode_into_libs=yes
7651 dynamic_linker='NetBSD ld.elf_so'
7652 ;;
7653
brynercb91a2f2006-08-25 21:14:45 +00007654knetbsd*-gnu)
7655 version_type=linux
7656 need_lib_prefix=no
7657 need_version=no
7658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7659 soname_spec='${libname}${release}${shared_ext}$major'
7660 shlibpath_var=LD_LIBRARY_PATH
7661 shlibpath_overrides_runpath=no
7662 hardcode_into_libs=yes
7663 dynamic_linker='GNU ld.so'
7664 ;;
7665
7666netbsd*)
7667 version_type=sunos
7668 need_lib_prefix=no
7669 need_version=no
7670 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7672 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7673 dynamic_linker='NetBSD (a.out) ld.so'
7674 else
7675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7676 soname_spec='${libname}${release}${shared_ext}$major'
7677 dynamic_linker='NetBSD ld.elf_so'
7678 fi
7679 shlibpath_var=LD_LIBRARY_PATH
7680 shlibpath_overrides_runpath=yes
7681 hardcode_into_libs=yes
7682 ;;
7683
7684newsos6)
7685 version_type=linux
7686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7687 shlibpath_var=LD_LIBRARY_PATH
7688 shlibpath_overrides_runpath=yes
7689 ;;
7690
7691nto-qnx*)
7692 version_type=linux
7693 need_lib_prefix=no
7694 need_version=no
7695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7696 soname_spec='${libname}${release}${shared_ext}$major'
7697 shlibpath_var=LD_LIBRARY_PATH
7698 shlibpath_overrides_runpath=yes
7699 ;;
7700
7701openbsd*)
7702 version_type=sunos
7703 need_lib_prefix=no
brynerd5e66382006-09-08 02:35:53 +00007704 need_version=yes
brynercb91a2f2006-08-25 21:14:45 +00007705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7706 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7707 shlibpath_var=LD_LIBRARY_PATH
7708 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7709 case $host_os in
7710 openbsd2.[89] | openbsd2.[89].*)
7711 shlibpath_overrides_runpath=no
7712 ;;
7713 *)
7714 shlibpath_overrides_runpath=yes
7715 ;;
7716 esac
7717 else
7718 shlibpath_overrides_runpath=yes
7719 fi
7720 ;;
7721
7722os2*)
7723 libname_spec='$name'
7724 shrext_cmds=".dll"
7725 need_lib_prefix=no
7726 library_names_spec='$libname${shared_ext} $libname.a'
7727 dynamic_linker='OS/2 ld.exe'
7728 shlibpath_var=LIBPATH
7729 ;;
7730
7731osf3* | osf4* | osf5*)
7732 version_type=osf
7733 need_lib_prefix=no
7734 need_version=no
7735 soname_spec='${libname}${release}${shared_ext}$major'
7736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7737 shlibpath_var=LD_LIBRARY_PATH
7738 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7739 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7740 ;;
7741
brynerd5e66382006-09-08 02:35:53 +00007742sco3.2v5*)
7743 version_type=osf
7744 soname_spec='${libname}${release}${shared_ext}$major'
7745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7746 shlibpath_var=LD_LIBRARY_PATH
7747 ;;
7748
brynercb91a2f2006-08-25 21:14:45 +00007749solaris*)
7750 version_type=linux
7751 need_lib_prefix=no
7752 need_version=no
7753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7754 soname_spec='${libname}${release}${shared_ext}$major'
7755 shlibpath_var=LD_LIBRARY_PATH
7756 shlibpath_overrides_runpath=yes
7757 hardcode_into_libs=yes
7758 # ldd complains unless libraries are executable
7759 postinstall_cmds='chmod +x $lib'
7760 ;;
7761
7762sunos4*)
7763 version_type=sunos
7764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7765 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7766 shlibpath_var=LD_LIBRARY_PATH
7767 shlibpath_overrides_runpath=yes
7768 if test "$with_gnu_ld" = yes; then
7769 need_lib_prefix=no
7770 fi
7771 need_version=yes
7772 ;;
7773
brynerd5e66382006-09-08 02:35:53 +00007774sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
brynercb91a2f2006-08-25 21:14:45 +00007775 version_type=linux
7776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7777 soname_spec='${libname}${release}${shared_ext}$major'
7778 shlibpath_var=LD_LIBRARY_PATH
7779 case $host_vendor in
7780 sni)
7781 shlibpath_overrides_runpath=no
7782 need_lib_prefix=no
7783 export_dynamic_flag_spec='${wl}-Blargedynsym'
7784 runpath_var=LD_RUN_PATH
7785 ;;
7786 siemens)
7787 need_lib_prefix=no
7788 ;;
7789 motorola)
7790 need_lib_prefix=no
7791 need_version=no
7792 shlibpath_overrides_runpath=no
7793 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7794 ;;
7795 esac
7796 ;;
7797
7798sysv4*MP*)
7799 if test -d /usr/nec ;then
7800 version_type=linux
7801 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7802 soname_spec='$libname${shared_ext}.$major'
7803 shlibpath_var=LD_LIBRARY_PATH
7804 fi
7805 ;;
7806
7807uts4*)
7808 version_type=linux
7809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7810 soname_spec='${libname}${release}${shared_ext}$major'
7811 shlibpath_var=LD_LIBRARY_PATH
7812 ;;
7813
7814*)
7815 dynamic_linker=no
7816 ;;
7817esac
7818echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7819echo "${ECHO_T}$dynamic_linker" >&6
7820test "$dynamic_linker" = no && can_build_shared=no
7821
7822echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7823echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7824hardcode_action=
7825if test -n "$hardcode_libdir_flag_spec" || \
brynerd5e66382006-09-08 02:35:53 +00007826 test -n "$runpath_var " || \
7827 test "X$hardcode_automatic"="Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +00007828
7829 # We can hardcode non-existant directories.
7830 if test "$hardcode_direct" != no &&
7831 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7832 # have to relink, otherwise we might link with an installed library
7833 # when we should be linking with a yet-to-be-installed one
7834 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7835 test "$hardcode_minus_L" != no; then
7836 # Linking always hardcodes the temporary library directory.
7837 hardcode_action=relink
7838 else
7839 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7840 hardcode_action=immediate
7841 fi
7842else
7843 # We cannot hardcode anything, or else we can only hardcode existing
7844 # directories.
7845 hardcode_action=unsupported
7846fi
7847echo "$as_me:$LINENO: result: $hardcode_action" >&5
7848echo "${ECHO_T}$hardcode_action" >&6
7849
7850if test "$hardcode_action" = relink; then
7851 # Fast installation is not supported
7852 enable_fast_install=no
7853elif test "$shlibpath_overrides_runpath" = yes ||
7854 test "$enable_shared" = no; then
7855 # Fast installation is not necessary
7856 enable_fast_install=needless
7857fi
7858
7859striplib=
7860old_striplib=
7861echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7862echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7863if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7864 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7865 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7866 echo "$as_me:$LINENO: result: yes" >&5
7867echo "${ECHO_T}yes" >&6
7868else
7869# FIXME - insert some real tests, host_os isn't really good enough
7870 case $host_os in
7871 darwin*)
7872 if test -n "$STRIP" ; then
7873 striplib="$STRIP -x"
7874 echo "$as_me:$LINENO: result: yes" >&5
7875echo "${ECHO_T}yes" >&6
7876 else
7877 echo "$as_me:$LINENO: result: no" >&5
7878echo "${ECHO_T}no" >&6
7879fi
7880 ;;
7881 *)
7882 echo "$as_me:$LINENO: result: no" >&5
7883echo "${ECHO_T}no" >&6
7884 ;;
7885 esac
7886fi
7887
7888if test "x$enable_dlopen" != xyes; then
7889 enable_dlopen=unknown
7890 enable_dlopen_self=unknown
7891 enable_dlopen_self_static=unknown
7892else
7893 lt_cv_dlopen=no
7894 lt_cv_dlopen_libs=
7895
7896 case $host_os in
7897 beos*)
7898 lt_cv_dlopen="load_add_on"
7899 lt_cv_dlopen_libs=
7900 lt_cv_dlopen_self=yes
7901 ;;
7902
7903 mingw* | pw32*)
7904 lt_cv_dlopen="LoadLibrary"
7905 lt_cv_dlopen_libs=
7906 ;;
7907
7908 cygwin*)
7909 lt_cv_dlopen="dlopen"
7910 lt_cv_dlopen_libs=
7911 ;;
7912
7913 darwin*)
7914 # if libdl is installed we need to link against it
7915 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7916echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7917if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7919else
7920 ac_check_lib_save_LIBS=$LIBS
7921LIBS="-ldl $LIBS"
7922cat >conftest.$ac_ext <<_ACEOF
7923/* confdefs.h. */
7924_ACEOF
7925cat confdefs.h >>conftest.$ac_ext
7926cat >>conftest.$ac_ext <<_ACEOF
7927/* end confdefs.h. */
7928
7929/* Override any gcc2 internal prototype to avoid an error. */
7930#ifdef __cplusplus
7931extern "C"
7932#endif
7933/* We use char because int might match the return type of a gcc2
7934 builtin and then its argument prototype would still apply. */
7935char dlopen ();
7936int
7937main ()
7938{
7939dlopen ();
7940 ;
7941 return 0;
7942}
7943_ACEOF
7944rm -f conftest.$ac_objext conftest$ac_exeext
7945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7946 (eval $ac_link) 2>conftest.er1
7947 ac_status=$?
7948 grep -v '^ *+' conftest.er1 >conftest.err
7949 rm -f conftest.er1
7950 cat conftest.err >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); } &&
brynerd5e66382006-09-08 02:35:53 +00007953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00007954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7955 (eval $ac_try) 2>&5
7956 ac_status=$?
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); }; } &&
7959 { ac_try='test -s conftest$ac_exeext'
7960 { (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); }; }; then
7965 ac_cv_lib_dl_dlopen=yes
7966else
7967 echo "$as_me: failed program was:" >&5
7968sed 's/^/| /' conftest.$ac_ext >&5
7969
7970ac_cv_lib_dl_dlopen=no
7971fi
7972rm -f conftest.err conftest.$ac_objext \
7973 conftest$ac_exeext conftest.$ac_ext
7974LIBS=$ac_check_lib_save_LIBS
7975fi
7976echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7977echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7978if test $ac_cv_lib_dl_dlopen = yes; then
7979 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7980else
7981
7982 lt_cv_dlopen="dyld"
7983 lt_cv_dlopen_libs=
7984 lt_cv_dlopen_self=yes
7985
7986fi
7987
7988 ;;
7989
7990 *)
7991 echo "$as_me:$LINENO: checking for shl_load" >&5
7992echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7993if test "${ac_cv_func_shl_load+set}" = set; then
7994 echo $ECHO_N "(cached) $ECHO_C" >&6
7995else
7996 cat >conftest.$ac_ext <<_ACEOF
7997/* confdefs.h. */
7998_ACEOF
7999cat confdefs.h >>conftest.$ac_ext
8000cat >>conftest.$ac_ext <<_ACEOF
8001/* end confdefs.h. */
8002/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8004#define shl_load innocuous_shl_load
8005
8006/* System header to define __stub macros and hopefully few prototypes,
8007 which can conflict with char shl_load (); below.
8008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8009 <limits.h> exists even on freestanding compilers. */
8010
8011#ifdef __STDC__
8012# include <limits.h>
8013#else
8014# include <assert.h>
8015#endif
8016
8017#undef shl_load
8018
8019/* Override any gcc2 internal prototype to avoid an error. */
8020#ifdef __cplusplus
8021extern "C"
8022{
8023#endif
8024/* We use char because int might match the return type of a gcc2
8025 builtin and then its argument prototype would still apply. */
8026char shl_load ();
8027/* The GNU C library defines this for functions which it implements
8028 to always fail with ENOSYS. Some functions are actually named
8029 something starting with __ and the normal name is an alias. */
8030#if defined (__stub_shl_load) || defined (__stub___shl_load)
8031choke me
8032#else
8033char (*f) () = shl_load;
8034#endif
8035#ifdef __cplusplus
8036}
8037#endif
8038
8039int
8040main ()
8041{
8042return f != shl_load;
8043 ;
8044 return 0;
8045}
8046_ACEOF
8047rm -f conftest.$ac_objext conftest$ac_exeext
8048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8049 (eval $ac_link) 2>conftest.er1
8050 ac_status=$?
8051 grep -v '^ *+' conftest.er1 >conftest.err
8052 rm -f conftest.er1
8053 cat conftest.err >&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); } &&
brynerd5e66382006-09-08 02:35:53 +00008056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00008057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058 (eval $ac_try) 2>&5
8059 ac_status=$?
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); }; } &&
8062 { ac_try='test -s conftest$ac_exeext'
8063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8064 (eval $ac_try) 2>&5
8065 ac_status=$?
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }; }; then
8068 ac_cv_func_shl_load=yes
8069else
8070 echo "$as_me: failed program was:" >&5
8071sed 's/^/| /' conftest.$ac_ext >&5
8072
8073ac_cv_func_shl_load=no
8074fi
8075rm -f conftest.err conftest.$ac_objext \
8076 conftest$ac_exeext conftest.$ac_ext
8077fi
8078echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8079echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8080if test $ac_cv_func_shl_load = yes; then
8081 lt_cv_dlopen="shl_load"
8082else
8083 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8084echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8085if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8086 echo $ECHO_N "(cached) $ECHO_C" >&6
8087else
8088 ac_check_lib_save_LIBS=$LIBS
8089LIBS="-ldld $LIBS"
8090cat >conftest.$ac_ext <<_ACEOF
8091/* confdefs.h. */
8092_ACEOF
8093cat confdefs.h >>conftest.$ac_ext
8094cat >>conftest.$ac_ext <<_ACEOF
8095/* end confdefs.h. */
8096
8097/* Override any gcc2 internal prototype to avoid an error. */
8098#ifdef __cplusplus
8099extern "C"
8100#endif
8101/* We use char because int might match the return type of a gcc2
8102 builtin and then its argument prototype would still apply. */
8103char shl_load ();
8104int
8105main ()
8106{
8107shl_load ();
8108 ;
8109 return 0;
8110}
8111_ACEOF
8112rm -f conftest.$ac_objext conftest$ac_exeext
8113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8114 (eval $ac_link) 2>conftest.er1
8115 ac_status=$?
8116 grep -v '^ *+' conftest.er1 >conftest.err
8117 rm -f conftest.er1
8118 cat conftest.err >&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); } &&
brynerd5e66382006-09-08 02:35:53 +00008121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00008122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8123 (eval $ac_try) 2>&5
8124 ac_status=$?
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; } &&
8127 { ac_try='test -s conftest$ac_exeext'
8128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8129 (eval $ac_try) 2>&5
8130 ac_status=$?
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); }; }; then
8133 ac_cv_lib_dld_shl_load=yes
8134else
8135 echo "$as_me: failed program was:" >&5
8136sed 's/^/| /' conftest.$ac_ext >&5
8137
8138ac_cv_lib_dld_shl_load=no
8139fi
8140rm -f conftest.err conftest.$ac_objext \
8141 conftest$ac_exeext conftest.$ac_ext
8142LIBS=$ac_check_lib_save_LIBS
8143fi
8144echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8145echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8146if test $ac_cv_lib_dld_shl_load = yes; then
8147 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8148else
8149 echo "$as_me:$LINENO: checking for dlopen" >&5
8150echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8151if test "${ac_cv_func_dlopen+set}" = set; then
8152 echo $ECHO_N "(cached) $ECHO_C" >&6
8153else
8154 cat >conftest.$ac_ext <<_ACEOF
8155/* confdefs.h. */
8156_ACEOF
8157cat confdefs.h >>conftest.$ac_ext
8158cat >>conftest.$ac_ext <<_ACEOF
8159/* end confdefs.h. */
8160/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8162#define dlopen innocuous_dlopen
8163
8164/* System header to define __stub macros and hopefully few prototypes,
8165 which can conflict with char dlopen (); below.
8166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8167 <limits.h> exists even on freestanding compilers. */
8168
8169#ifdef __STDC__
8170# include <limits.h>
8171#else
8172# include <assert.h>
8173#endif
8174
8175#undef dlopen
8176
8177/* Override any gcc2 internal prototype to avoid an error. */
8178#ifdef __cplusplus
8179extern "C"
8180{
8181#endif
8182/* We use char because int might match the return type of a gcc2
8183 builtin and then its argument prototype would still apply. */
8184char dlopen ();
8185/* The GNU C library defines this for functions which it implements
8186 to always fail with ENOSYS. Some functions are actually named
8187 something starting with __ and the normal name is an alias. */
8188#if defined (__stub_dlopen) || defined (__stub___dlopen)
8189choke me
8190#else
8191char (*f) () = dlopen;
8192#endif
8193#ifdef __cplusplus
8194}
8195#endif
8196
8197int
8198main ()
8199{
8200return f != dlopen;
8201 ;
8202 return 0;
8203}
8204_ACEOF
8205rm -f conftest.$ac_objext conftest$ac_exeext
8206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8207 (eval $ac_link) 2>conftest.er1
8208 ac_status=$?
8209 grep -v '^ *+' conftest.er1 >conftest.err
8210 rm -f conftest.er1
8211 cat conftest.err >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); } &&
brynerd5e66382006-09-08 02:35:53 +00008214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00008215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8216 (eval $ac_try) 2>&5
8217 ac_status=$?
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); }; } &&
8220 { ac_try='test -s conftest$ac_exeext'
8221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8222 (eval $ac_try) 2>&5
8223 ac_status=$?
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); }; }; then
8226 ac_cv_func_dlopen=yes
8227else
8228 echo "$as_me: failed program was:" >&5
8229sed 's/^/| /' conftest.$ac_ext >&5
8230
8231ac_cv_func_dlopen=no
8232fi
8233rm -f conftest.err conftest.$ac_objext \
8234 conftest$ac_exeext conftest.$ac_ext
8235fi
8236echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8237echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8238if test $ac_cv_func_dlopen = yes; then
8239 lt_cv_dlopen="dlopen"
8240else
8241 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8242echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8243if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8244 echo $ECHO_N "(cached) $ECHO_C" >&6
8245else
8246 ac_check_lib_save_LIBS=$LIBS
8247LIBS="-ldl $LIBS"
8248cat >conftest.$ac_ext <<_ACEOF
8249/* confdefs.h. */
8250_ACEOF
8251cat confdefs.h >>conftest.$ac_ext
8252cat >>conftest.$ac_ext <<_ACEOF
8253/* end confdefs.h. */
8254
8255/* Override any gcc2 internal prototype to avoid an error. */
8256#ifdef __cplusplus
8257extern "C"
8258#endif
8259/* We use char because int might match the return type of a gcc2
8260 builtin and then its argument prototype would still apply. */
8261char dlopen ();
8262int
8263main ()
8264{
8265dlopen ();
8266 ;
8267 return 0;
8268}
8269_ACEOF
8270rm -f conftest.$ac_objext conftest$ac_exeext
8271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8272 (eval $ac_link) 2>conftest.er1
8273 ac_status=$?
8274 grep -v '^ *+' conftest.er1 >conftest.err
8275 rm -f conftest.er1
8276 cat conftest.err >&5
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); } &&
brynerd5e66382006-09-08 02:35:53 +00008279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00008280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8281 (eval $ac_try) 2>&5
8282 ac_status=$?
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); }; } &&
8285 { ac_try='test -s conftest$ac_exeext'
8286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8287 (eval $ac_try) 2>&5
8288 ac_status=$?
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); }; }; then
8291 ac_cv_lib_dl_dlopen=yes
8292else
8293 echo "$as_me: failed program was:" >&5
8294sed 's/^/| /' conftest.$ac_ext >&5
8295
8296ac_cv_lib_dl_dlopen=no
8297fi
8298rm -f conftest.err conftest.$ac_objext \
8299 conftest$ac_exeext conftest.$ac_ext
8300LIBS=$ac_check_lib_save_LIBS
8301fi
8302echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8303echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8304if test $ac_cv_lib_dl_dlopen = yes; then
8305 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8306else
8307 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8308echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8309if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8310 echo $ECHO_N "(cached) $ECHO_C" >&6
8311else
8312 ac_check_lib_save_LIBS=$LIBS
8313LIBS="-lsvld $LIBS"
8314cat >conftest.$ac_ext <<_ACEOF
8315/* confdefs.h. */
8316_ACEOF
8317cat confdefs.h >>conftest.$ac_ext
8318cat >>conftest.$ac_ext <<_ACEOF
8319/* end confdefs.h. */
8320
8321/* Override any gcc2 internal prototype to avoid an error. */
8322#ifdef __cplusplus
8323extern "C"
8324#endif
8325/* We use char because int might match the return type of a gcc2
8326 builtin and then its argument prototype would still apply. */
8327char dlopen ();
8328int
8329main ()
8330{
8331dlopen ();
8332 ;
8333 return 0;
8334}
8335_ACEOF
8336rm -f conftest.$ac_objext conftest$ac_exeext
8337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8338 (eval $ac_link) 2>conftest.er1
8339 ac_status=$?
8340 grep -v '^ *+' conftest.er1 >conftest.err
8341 rm -f conftest.er1
8342 cat conftest.err >&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } &&
brynerd5e66382006-09-08 02:35:53 +00008345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00008346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8347 (eval $ac_try) 2>&5
8348 ac_status=$?
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); }; } &&
8351 { ac_try='test -s conftest$ac_exeext'
8352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8353 (eval $ac_try) 2>&5
8354 ac_status=$?
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); }; }; then
8357 ac_cv_lib_svld_dlopen=yes
8358else
8359 echo "$as_me: failed program was:" >&5
8360sed 's/^/| /' conftest.$ac_ext >&5
8361
8362ac_cv_lib_svld_dlopen=no
8363fi
8364rm -f conftest.err conftest.$ac_objext \
8365 conftest$ac_exeext conftest.$ac_ext
8366LIBS=$ac_check_lib_save_LIBS
8367fi
8368echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8369echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8370if test $ac_cv_lib_svld_dlopen = yes; then
8371 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8372else
8373 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8374echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8375if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8376 echo $ECHO_N "(cached) $ECHO_C" >&6
8377else
8378 ac_check_lib_save_LIBS=$LIBS
8379LIBS="-ldld $LIBS"
8380cat >conftest.$ac_ext <<_ACEOF
8381/* confdefs.h. */
8382_ACEOF
8383cat confdefs.h >>conftest.$ac_ext
8384cat >>conftest.$ac_ext <<_ACEOF
8385/* end confdefs.h. */
8386
8387/* Override any gcc2 internal prototype to avoid an error. */
8388#ifdef __cplusplus
8389extern "C"
8390#endif
8391/* We use char because int might match the return type of a gcc2
8392 builtin and then its argument prototype would still apply. */
8393char dld_link ();
8394int
8395main ()
8396{
8397dld_link ();
8398 ;
8399 return 0;
8400}
8401_ACEOF
8402rm -f conftest.$ac_objext conftest$ac_exeext
8403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8404 (eval $ac_link) 2>conftest.er1
8405 ac_status=$?
8406 grep -v '^ *+' conftest.er1 >conftest.err
8407 rm -f conftest.er1
8408 cat conftest.err >&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); } &&
brynerd5e66382006-09-08 02:35:53 +00008411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00008412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413 (eval $ac_try) 2>&5
8414 ac_status=$?
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; } &&
8417 { ac_try='test -s conftest$ac_exeext'
8418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8419 (eval $ac_try) 2>&5
8420 ac_status=$?
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); }; }; then
8423 ac_cv_lib_dld_dld_link=yes
8424else
8425 echo "$as_me: failed program was:" >&5
8426sed 's/^/| /' conftest.$ac_ext >&5
8427
8428ac_cv_lib_dld_dld_link=no
8429fi
8430rm -f conftest.err conftest.$ac_objext \
8431 conftest$ac_exeext conftest.$ac_ext
8432LIBS=$ac_check_lib_save_LIBS
8433fi
8434echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8435echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8436if test $ac_cv_lib_dld_dld_link = yes; then
8437 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8438fi
8439
8440
8441fi
8442
8443
8444fi
8445
8446
8447fi
8448
8449
8450fi
8451
8452
8453fi
8454
8455 ;;
8456 esac
8457
8458 if test "x$lt_cv_dlopen" != xno; then
8459 enable_dlopen=yes
8460 else
8461 enable_dlopen=no
8462 fi
8463
8464 case $lt_cv_dlopen in
8465 dlopen)
8466 save_CPPFLAGS="$CPPFLAGS"
8467 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8468
8469 save_LDFLAGS="$LDFLAGS"
brynerd5e66382006-09-08 02:35:53 +00008470 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
brynercb91a2f2006-08-25 21:14:45 +00008471
8472 save_LIBS="$LIBS"
8473 LIBS="$lt_cv_dlopen_libs $LIBS"
8474
8475 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8476echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8477if test "${lt_cv_dlopen_self+set}" = set; then
8478 echo $ECHO_N "(cached) $ECHO_C" >&6
8479else
8480 if test "$cross_compiling" = yes; then :
8481 lt_cv_dlopen_self=cross
8482else
8483 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8484 lt_status=$lt_dlunknown
8485 cat > conftest.$ac_ext <<EOF
brynerd5e66382006-09-08 02:35:53 +00008486#line 8486 "configure"
brynercb91a2f2006-08-25 21:14:45 +00008487#include "confdefs.h"
8488
8489#if HAVE_DLFCN_H
8490#include <dlfcn.h>
8491#endif
8492
8493#include <stdio.h>
8494
8495#ifdef RTLD_GLOBAL
8496# define LT_DLGLOBAL RTLD_GLOBAL
8497#else
8498# ifdef DL_GLOBAL
8499# define LT_DLGLOBAL DL_GLOBAL
8500# else
8501# define LT_DLGLOBAL 0
8502# endif
8503#endif
8504
8505/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8506 find out it does not work in some platform. */
8507#ifndef LT_DLLAZY_OR_NOW
8508# ifdef RTLD_LAZY
8509# define LT_DLLAZY_OR_NOW RTLD_LAZY
8510# else
8511# ifdef DL_LAZY
8512# define LT_DLLAZY_OR_NOW DL_LAZY
8513# else
8514# ifdef RTLD_NOW
8515# define LT_DLLAZY_OR_NOW RTLD_NOW
8516# else
8517# ifdef DL_NOW
8518# define LT_DLLAZY_OR_NOW DL_NOW
8519# else
8520# define LT_DLLAZY_OR_NOW 0
8521# endif
8522# endif
8523# endif
8524# endif
8525#endif
8526
8527#ifdef __cplusplus
8528extern "C" void exit (int);
8529#endif
8530
8531void fnord() { int i=42;}
8532int main ()
8533{
8534 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8535 int status = $lt_dlunknown;
8536
8537 if (self)
8538 {
8539 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8540 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8541 /* dlclose (self); */
8542 }
8543
8544 exit (status);
8545}
8546EOF
8547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8548 (eval $ac_link) 2>&5
8549 ac_status=$?
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
brynerd5e66382006-09-08 02:35:53 +00008552 (./conftest; exit; ) 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +00008553 lt_status=$?
8554 case x$lt_status in
8555 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8556 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
brynerd5e66382006-09-08 02:35:53 +00008557 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
brynercb91a2f2006-08-25 21:14:45 +00008558 esac
8559 else :
8560 # compilation failed
8561 lt_cv_dlopen_self=no
8562 fi
8563fi
8564rm -fr conftest*
8565
8566
8567fi
8568echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8569echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8570
8571 if test "x$lt_cv_dlopen_self" = xyes; then
brynerd5e66382006-09-08 02:35:53 +00008572 LDFLAGS="$LDFLAGS $link_static_flag"
brynercb91a2f2006-08-25 21:14:45 +00008573 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8574echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8575if test "${lt_cv_dlopen_self_static+set}" = set; then
8576 echo $ECHO_N "(cached) $ECHO_C" >&6
8577else
8578 if test "$cross_compiling" = yes; then :
8579 lt_cv_dlopen_self_static=cross
8580else
8581 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8582 lt_status=$lt_dlunknown
8583 cat > conftest.$ac_ext <<EOF
brynerd5e66382006-09-08 02:35:53 +00008584#line 8584 "configure"
brynercb91a2f2006-08-25 21:14:45 +00008585#include "confdefs.h"
8586
8587#if HAVE_DLFCN_H
8588#include <dlfcn.h>
8589#endif
8590
8591#include <stdio.h>
8592
8593#ifdef RTLD_GLOBAL
8594# define LT_DLGLOBAL RTLD_GLOBAL
8595#else
8596# ifdef DL_GLOBAL
8597# define LT_DLGLOBAL DL_GLOBAL
8598# else
8599# define LT_DLGLOBAL 0
8600# endif
8601#endif
8602
8603/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8604 find out it does not work in some platform. */
8605#ifndef LT_DLLAZY_OR_NOW
8606# ifdef RTLD_LAZY
8607# define LT_DLLAZY_OR_NOW RTLD_LAZY
8608# else
8609# ifdef DL_LAZY
8610# define LT_DLLAZY_OR_NOW DL_LAZY
8611# else
8612# ifdef RTLD_NOW
8613# define LT_DLLAZY_OR_NOW RTLD_NOW
8614# else
8615# ifdef DL_NOW
8616# define LT_DLLAZY_OR_NOW DL_NOW
8617# else
8618# define LT_DLLAZY_OR_NOW 0
8619# endif
8620# endif
8621# endif
8622# endif
8623#endif
8624
8625#ifdef __cplusplus
8626extern "C" void exit (int);
8627#endif
8628
8629void fnord() { int i=42;}
8630int main ()
8631{
8632 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8633 int status = $lt_dlunknown;
8634
8635 if (self)
8636 {
8637 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8638 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8639 /* dlclose (self); */
8640 }
8641
8642 exit (status);
8643}
8644EOF
8645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8646 (eval $ac_link) 2>&5
8647 ac_status=$?
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
brynerd5e66382006-09-08 02:35:53 +00008650 (./conftest; exit; ) 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +00008651 lt_status=$?
8652 case x$lt_status in
8653 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8654 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
brynerd5e66382006-09-08 02:35:53 +00008655 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
brynercb91a2f2006-08-25 21:14:45 +00008656 esac
8657 else :
8658 # compilation failed
8659 lt_cv_dlopen_self_static=no
8660 fi
8661fi
8662rm -fr conftest*
8663
8664
8665fi
8666echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8667echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8668 fi
8669
8670 CPPFLAGS="$save_CPPFLAGS"
8671 LDFLAGS="$save_LDFLAGS"
8672 LIBS="$save_LIBS"
8673 ;;
8674 esac
8675
8676 case $lt_cv_dlopen_self in
8677 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8678 *) enable_dlopen_self=unknown ;;
8679 esac
8680
8681 case $lt_cv_dlopen_self_static in
8682 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8683 *) enable_dlopen_self_static=unknown ;;
8684 esac
8685fi
8686
8687
brynerd5e66382006-09-08 02:35:53 +00008688# Report which librarie types wil actually be built
brynercb91a2f2006-08-25 21:14:45 +00008689echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8690echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8691echo "$as_me:$LINENO: result: $can_build_shared" >&5
8692echo "${ECHO_T}$can_build_shared" >&6
8693
8694echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8695echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8696test "$can_build_shared" = "no" && enable_shared=no
8697
8698# On AIX, shared libraries and static libraries use the same namespace, and
8699# are all built from PIC.
brynerd5e66382006-09-08 02:35:53 +00008700case "$host_os" in
brynercb91a2f2006-08-25 21:14:45 +00008701aix3*)
8702 test "$enable_shared" = yes && enable_static=no
8703 if test -n "$RANLIB"; then
8704 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8705 postinstall_cmds='$RANLIB $lib'
8706 fi
8707 ;;
8708
8709aix4* | aix5*)
8710 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8711 test "$enable_shared" = yes && enable_static=no
8712 fi
brynerd5e66382006-09-08 02:35:53 +00008713 ;;
8714 darwin* | rhapsody*)
8715 if test "$GCC" = yes; then
8716 archive_cmds_need_lc=no
8717 case "$host_os" in
8718 rhapsody* | darwin1.[012])
8719 allow_undefined_flag='-undefined suppress'
8720 ;;
8721 *) # Darwin 1.3 on
8722 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8723 allow_undefined_flag='-flat_namespace -undefined suppress'
8724 else
8725 case ${MACOSX_DEPLOYMENT_TARGET} in
8726 10.[012])
8727 allow_undefined_flag='-flat_namespace -undefined suppress'
8728 ;;
8729 10.*)
8730 allow_undefined_flag='-undefined dynamic_lookup'
8731 ;;
8732 esac
8733 fi
8734 ;;
8735 esac
8736 output_verbose_link_cmd='echo'
8737 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8738 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8739 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8740 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}'
8741 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}'
8742 hardcode_direct=no
8743 hardcode_automatic=yes
8744 hardcode_shlibpath_var=unsupported
8745 whole_archive_flag_spec='-all_load $convenience'
8746 link_all_deplibs=yes
8747 else
8748 ld_shlibs=no
8749 fi
brynercb91a2f2006-08-25 21:14:45 +00008750 ;;
8751esac
8752echo "$as_me:$LINENO: result: $enable_shared" >&5
8753echo "${ECHO_T}$enable_shared" >&6
8754
8755echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8756echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8757# Make sure either enable_shared or enable_static is yes.
8758test "$enable_shared" = yes || enable_static=yes
8759echo "$as_me:$LINENO: result: $enable_static" >&5
8760echo "${ECHO_T}$enable_static" >&6
8761
8762# The else clause should only fire when bootstrapping the
8763# libtool distribution, otherwise you forgot to ship ltmain.sh
8764# with your package, and you will get complaints that there are
8765# no rules to generate ltmain.sh.
8766if test -f "$ltmain"; then
8767 # See if we are running on zsh, and set the options which allow our commands through
8768 # without removal of \ escapes.
8769 if test -n "${ZSH_VERSION+set}" ; then
8770 setopt NO_GLOB_SUBST
8771 fi
8772 # Now quote all the things that may contain metacharacters while being
8773 # careful not to overquote the AC_SUBSTed values. We take copies of the
8774 # variables and quote the copies for generation of the libtool script.
brynerd5e66382006-09-08 02:35:53 +00008775 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
brynercb91a2f2006-08-25 21:14:45 +00008776 SED SHELL STRIP \
8777 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8778 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8779 deplibs_check_method reload_flag reload_cmds need_locks \
8780 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8781 lt_cv_sys_global_symbol_to_c_name_address \
8782 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8783 old_postinstall_cmds old_postuninstall_cmds \
8784 compiler \
8785 CC \
8786 LD \
8787 lt_prog_compiler_wl \
8788 lt_prog_compiler_pic \
8789 lt_prog_compiler_static \
8790 lt_prog_compiler_no_builtin_flag \
8791 export_dynamic_flag_spec \
8792 thread_safe_flag_spec \
8793 whole_archive_flag_spec \
8794 enable_shared_with_static_runtimes \
8795 old_archive_cmds \
8796 old_archive_from_new_cmds \
8797 predep_objects \
8798 postdep_objects \
8799 predeps \
8800 postdeps \
8801 compiler_lib_search_path \
8802 archive_cmds \
8803 archive_expsym_cmds \
8804 postinstall_cmds \
8805 postuninstall_cmds \
8806 old_archive_from_expsyms_cmds \
8807 allow_undefined_flag \
8808 no_undefined_flag \
8809 export_symbols_cmds \
8810 hardcode_libdir_flag_spec \
8811 hardcode_libdir_flag_spec_ld \
8812 hardcode_libdir_separator \
8813 hardcode_automatic \
8814 module_cmds \
8815 module_expsym_cmds \
8816 lt_cv_prog_compiler_c_o \
8817 exclude_expsyms \
8818 include_expsyms; do
8819
8820 case $var in
8821 old_archive_cmds | \
8822 old_archive_from_new_cmds | \
8823 archive_cmds | \
8824 archive_expsym_cmds | \
8825 module_cmds | \
8826 module_expsym_cmds | \
8827 old_archive_from_expsyms_cmds | \
8828 export_symbols_cmds | \
8829 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8830 postinstall_cmds | postuninstall_cmds | \
8831 old_postinstall_cmds | old_postuninstall_cmds | \
8832 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8833 # Double-quote double-evaled strings.
8834 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8835 ;;
8836 *)
8837 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8838 ;;
8839 esac
8840 done
8841
8842 case $lt_echo in
8843 *'\$0 --fallback-echo"')
8844 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8845 ;;
8846 esac
8847
8848cfgfile="${ofile}T"
8849 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8850 $rm -f "$cfgfile"
8851 { echo "$as_me:$LINENO: creating $ofile" >&5
8852echo "$as_me: creating $ofile" >&6;}
8853
8854 cat <<__EOF__ >> "$cfgfile"
8855#! $SHELL
8856
8857# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8858# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8859# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8860#
8861# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8862# Free Software Foundation, Inc.
8863#
8864# This file is part of GNU Libtool:
8865# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8866#
8867# This program is free software; you can redistribute it and/or modify
8868# it under the terms of the GNU General Public License as published by
8869# the Free Software Foundation; either version 2 of the License, or
8870# (at your option) any later version.
8871#
8872# This program is distributed in the hope that it will be useful, but
8873# WITHOUT ANY WARRANTY; without even the implied warranty of
8874# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8875# General Public License for more details.
8876#
8877# You should have received a copy of the GNU General Public License
8878# along with this program; if not, write to the Free Software
brynerd5e66382006-09-08 02:35:53 +00008879# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
brynercb91a2f2006-08-25 21:14:45 +00008880#
8881# As a special exception to the GNU General Public License, if you
8882# distribute this file as part of a program that contains a
8883# configuration script generated by Autoconf, you may include it under
8884# the same distribution terms that you use for the rest of that program.
8885
8886# A sed program that does not truncate output.
8887SED=$lt_SED
8888
8889# Sed that helps us avoid accidentally triggering echo(1) options like -n.
brynerd5e66382006-09-08 02:35:53 +00008890Xsed="$SED -e s/^X//"
brynercb91a2f2006-08-25 21:14:45 +00008891
8892# The HP-UX ksh and POSIX shell print the target directory to stdout
8893# if CDPATH is set.
brynerd5e66382006-09-08 02:35:53 +00008894if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
brynercb91a2f2006-08-25 21:14:45 +00008895
8896# The names of the tagged configurations supported by this script.
8897available_tags=
8898
8899# ### BEGIN LIBTOOL CONFIG
8900
8901# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8902
8903# Shell to use when invoking shell scripts.
8904SHELL=$lt_SHELL
8905
8906# Whether or not to build shared libraries.
8907build_libtool_libs=$enable_shared
8908
8909# Whether or not to build static libraries.
8910build_old_libs=$enable_static
8911
8912# Whether or not to add -lc for building shared libraries.
8913build_libtool_need_lc=$archive_cmds_need_lc
8914
8915# Whether or not to disallow shared libs when runtime libs are static
8916allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8917
8918# Whether or not to optimize for fast installation.
8919fast_install=$enable_fast_install
8920
8921# The host system.
8922host_alias=$host_alias
8923host=$host
8924
8925# An echo program that does not interpret backslashes.
8926echo=$lt_echo
8927
8928# The archiver.
8929AR=$lt_AR
8930AR_FLAGS=$lt_AR_FLAGS
8931
8932# A C compiler.
8933LTCC=$lt_LTCC
8934
8935# A language-specific compiler.
8936CC=$lt_compiler
8937
8938# Is the compiler the GNU C compiler?
8939with_gcc=$GCC
8940
8941# An ERE matcher.
8942EGREP=$lt_EGREP
8943
8944# The linker used to build libraries.
8945LD=$lt_LD
8946
8947# Whether we need hard or soft links.
8948LN_S=$lt_LN_S
8949
8950# A BSD-compatible nm program.
8951NM=$lt_NM
8952
8953# A symbol stripping program
8954STRIP=$lt_STRIP
8955
8956# Used to examine libraries when file_magic_cmd begins "file"
8957MAGIC_CMD=$MAGIC_CMD
8958
8959# Used on cygwin: DLL creation program.
8960DLLTOOL="$DLLTOOL"
8961
8962# Used on cygwin: object dumper.
8963OBJDUMP="$OBJDUMP"
8964
8965# Used on cygwin: assembler.
8966AS="$AS"
8967
8968# The name of the directory that contains temporary libtool files.
8969objdir=$objdir
8970
8971# How to create reloadable object files.
8972reload_flag=$lt_reload_flag
8973reload_cmds=$lt_reload_cmds
8974
8975# How to pass a linker flag through the compiler.
8976wl=$lt_lt_prog_compiler_wl
8977
8978# Object file suffix (normally "o").
8979objext="$ac_objext"
8980
8981# Old archive suffix (normally "a").
8982libext="$libext"
8983
8984# Shared library suffix (normally ".so").
8985shrext_cmds='$shrext_cmds'
8986
8987# Executable file suffix (normally "").
8988exeext="$exeext"
8989
8990# Additional compiler flags for building library objects.
8991pic_flag=$lt_lt_prog_compiler_pic
8992pic_mode=$pic_mode
8993
8994# What is the maximum length of a command?
8995max_cmd_len=$lt_cv_sys_max_cmd_len
8996
8997# Does compiler simultaneously support -c and -o options?
8998compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8999
brynerd5e66382006-09-08 02:35:53 +00009000# Must we lock files when doing compilation ?
brynercb91a2f2006-08-25 21:14:45 +00009001need_locks=$lt_need_locks
9002
9003# Do we need the lib prefix for modules?
9004need_lib_prefix=$need_lib_prefix
9005
9006# Do we need a version for libraries?
9007need_version=$need_version
9008
9009# Whether dlopen is supported.
9010dlopen_support=$enable_dlopen
9011
9012# Whether dlopen of programs is supported.
9013dlopen_self=$enable_dlopen_self
9014
9015# Whether dlopen of statically linked programs is supported.
9016dlopen_self_static=$enable_dlopen_self_static
9017
9018# Compiler flag to prevent dynamic linking.
9019link_static_flag=$lt_lt_prog_compiler_static
9020
9021# Compiler flag to turn off builtin functions.
9022no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9023
9024# Compiler flag to allow reflexive dlopens.
9025export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9026
9027# Compiler flag to generate shared objects directly from archives.
9028whole_archive_flag_spec=$lt_whole_archive_flag_spec
9029
9030# Compiler flag to generate thread-safe objects.
9031thread_safe_flag_spec=$lt_thread_safe_flag_spec
9032
9033# Library versioning type.
9034version_type=$version_type
9035
9036# Format of library name prefix.
9037libname_spec=$lt_libname_spec
9038
9039# List of archive names. First name is the real one, the rest are links.
9040# The last name is the one that the linker finds with -lNAME.
9041library_names_spec=$lt_library_names_spec
9042
9043# The coded name of the library, if different from the real name.
9044soname_spec=$lt_soname_spec
9045
9046# Commands used to build and install an old-style archive.
9047RANLIB=$lt_RANLIB
9048old_archive_cmds=$lt_old_archive_cmds
9049old_postinstall_cmds=$lt_old_postinstall_cmds
9050old_postuninstall_cmds=$lt_old_postuninstall_cmds
9051
9052# Create an old-style archive from a shared archive.
9053old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9054
9055# Create a temporary old-style archive to link instead of a shared archive.
9056old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9057
9058# Commands used to build and install a shared archive.
9059archive_cmds=$lt_archive_cmds
9060archive_expsym_cmds=$lt_archive_expsym_cmds
9061postinstall_cmds=$lt_postinstall_cmds
9062postuninstall_cmds=$lt_postuninstall_cmds
9063
9064# Commands used to build a loadable module (assumed same as above if empty)
9065module_cmds=$lt_module_cmds
9066module_expsym_cmds=$lt_module_expsym_cmds
9067
9068# Commands to strip libraries.
9069old_striplib=$lt_old_striplib
9070striplib=$lt_striplib
9071
9072# Dependencies to place before the objects being linked to create a
9073# shared library.
9074predep_objects=$lt_predep_objects
9075
9076# Dependencies to place after the objects being linked to create a
9077# shared library.
9078postdep_objects=$lt_postdep_objects
9079
9080# Dependencies to place before the objects being linked to create a
9081# shared library.
9082predeps=$lt_predeps
9083
9084# Dependencies to place after the objects being linked to create a
9085# shared library.
9086postdeps=$lt_postdeps
9087
9088# The library search path used internally by the compiler when linking
9089# a shared library.
9090compiler_lib_search_path=$lt_compiler_lib_search_path
9091
9092# Method to check whether dependent libraries are shared objects.
9093deplibs_check_method=$lt_deplibs_check_method
9094
9095# Command to use when deplibs_check_method == file_magic.
9096file_magic_cmd=$lt_file_magic_cmd
9097
9098# Flag that allows shared libraries with undefined symbols to be built.
9099allow_undefined_flag=$lt_allow_undefined_flag
9100
9101# Flag that forces no undefined symbols.
9102no_undefined_flag=$lt_no_undefined_flag
9103
9104# Commands used to finish a libtool library installation in a directory.
9105finish_cmds=$lt_finish_cmds
9106
9107# Same as above, but a single script fragment to be evaled but not shown.
9108finish_eval=$lt_finish_eval
9109
9110# Take the output of nm and produce a listing of raw symbols and C names.
9111global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9112
9113# Transform the output of nm in a proper C declaration
9114global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9115
9116# Transform the output of nm in a C name address pair
9117global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9118
9119# This is the shared library runtime path variable.
9120runpath_var=$runpath_var
9121
9122# This is the shared library path variable.
9123shlibpath_var=$shlibpath_var
9124
9125# Is shlibpath searched before the hard-coded library search path?
9126shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9127
9128# How to hardcode a shared library path into an executable.
9129hardcode_action=$hardcode_action
9130
9131# Whether we should hardcode library paths into libraries.
9132hardcode_into_libs=$hardcode_into_libs
9133
9134# Flag to hardcode \$libdir into a binary during linking.
9135# This must work even if \$libdir does not exist.
9136hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9137
9138# If ld is used when linking, flag to hardcode \$libdir into
9139# a binary during linking. This must work even if \$libdir does
9140# not exist.
9141hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9142
9143# Whether we need a single -rpath flag with a separated argument.
9144hardcode_libdir_separator=$lt_hardcode_libdir_separator
9145
9146# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9147# resulting binary.
9148hardcode_direct=$hardcode_direct
9149
9150# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9151# resulting binary.
9152hardcode_minus_L=$hardcode_minus_L
9153
9154# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9155# the resulting binary.
9156hardcode_shlibpath_var=$hardcode_shlibpath_var
9157
9158# Set to yes if building a shared library automatically hardcodes DIR into the library
9159# and all subsequent libraries and executables linked against it.
9160hardcode_automatic=$hardcode_automatic
9161
9162# Variables whose values should be saved in libtool wrapper scripts and
9163# restored at relink time.
9164variables_saved_for_relink="$variables_saved_for_relink"
9165
9166# Whether libtool must link a program against all its dependency libraries.
9167link_all_deplibs=$link_all_deplibs
9168
9169# Compile-time system search path for libraries
9170sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9171
9172# Run-time system search path for libraries
9173sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9174
9175# Fix the shell variable \$srcfile for the compiler.
9176fix_srcfile_path="$fix_srcfile_path"
9177
9178# Set to yes if exported symbols are required.
9179always_export_symbols=$always_export_symbols
9180
9181# The commands to list exported symbols.
9182export_symbols_cmds=$lt_export_symbols_cmds
9183
9184# The commands to extract the exported symbol list from a shared archive.
9185extract_expsyms_cmds=$lt_extract_expsyms_cmds
9186
9187# Symbols that should not be listed in the preloaded symbols.
9188exclude_expsyms=$lt_exclude_expsyms
9189
9190# Symbols that must always be exported.
9191include_expsyms=$lt_include_expsyms
9192
9193# ### END LIBTOOL CONFIG
9194
9195__EOF__
9196
9197
9198 case $host_os in
9199 aix3*)
9200 cat <<\EOF >> "$cfgfile"
9201
9202# AIX sometimes has problems with the GCC collect2 program. For some
9203# reason, if we set the COLLECT_NAMES environment variable, the problems
9204# vanish in a puff of smoke.
9205if test "X${COLLECT_NAMES+set}" != Xset; then
9206 COLLECT_NAMES=
9207 export COLLECT_NAMES
9208fi
9209EOF
9210 ;;
9211 esac
9212
9213 # We use sed instead of cat because bash on DJGPP gets confused if
9214 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9215 # text mode, it properly converts lines to CR/LF. This bash problem
9216 # is reportedly fixed, but why not run on old versions too?
9217 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9218
9219 mv -f "$cfgfile" "$ofile" || \
9220 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9221 chmod +x "$ofile"
9222
9223else
9224 # If there is no Makefile yet, we rely on a make rule to execute
9225 # `config.status --recheck' to rerun these tests and create the
9226 # libtool script then.
9227 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9228 if test -f "$ltmain_in"; then
9229 test -f Makefile && make "$ltmain"
9230 fi
9231fi
9232
9233
9234ac_ext=c
9235ac_cpp='$CPP $CPPFLAGS'
9236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9238ac_compiler_gnu=$ac_cv_c_compiler_gnu
9239
9240CC="$lt_save_CC"
9241
9242
9243# Check whether --with-tags or --without-tags was given.
9244if test "${with_tags+set}" = set; then
9245 withval="$with_tags"
9246 tagnames="$withval"
9247fi;
9248
9249if test -f "$ltmain" && test -n "$tagnames"; then
9250 if test ! -f "${ofile}"; then
9251 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9252echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9253 fi
9254
9255 if test -z "$LTCC"; then
9256 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9257 if test -z "$LTCC"; then
9258 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9259echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9260 else
9261 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9262echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9263 fi
9264 fi
9265
9266 # Extract list of available tagged configurations in $ofile.
9267 # Note that this assumes the entire list is on one line.
9268 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9269
9270 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9271 for tagname in $tagnames; do
9272 IFS="$lt_save_ifs"
9273 # Check whether tagname contains only valid characters
9274 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9275 "") ;;
9276 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9277echo "$as_me: error: invalid tag name: $tagname" >&2;}
9278 { (exit 1); exit 1; }; }
9279 ;;
9280 esac
9281
9282 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9283 then
9284 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9285echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9286 { (exit 1); exit 1; }; }
9287 fi
9288
9289 # Update the list of available tags.
9290 if test -n "$tagname"; then
9291 echo appending configuration tag \"$tagname\" to $ofile
9292
9293 case $tagname in
9294 CXX)
brynerd5e66382006-09-08 02:35:53 +00009295 if test -n "$CXX" && test "X$CXX" != "Xno"; then
brynercb91a2f2006-08-25 21:14:45 +00009296 ac_ext=cc
9297ac_cpp='$CXXCPP $CPPFLAGS'
9298ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9299ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9300ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9301
9302
9303
9304
9305archive_cmds_need_lc_CXX=no
9306allow_undefined_flag_CXX=
9307always_export_symbols_CXX=no
9308archive_expsym_cmds_CXX=
9309export_dynamic_flag_spec_CXX=
9310hardcode_direct_CXX=no
9311hardcode_libdir_flag_spec_CXX=
9312hardcode_libdir_flag_spec_ld_CXX=
9313hardcode_libdir_separator_CXX=
9314hardcode_minus_L_CXX=no
9315hardcode_automatic_CXX=no
9316module_cmds_CXX=
9317module_expsym_cmds_CXX=
9318link_all_deplibs_CXX=unknown
9319old_archive_cmds_CXX=$old_archive_cmds
9320no_undefined_flag_CXX=
9321whole_archive_flag_spec_CXX=
9322enable_shared_with_static_runtimes_CXX=no
9323
9324# Dependencies to place before and after the object being linked:
9325predep_objects_CXX=
9326postdep_objects_CXX=
9327predeps_CXX=
9328postdeps_CXX=
9329compiler_lib_search_path_CXX=
9330
9331# Source file extension for C++ test sources.
brynerd5e66382006-09-08 02:35:53 +00009332ac_ext=cc
brynercb91a2f2006-08-25 21:14:45 +00009333
9334# Object file extension for compiled C++ test sources.
9335objext=o
9336objext_CXX=$objext
9337
9338# Code to be used in simple compile tests
9339lt_simple_compile_test_code="int some_variable = 0;\n"
9340
9341# Code to be used in simple link tests
brynerd5e66382006-09-08 02:35:53 +00009342lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
brynercb91a2f2006-08-25 21:14:45 +00009343
9344# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9345
9346# If no C compiler was specified, use CC.
9347LTCC=${LTCC-"$CC"}
9348
9349# Allow CC to be a program name with arguments.
9350compiler=$CC
9351
9352
9353# Allow CC to be a program name with arguments.
9354lt_save_CC=$CC
9355lt_save_LD=$LD
9356lt_save_GCC=$GCC
9357GCC=$GXX
9358lt_save_with_gnu_ld=$with_gnu_ld
9359lt_save_path_LD=$lt_cv_path_LD
9360if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9361 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9362else
brynerd5e66382006-09-08 02:35:53 +00009363 unset lt_cv_prog_gnu_ld
brynercb91a2f2006-08-25 21:14:45 +00009364fi
9365if test -n "${lt_cv_path_LDCXX+set}"; then
9366 lt_cv_path_LD=$lt_cv_path_LDCXX
9367else
brynerd5e66382006-09-08 02:35:53 +00009368 unset lt_cv_path_LD
brynercb91a2f2006-08-25 21:14:45 +00009369fi
9370test -z "${LDCXX+set}" || LD=$LDCXX
9371CC=${CXX-"c++"}
9372compiler=$CC
9373compiler_CXX=$CC
brynerd5e66382006-09-08 02:35:53 +00009374cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
brynercb91a2f2006-08-25 21:14:45 +00009375
9376# We don't want -fno-exception wen compiling C++ code, so set the
9377# no_builtin_flag separately
9378if test "$GXX" = yes; then
9379 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9380else
9381 lt_prog_compiler_no_builtin_flag_CXX=
9382fi
9383
9384if test "$GXX" = yes; then
9385 # Set up default GNU C++ configuration
9386
9387
9388# Check whether --with-gnu-ld or --without-gnu-ld was given.
9389if test "${with_gnu_ld+set}" = set; then
9390 withval="$with_gnu_ld"
9391 test "$withval" = no || with_gnu_ld=yes
9392else
9393 with_gnu_ld=no
9394fi;
9395ac_prog=ld
9396if test "$GCC" = yes; then
9397 # Check if gcc -print-prog-name=ld gives a path.
9398 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9399echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9400 case $host in
9401 *-*-mingw*)
9402 # gcc leaves a trailing carriage return which upsets mingw
9403 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9404 *)
9405 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9406 esac
9407 case $ac_prog in
9408 # Accept absolute paths.
9409 [\\/]* | ?:[\\/]*)
9410 re_direlt='/[^/][^/]*/\.\./'
9411 # Canonicalize the pathname of ld
9412 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9413 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9414 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9415 done
9416 test -z "$LD" && LD="$ac_prog"
9417 ;;
9418 "")
9419 # If it fails, then pretend we aren't using GCC.
9420 ac_prog=ld
9421 ;;
9422 *)
9423 # If it is relative, then search for the first ld in PATH.
9424 with_gnu_ld=unknown
9425 ;;
9426 esac
9427elif test "$with_gnu_ld" = yes; then
9428 echo "$as_me:$LINENO: checking for GNU ld" >&5
9429echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9430else
9431 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9432echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9433fi
9434if test "${lt_cv_path_LD+set}" = set; then
9435 echo $ECHO_N "(cached) $ECHO_C" >&6
9436else
9437 if test -z "$LD"; then
9438 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9439 for ac_dir in $PATH; do
9440 IFS="$lt_save_ifs"
9441 test -z "$ac_dir" && ac_dir=.
9442 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9443 lt_cv_path_LD="$ac_dir/$ac_prog"
9444 # Check to see if the program is GNU ld. I'd rather use --version,
brynerd5e66382006-09-08 02:35:53 +00009445 # but apparently some GNU ld's only accept -v.
brynercb91a2f2006-08-25 21:14:45 +00009446 # Break only if it was the GNU/non-GNU ld that we prefer.
9447 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9448 *GNU* | *'with BFD'*)
9449 test "$with_gnu_ld" != no && break
9450 ;;
9451 *)
9452 test "$with_gnu_ld" != yes && break
9453 ;;
9454 esac
9455 fi
9456 done
9457 IFS="$lt_save_ifs"
9458else
9459 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9460fi
9461fi
9462
9463LD="$lt_cv_path_LD"
9464if test -n "$LD"; then
9465 echo "$as_me:$LINENO: result: $LD" >&5
9466echo "${ECHO_T}$LD" >&6
9467else
9468 echo "$as_me:$LINENO: result: no" >&5
9469echo "${ECHO_T}no" >&6
9470fi
9471test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9472echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9473 { (exit 1); exit 1; }; }
9474echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9475echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9476if test "${lt_cv_prog_gnu_ld+set}" = set; then
9477 echo $ECHO_N "(cached) $ECHO_C" >&6
9478else
brynerd5e66382006-09-08 02:35:53 +00009479 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
brynercb91a2f2006-08-25 21:14:45 +00009480case `$LD -v 2>&1 </dev/null` in
9481*GNU* | *'with BFD'*)
9482 lt_cv_prog_gnu_ld=yes
9483 ;;
9484*)
9485 lt_cv_prog_gnu_ld=no
9486 ;;
9487esac
9488fi
9489echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9490echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9491with_gnu_ld=$lt_cv_prog_gnu_ld
9492
9493
9494
9495 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9496 # archiving commands below assume that GNU ld is being used.
9497 if test "$with_gnu_ld" = yes; then
9498 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9499 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'
9500
9501 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9502 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9503
9504 # If archive_cmds runs LD, not CC, wlarc should be empty
9505 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9506 # investigate it a little bit more. (MM)
9507 wlarc='${wl}'
9508
9509 # ancient GNU ld didn't support --whole-archive et. al.
9510 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9511 grep 'no-whole-archive' > /dev/null; then
9512 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9513 else
9514 whole_archive_flag_spec_CXX=
9515 fi
9516 else
9517 with_gnu_ld=no
9518 wlarc=
9519
9520 # A generic and very simple default shared library creation
9521 # command for GNU C++ for the case where it uses the native
9522 # linker, instead of GNU ld. If possible, this setting should
9523 # overridden to take advantage of the native linker features on
9524 # the platform it is being used on.
9525 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9526 fi
9527
9528 # Commands to make compiler produce verbose output that lists
9529 # what "hidden" libraries, object files and flags are used when
9530 # linking a shared library.
9531 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9532
9533else
9534 GXX=no
9535 with_gnu_ld=no
9536 wlarc=
9537fi
9538
9539# PORTME: fill in a description of your system's C++ link characteristics
9540echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9541echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9542ld_shlibs_CXX=yes
9543case $host_os in
9544 aix3*)
9545 # FIXME: insert proper C++ library support
9546 ld_shlibs_CXX=no
9547 ;;
9548 aix4* | aix5*)
9549 if test "$host_cpu" = ia64; then
9550 # On IA64, the linker does run time linking by default, so we don't
9551 # have to do anything special.
9552 aix_use_runtimelinking=no
9553 exp_sym_flag='-Bexport'
9554 no_entry_flag=""
9555 else
9556 aix_use_runtimelinking=no
9557
9558 # Test if we are trying to use run time linking or normal
9559 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9560 # need to do runtime linking.
9561 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9562 for ld_flag in $LDFLAGS; do
9563 case $ld_flag in
9564 *-brtl*)
9565 aix_use_runtimelinking=yes
9566 break
9567 ;;
9568 esac
9569 done
9570 esac
9571
9572 exp_sym_flag='-bexport'
9573 no_entry_flag='-bnoentry'
9574 fi
9575
9576 # When large executables or shared objects are built, AIX ld can
9577 # have problems creating the table of contents. If linking a library
9578 # or program results in "error TOC overflow" add -mminimal-toc to
9579 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9580 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9581
9582 archive_cmds_CXX=''
9583 hardcode_direct_CXX=yes
9584 hardcode_libdir_separator_CXX=':'
9585 link_all_deplibs_CXX=yes
9586
9587 if test "$GXX" = yes; then
brynerd5e66382006-09-08 02:35:53 +00009588 case $host_os in aix4.012|aix4.012.*)
brynercb91a2f2006-08-25 21:14:45 +00009589 # We only want to do this on AIX 4.2 and lower, the check
9590 # below for broken collect2 doesn't work under 4.3+
9591 collect2name=`${CC} -print-prog-name=collect2`
9592 if test -f "$collect2name" && \
9593 strings "$collect2name" | grep resolve_lib_name >/dev/null
9594 then
9595 # We have reworked collect2
9596 hardcode_direct_CXX=yes
9597 else
9598 # We have old collect2
9599 hardcode_direct_CXX=unsupported
9600 # It fails to find uninstalled libraries when the uninstalled
9601 # path is not listed in the libpath. Setting hardcode_minus_L
9602 # to unsupported forces relinking
9603 hardcode_minus_L_CXX=yes
9604 hardcode_libdir_flag_spec_CXX='-L$libdir'
9605 hardcode_libdir_separator_CXX=
9606 fi
9607 esac
9608 shared_flag='-shared'
9609 else
9610 # not using gcc
9611 if test "$host_cpu" = ia64; then
9612 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9613 # chokes on -Wl,-G. The following line is correct:
9614 shared_flag='-G'
9615 else
9616 if test "$aix_use_runtimelinking" = yes; then
9617 shared_flag='${wl}-G'
9618 else
9619 shared_flag='${wl}-bM:SRE'
9620 fi
9621 fi
9622 fi
9623
9624 # It seems that -bexpall does not export symbols beginning with
9625 # underscore (_), so it is better to generate a list of symbols to export.
9626 always_export_symbols_CXX=yes
9627 if test "$aix_use_runtimelinking" = yes; then
9628 # Warning - without using the other runtime loading flags (-brtl),
9629 # -berok will link without error, but may produce a broken library.
9630 allow_undefined_flag_CXX='-berok'
9631 # Determine the default libpath from the value encoded in an empty executable.
9632 cat >conftest.$ac_ext <<_ACEOF
9633/* confdefs.h. */
9634_ACEOF
9635cat confdefs.h >>conftest.$ac_ext
9636cat >>conftest.$ac_ext <<_ACEOF
9637/* end confdefs.h. */
9638
9639int
9640main ()
9641{
9642
9643 ;
9644 return 0;
9645}
9646_ACEOF
9647rm -f conftest.$ac_objext conftest$ac_exeext
9648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9649 (eval $ac_link) 2>conftest.er1
9650 ac_status=$?
9651 grep -v '^ *+' conftest.er1 >conftest.err
9652 rm -f conftest.er1
9653 cat conftest.err >&5
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); } &&
brynerd5e66382006-09-08 02:35:53 +00009656 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00009657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9658 (eval $ac_try) 2>&5
9659 ac_status=$?
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); }; } &&
9662 { ac_try='test -s conftest$ac_exeext'
9663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9664 (eval $ac_try) 2>&5
9665 ac_status=$?
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; }; then
9668
9669aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9670}'`
9671# Check for a 64-bit object if we didn't find anything.
9672if 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; }
9673}'`; fi
9674else
9675 echo "$as_me: failed program was:" >&5
9676sed 's/^/| /' conftest.$ac_ext >&5
9677
9678fi
9679rm -f conftest.err conftest.$ac_objext \
9680 conftest$ac_exeext conftest.$ac_ext
9681if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9682
9683 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9684
brynerd5e66382006-09-08 02:35:53 +00009685 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"
brynercb91a2f2006-08-25 21:14:45 +00009686 else
9687 if test "$host_cpu" = ia64; then
9688 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9689 allow_undefined_flag_CXX="-z nodefs"
brynerd5e66382006-09-08 02:35:53 +00009690 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"
brynercb91a2f2006-08-25 21:14:45 +00009691 else
9692 # Determine the default libpath from the value encoded in an empty executable.
9693 cat >conftest.$ac_ext <<_ACEOF
9694/* confdefs.h. */
9695_ACEOF
9696cat confdefs.h >>conftest.$ac_ext
9697cat >>conftest.$ac_ext <<_ACEOF
9698/* end confdefs.h. */
9699
9700int
9701main ()
9702{
9703
9704 ;
9705 return 0;
9706}
9707_ACEOF
9708rm -f conftest.$ac_objext conftest$ac_exeext
9709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9710 (eval $ac_link) 2>conftest.er1
9711 ac_status=$?
9712 grep -v '^ *+' conftest.er1 >conftest.err
9713 rm -f conftest.er1
9714 cat conftest.err >&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); } &&
brynerd5e66382006-09-08 02:35:53 +00009717 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00009718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9719 (eval $ac_try) 2>&5
9720 ac_status=$?
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); }; } &&
9723 { ac_try='test -s conftest$ac_exeext'
9724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725 (eval $ac_try) 2>&5
9726 ac_status=$?
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); }; }; then
9729
9730aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9731}'`
9732# Check for a 64-bit object if we didn't find anything.
9733if 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; }
9734}'`; fi
9735else
9736 echo "$as_me: failed program was:" >&5
9737sed 's/^/| /' conftest.$ac_ext >&5
9738
9739fi
9740rm -f conftest.err conftest.$ac_objext \
9741 conftest$ac_exeext conftest.$ac_ext
9742if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9743
9744 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9745 # Warning - without using the other run time loading flags,
9746 # -berok will link without error, but may produce a broken library.
9747 no_undefined_flag_CXX=' ${wl}-bernotok'
9748 allow_undefined_flag_CXX=' ${wl}-berok'
brynerd5e66382006-09-08 02:35:53 +00009749 # -bexpall does not export symbols beginning with underscore (_)
9750 always_export_symbols_CXX=yes
brynercb91a2f2006-08-25 21:14:45 +00009751 # Exported symbols can be pulled into shared objects from archives
brynerd5e66382006-09-08 02:35:53 +00009752 whole_archive_flag_spec_CXX=' '
brynercb91a2f2006-08-25 21:14:45 +00009753 archive_cmds_need_lc_CXX=yes
brynerd5e66382006-09-08 02:35:53 +00009754 # This is similar to how AIX traditionally builds it's shared libraries.
9755 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'
brynercb91a2f2006-08-25 21:14:45 +00009756 fi
9757 fi
9758 ;;
9759 chorus*)
9760 case $cc_basename in
9761 *)
9762 # FIXME: insert proper C++ library support
9763 ld_shlibs_CXX=no
9764 ;;
9765 esac
9766 ;;
9767
9768 cygwin* | mingw* | pw32*)
9769 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9770 # as there is no search path for DLLs.
9771 hardcode_libdir_flag_spec_CXX='-L$libdir'
9772 allow_undefined_flag_CXX=unsupported
9773 always_export_symbols_CXX=no
9774 enable_shared_with_static_runtimes_CXX=yes
9775
9776 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
brynerd5e66382006-09-08 02:35:53 +00009777 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'
brynercb91a2f2006-08-25 21:14:45 +00009778 # If the export-symbols file already is a .def file (1st line
9779 # is EXPORTS), use it as is; otherwise, prepend...
9780 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9781 cp $export_symbols $output_objdir/$soname.def;
9782 else
9783 echo EXPORTS > $output_objdir/$soname.def;
9784 cat $export_symbols >> $output_objdir/$soname.def;
9785 fi~
brynerd5e66382006-09-08 02:35:53 +00009786 $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'
brynercb91a2f2006-08-25 21:14:45 +00009787 else
9788 ld_shlibs_CXX=no
9789 fi
9790 ;;
bryner07f8ef52006-09-05 19:42:57 +00009791
brynerd5e66382006-09-08 02:35:53 +00009792 darwin* | rhapsody*)
9793 if test "$GXX" = yes; then
9794 archive_cmds_need_lc_CXX=no
9795 case "$host_os" in
9796 rhapsody* | darwin1.[012])
9797 allow_undefined_flag_CXX='-undefined suppress'
9798 ;;
9799 *) # Darwin 1.3 on
9800 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9801 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
mmentovai3261e8b2006-09-06 02:56:44 +00009802 else
brynerd5e66382006-09-08 02:35:53 +00009803 case ${MACOSX_DEPLOYMENT_TARGET} in
9804 10.[012])
9805 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9806 ;;
9807 10.*)
9808 allow_undefined_flag_CXX='-undefined dynamic_lookup'
9809 ;;
9810 esac
mmentovai3261e8b2006-09-06 02:56:44 +00009811 fi
brynerd5e66382006-09-08 02:35:53 +00009812 ;;
9813 esac
9814 lt_int_apple_cc_single_mod=no
9815 output_verbose_link_cmd='echo'
9816 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9817 lt_int_apple_cc_single_mod=yes
9818 fi
9819 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9820 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9821 else
9822 archive_cmds_CXX='$CC -r ${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'
9823 fi
9824 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9825
9826 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9827 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9828 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}'
9829 else
9830 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}'
9831 fi
9832 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}'
9833 hardcode_direct_CXX=no
9834 hardcode_automatic_CXX=yes
9835 hardcode_shlibpath_var_CXX=unsupported
9836 whole_archive_flag_spec_CXX='-all_load $convenience'
9837 link_all_deplibs_CXX=yes
9838 else
9839 ld_shlibs_CXX=no
9840 fi
9841 ;;
brynercb91a2f2006-08-25 21:14:45 +00009842
9843 dgux*)
9844 case $cc_basename in
brynerd5e66382006-09-08 02:35:53 +00009845 ec++)
brynercb91a2f2006-08-25 21:14:45 +00009846 # FIXME: insert proper C++ library support
9847 ld_shlibs_CXX=no
9848 ;;
brynerd5e66382006-09-08 02:35:53 +00009849 ghcx)
brynercb91a2f2006-08-25 21:14:45 +00009850 # Green Hills C++ Compiler
9851 # FIXME: insert proper C++ library support
9852 ld_shlibs_CXX=no
9853 ;;
9854 *)
9855 # FIXME: insert proper C++ library support
9856 ld_shlibs_CXX=no
9857 ;;
9858 esac
9859 ;;
brynerd5e66382006-09-08 02:35:53 +00009860 freebsd12*)
brynercb91a2f2006-08-25 21:14:45 +00009861 # C++ shared libraries reported to be fairly broken before switch to ELF
9862 ld_shlibs_CXX=no
9863 ;;
9864 freebsd-elf*)
9865 archive_cmds_need_lc_CXX=no
9866 ;;
brynerd5e66382006-09-08 02:35:53 +00009867 freebsd* | kfreebsd*-gnu)
brynercb91a2f2006-08-25 21:14:45 +00009868 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9869 # conventions
9870 ld_shlibs_CXX=yes
9871 ;;
9872 gnu*)
9873 ;;
9874 hpux9*)
9875 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9876 hardcode_libdir_separator_CXX=:
9877 export_dynamic_flag_spec_CXX='${wl}-E'
9878 hardcode_direct_CXX=yes
9879 hardcode_minus_L_CXX=yes # Not in the search PATH,
9880 # but as the default
9881 # location of the library.
9882
9883 case $cc_basename in
brynerd5e66382006-09-08 02:35:53 +00009884 CC)
brynercb91a2f2006-08-25 21:14:45 +00009885 # FIXME: insert proper C++ library support
9886 ld_shlibs_CXX=no
9887 ;;
brynerd5e66382006-09-08 02:35:53 +00009888 aCC)
brynercb91a2f2006-08-25 21:14:45 +00009889 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'
9890 # Commands to make compiler produce verbose output that lists
9891 # what "hidden" libraries, object files and flags are used when
9892 # linking a shared library.
9893 #
9894 # There doesn't appear to be a way to prevent this compiler from
9895 # explicitly linking system object files so we need to strip them
9896 # from the output so that they don't get included in the library
9897 # dependencies.
brynerd5e66382006-09-08 02:35:53 +00009898 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'
brynercb91a2f2006-08-25 21:14:45 +00009899 ;;
9900 *)
9901 if test "$GXX" = yes; then
9902 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'
9903 else
9904 # FIXME: insert proper C++ library support
9905 ld_shlibs_CXX=no
9906 fi
9907 ;;
9908 esac
9909 ;;
9910 hpux10*|hpux11*)
9911 if test $with_gnu_ld = no; then
brynerd5e66382006-09-08 02:35:53 +00009912 case "$host_cpu" in
9913 hppa*64*)
9914 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
brynercb91a2f2006-08-25 21:14:45 +00009915 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
brynerd5e66382006-09-08 02:35:53 +00009916 hardcode_libdir_separator_CXX=:
9917 ;;
9918 ia64*)
9919 hardcode_libdir_flag_spec_CXX='-L$libdir'
brynercb91a2f2006-08-25 21:14:45 +00009920 ;;
9921 *)
brynerd5e66382006-09-08 02:35:53 +00009922 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9923 hardcode_libdir_separator_CXX=:
brynercb91a2f2006-08-25 21:14:45 +00009924 export_dynamic_flag_spec_CXX='${wl}-E'
9925 ;;
9926 esac
9927 fi
brynerd5e66382006-09-08 02:35:53 +00009928 case "$host_cpu" in
9929 hppa*64*)
brynercb91a2f2006-08-25 21:14:45 +00009930 hardcode_direct_CXX=no
9931 hardcode_shlibpath_var_CXX=no
9932 ;;
brynerd5e66382006-09-08 02:35:53 +00009933 ia64*)
9934 hardcode_direct_CXX=no
9935 hardcode_shlibpath_var_CXX=no
9936 hardcode_minus_L_CXX=yes # Not in the search PATH,
9937 # but as the default
9938 # location of the library.
9939 ;;
brynercb91a2f2006-08-25 21:14:45 +00009940 *)
9941 hardcode_direct_CXX=yes
9942 hardcode_minus_L_CXX=yes # Not in the search PATH,
9943 # but as the default
9944 # location of the library.
9945 ;;
9946 esac
9947
9948 case $cc_basename in
brynerd5e66382006-09-08 02:35:53 +00009949 CC)
brynercb91a2f2006-08-25 21:14:45 +00009950 # FIXME: insert proper C++ library support
9951 ld_shlibs_CXX=no
9952 ;;
brynerd5e66382006-09-08 02:35:53 +00009953 aCC)
9954 case "$host_cpu" in
9955 hppa*64*|ia64*)
9956 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
brynercb91a2f2006-08-25 21:14:45 +00009957 ;;
9958 *)
9959 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9960 ;;
9961 esac
9962 # Commands to make compiler produce verbose output that lists
9963 # what "hidden" libraries, object files and flags are used when
9964 # linking a shared library.
9965 #
9966 # There doesn't appear to be a way to prevent this compiler from
9967 # explicitly linking system object files so we need to strip them
9968 # from the output so that they don't get included in the library
9969 # dependencies.
9970 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'
9971 ;;
9972 *)
9973 if test "$GXX" = yes; then
9974 if test $with_gnu_ld = no; then
brynerd5e66382006-09-08 02:35:53 +00009975 case "$host_cpu" in
9976 ia64*|hppa*64*)
9977 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
brynercb91a2f2006-08-25 21:14:45 +00009978 ;;
9979 *)
9980 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'
9981 ;;
9982 esac
9983 fi
9984 else
9985 # FIXME: insert proper C++ library support
9986 ld_shlibs_CXX=no
9987 fi
9988 ;;
9989 esac
9990 ;;
9991 irix5* | irix6*)
9992 case $cc_basename in
brynerd5e66382006-09-08 02:35:53 +00009993 CC)
brynercb91a2f2006-08-25 21:14:45 +00009994 # SGI C++
brynerd5e66382006-09-08 02:35:53 +00009995 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'
brynercb91a2f2006-08-25 21:14:45 +00009996
9997 # Archives containing C++ object files must be created using
9998 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9999 # necessary to make sure instantiated templates are included
10000 # in the archive.
10001 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10002 ;;
10003 *)
10004 if test "$GXX" = yes; then
10005 if test "$with_gnu_ld" = no; then
brynerd5e66382006-09-08 02:35:53 +000010006 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'
brynercb91a2f2006-08-25 21:14:45 +000010007 else
10008 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'
10009 fi
10010 fi
10011 link_all_deplibs_CXX=yes
10012 ;;
10013 esac
10014 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10015 hardcode_libdir_separator_CXX=:
10016 ;;
10017 linux*)
10018 case $cc_basename in
brynerd5e66382006-09-08 02:35:53 +000010019 KCC)
brynercb91a2f2006-08-25 21:14:45 +000010020 # Kuck and Associates, Inc. (KAI) C++ Compiler
10021
10022 # KCC will only create a shared library if the output file
10023 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10024 # to its proper name (with version) after linking.
10025 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'
10026 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'
10027 # Commands to make compiler produce verbose output that lists
10028 # what "hidden" libraries, object files and flags are used when
10029 # linking a shared library.
10030 #
10031 # There doesn't appear to be a way to prevent this compiler from
10032 # explicitly linking system object files so we need to strip them
10033 # from the output so that they don't get included in the library
10034 # dependencies.
10035 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'
10036
10037 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10038 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10039
10040 # Archives containing C++ object files must be created using
10041 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10042 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10043 ;;
brynerd5e66382006-09-08 02:35:53 +000010044 icpc)
brynercb91a2f2006-08-25 21:14:45 +000010045 # Intel C++
10046 with_gnu_ld=yes
10047 archive_cmds_need_lc_CXX=no
brynerd5e66382006-09-08 02:35:53 +000010048 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10049 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'
brynercb91a2f2006-08-25 21:14:45 +000010050 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10051 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10052 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10053 ;;
brynerd5e66382006-09-08 02:35:53 +000010054 cxx)
brynercb91a2f2006-08-25 21:14:45 +000010055 # Compaq C++
10056 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10057 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'
10058
10059 runpath_var=LD_RUN_PATH
10060 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10061 hardcode_libdir_separator_CXX=:
10062
10063 # Commands to make compiler produce verbose output that lists
10064 # what "hidden" libraries, object files and flags are used when
10065 # linking a shared library.
10066 #
10067 # There doesn't appear to be a way to prevent this compiler from
10068 # explicitly linking system object files so we need to strip them
10069 # from the output so that they don't get included in the library
10070 # dependencies.
10071 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'
10072 ;;
10073 esac
10074 ;;
10075 lynxos*)
10076 # FIXME: insert proper C++ library support
10077 ld_shlibs_CXX=no
10078 ;;
10079 m88k*)
10080 # FIXME: insert proper C++ library support
10081 ld_shlibs_CXX=no
10082 ;;
10083 mvs*)
10084 case $cc_basename in
brynerd5e66382006-09-08 02:35:53 +000010085 cxx)
brynercb91a2f2006-08-25 21:14:45 +000010086 # FIXME: insert proper C++ library support
10087 ld_shlibs_CXX=no
10088 ;;
10089 *)
10090 # FIXME: insert proper C++ library support
10091 ld_shlibs_CXX=no
10092 ;;
10093 esac
10094 ;;
brynerd5e66382006-09-08 02:35:53 +000010095 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000010096 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10097 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10098 wlarc=
10099 hardcode_libdir_flag_spec_CXX='-R$libdir'
10100 hardcode_direct_CXX=yes
10101 hardcode_shlibpath_var_CXX=no
10102 fi
10103 # Workaround some broken pre-1.5 toolchains
10104 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10105 ;;
10106 osf3*)
10107 case $cc_basename in
brynerd5e66382006-09-08 02:35:53 +000010108 KCC)
brynercb91a2f2006-08-25 21:14:45 +000010109 # Kuck and Associates, Inc. (KAI) C++ Compiler
10110
10111 # KCC will only create a shared library if the output file
10112 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10113 # to its proper name (with version) after linking.
10114 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'
10115
10116 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10117 hardcode_libdir_separator_CXX=:
10118
10119 # Archives containing C++ object files must be created using
10120 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10121 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10122
10123 ;;
brynerd5e66382006-09-08 02:35:53 +000010124 RCC)
brynercb91a2f2006-08-25 21:14:45 +000010125 # Rational C++ 2.4.1
10126 # FIXME: insert proper C++ library support
10127 ld_shlibs_CXX=no
10128 ;;
brynerd5e66382006-09-08 02:35:53 +000010129 cxx)
brynercb91a2f2006-08-25 21:14:45 +000010130 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
brynerd5e66382006-09-08 02:35:53 +000010131 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'
brynercb91a2f2006-08-25 21:14:45 +000010132
10133 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10134 hardcode_libdir_separator_CXX=:
10135
10136 # Commands to make compiler produce verbose output that lists
10137 # what "hidden" libraries, object files and flags are used when
10138 # linking a shared library.
10139 #
10140 # There doesn't appear to be a way to prevent this compiler from
10141 # explicitly linking system object files so we need to strip them
10142 # from the output so that they don't get included in the library
10143 # dependencies.
10144 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'
10145 ;;
10146 *)
10147 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10148 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
brynerd5e66382006-09-08 02:35:53 +000010149 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'
brynercb91a2f2006-08-25 21:14:45 +000010150
10151 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10152 hardcode_libdir_separator_CXX=:
10153
10154 # Commands to make compiler produce verbose output that lists
10155 # what "hidden" libraries, object files and flags are used when
10156 # linking a shared library.
10157 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10158
10159 else
10160 # FIXME: insert proper C++ library support
10161 ld_shlibs_CXX=no
10162 fi
10163 ;;
10164 esac
10165 ;;
10166 osf4* | osf5*)
10167 case $cc_basename in
brynerd5e66382006-09-08 02:35:53 +000010168 KCC)
brynercb91a2f2006-08-25 21:14:45 +000010169 # Kuck and Associates, Inc. (KAI) C++ Compiler
10170
10171 # KCC will only create a shared library if the output file
10172 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10173 # to its proper name (with version) after linking.
10174 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'
10175
10176 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10177 hardcode_libdir_separator_CXX=:
10178
10179 # Archives containing C++ object files must be created using
10180 # the KAI C++ compiler.
10181 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10182 ;;
brynerd5e66382006-09-08 02:35:53 +000010183 RCC)
brynercb91a2f2006-08-25 21:14:45 +000010184 # Rational C++ 2.4.1
10185 # FIXME: insert proper C++ library support
10186 ld_shlibs_CXX=no
10187 ;;
brynerd5e66382006-09-08 02:35:53 +000010188 cxx)
brynercb91a2f2006-08-25 21:14:45 +000010189 allow_undefined_flag_CXX=' -expect_unresolved \*'
brynerd5e66382006-09-08 02:35:53 +000010190 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'
brynercb91a2f2006-08-25 21:14:45 +000010191 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10192 echo "-hidden">> $lib.exp~
brynerd5e66382006-09-08 02:35:53 +000010193 $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~
brynercb91a2f2006-08-25 21:14:45 +000010194 $rm $lib.exp'
10195
10196 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10197 hardcode_libdir_separator_CXX=:
10198
10199 # Commands to make compiler produce verbose output that lists
10200 # what "hidden" libraries, object files and flags are used when
10201 # linking a shared library.
10202 #
10203 # There doesn't appear to be a way to prevent this compiler from
10204 # explicitly linking system object files so we need to strip them
10205 # from the output so that they don't get included in the library
10206 # dependencies.
10207 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'
10208 ;;
10209 *)
10210 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10211 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
brynerd5e66382006-09-08 02:35:53 +000010212 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'
brynercb91a2f2006-08-25 21:14:45 +000010213
10214 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10215 hardcode_libdir_separator_CXX=:
10216
10217 # Commands to make compiler produce verbose output that lists
10218 # what "hidden" libraries, object files and flags are used when
10219 # linking a shared library.
10220 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10221
10222 else
10223 # FIXME: insert proper C++ library support
10224 ld_shlibs_CXX=no
10225 fi
10226 ;;
10227 esac
10228 ;;
10229 psos*)
10230 # FIXME: insert proper C++ library support
10231 ld_shlibs_CXX=no
10232 ;;
brynerd5e66382006-09-08 02:35:53 +000010233 sco*)
10234 archive_cmds_need_lc_CXX=no
10235 case $cc_basename in
10236 CC)
10237 # FIXME: insert proper C++ library support
10238 ld_shlibs_CXX=no
10239 ;;
10240 *)
10241 # FIXME: insert proper C++ library support
10242 ld_shlibs_CXX=no
10243 ;;
10244 esac
10245 ;;
brynercb91a2f2006-08-25 21:14:45 +000010246 sunos4*)
10247 case $cc_basename in
brynerd5e66382006-09-08 02:35:53 +000010248 CC)
brynercb91a2f2006-08-25 21:14:45 +000010249 # Sun C++ 4.x
10250 # FIXME: insert proper C++ library support
10251 ld_shlibs_CXX=no
10252 ;;
brynerd5e66382006-09-08 02:35:53 +000010253 lcc)
brynercb91a2f2006-08-25 21:14:45 +000010254 # Lucid
10255 # FIXME: insert proper C++ library support
10256 ld_shlibs_CXX=no
10257 ;;
10258 *)
10259 # FIXME: insert proper C++ library support
10260 ld_shlibs_CXX=no
10261 ;;
10262 esac
10263 ;;
10264 solaris*)
10265 case $cc_basename in
brynerd5e66382006-09-08 02:35:53 +000010266 CC)
brynercb91a2f2006-08-25 21:14:45 +000010267 # Sun C++ 4.2, 5.x and Centerline C++
10268 no_undefined_flag_CXX=' -zdefs'
brynerd5e66382006-09-08 02:35:53 +000010269 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +000010270 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
brynerd5e66382006-09-08 02:35:53 +000010271 $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'
brynercb91a2f2006-08-25 21:14:45 +000010272
10273 hardcode_libdir_flag_spec_CXX='-R$libdir'
10274 hardcode_shlibpath_var_CXX=no
10275 case $host_os in
brynerd5e66382006-09-08 02:35:53 +000010276 solaris2.0-5 | solaris2.0-5.*) ;;
brynercb91a2f2006-08-25 21:14:45 +000010277 *)
10278 # The C++ compiler is used as linker so we must use $wl
10279 # flag to pass the commands to the underlying system
brynerd5e66382006-09-08 02:35:53 +000010280 # linker.
brynercb91a2f2006-08-25 21:14:45 +000010281 # Supported since Solaris 2.6 (maybe 2.5.1?)
brynerd5e66382006-09-08 02:35:53 +000010282 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
brynercb91a2f2006-08-25 21:14:45 +000010283 ;;
10284 esac
10285 link_all_deplibs_CXX=yes
10286
brynerd5e66382006-09-08 02:35:53 +000010287 # Commands to make compiler produce verbose output that lists
10288 # what "hidden" libraries, object files and flags are used when
10289 # linking a shared library.
10290 #
10291 # There doesn't appear to be a way to prevent this compiler from
10292 # explicitly linking system object files so we need to strip them
10293 # from the output so that they don't get included in the library
10294 # dependencies.
10295 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'
brynercb91a2f2006-08-25 21:14:45 +000010296
10297 # Archives containing C++ object files must be created using
10298 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10299 # necessary to make sure instantiated templates are included
10300 # in the archive.
10301 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10302 ;;
brynerd5e66382006-09-08 02:35:53 +000010303 gcx)
brynercb91a2f2006-08-25 21:14:45 +000010304 # Green Hills C++ Compiler
10305 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10306
10307 # The C++ compiler must be used to create the archive.
10308 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10309 ;;
10310 *)
10311 # GNU C++ compiler with Solaris linker
10312 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10313 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10314 if $CC --version | grep -v '^2\.7' > /dev/null; then
10315 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10316 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10317 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10318
10319 # Commands to make compiler produce verbose output that lists
10320 # what "hidden" libraries, object files and flags are used when
10321 # linking a shared library.
10322 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10323 else
10324 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10325 # platform.
10326 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10327 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10328 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10329
10330 # Commands to make compiler produce verbose output that lists
10331 # what "hidden" libraries, object files and flags are used when
10332 # linking a shared library.
10333 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10334 fi
10335
10336 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10337 fi
10338 ;;
10339 esac
10340 ;;
brynerd5e66382006-09-08 02:35:53 +000010341 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
brynercb91a2f2006-08-25 21:14:45 +000010342 archive_cmds_need_lc_CXX=no
10343 ;;
10344 tandem*)
10345 case $cc_basename in
brynerd5e66382006-09-08 02:35:53 +000010346 NCC)
brynercb91a2f2006-08-25 21:14:45 +000010347 # NonStop-UX NCC 3.20
10348 # FIXME: insert proper C++ library support
10349 ld_shlibs_CXX=no
10350 ;;
10351 *)
10352 # FIXME: insert proper C++ library support
10353 ld_shlibs_CXX=no
10354 ;;
10355 esac
10356 ;;
10357 vxworks*)
10358 # FIXME: insert proper C++ library support
10359 ld_shlibs_CXX=no
10360 ;;
10361 *)
10362 # FIXME: insert proper C++ library support
10363 ld_shlibs_CXX=no
10364 ;;
10365esac
10366echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10367echo "${ECHO_T}$ld_shlibs_CXX" >&6
10368test "$ld_shlibs_CXX" = no && can_build_shared=no
10369
10370GCC_CXX="$GXX"
10371LD_CXX="$LD"
10372
10373
10374cat > conftest.$ac_ext <<EOF
10375class Foo
10376{
10377public:
10378 Foo (void) { a = 0; }
10379private:
10380 int a;
10381};
10382EOF
10383
10384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10385 (eval $ac_compile) 2>&5
10386 ac_status=$?
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); }; then
10389 # Parse the compiler output and extract the necessary
10390 # objects, libraries and library flags.
10391
10392 # Sentinel used to keep track of whether or not we are before
10393 # the conftest object file.
10394 pre_test_object_deps_done=no
10395
10396 # The `*' in the case matches for architectures that use `case' in
10397 # $output_verbose_cmd can trigger glob expansion during the loop
10398 # eval without this substitution.
brynerd5e66382006-09-08 02:35:53 +000010399 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
brynercb91a2f2006-08-25 21:14:45 +000010400
10401 for p in `eval $output_verbose_link_cmd`; do
10402 case $p in
10403
10404 -L* | -R* | -l*)
10405 # Some compilers place space between "-{L,R}" and the path.
10406 # Remove the space.
10407 if test $p = "-L" \
10408 || test $p = "-R"; then
10409 prev=$p
10410 continue
10411 else
10412 prev=
10413 fi
10414
10415 if test "$pre_test_object_deps_done" = no; then
10416 case $p in
10417 -L* | -R*)
10418 # Internal compiler library paths should come after those
10419 # provided the user. The postdeps already come after the
10420 # user supplied libs so there is no need to process them.
10421 if test -z "$compiler_lib_search_path_CXX"; then
10422 compiler_lib_search_path_CXX="${prev}${p}"
10423 else
10424 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10425 fi
10426 ;;
10427 # The "-l" case would never come before the object being
10428 # linked, so don't bother handling this case.
10429 esac
10430 else
10431 if test -z "$postdeps_CXX"; then
10432 postdeps_CXX="${prev}${p}"
10433 else
10434 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10435 fi
10436 fi
10437 ;;
10438
10439 *.$objext)
10440 # This assumes that the test object file only shows up
10441 # once in the compiler output.
10442 if test "$p" = "conftest.$objext"; then
10443 pre_test_object_deps_done=yes
10444 continue
10445 fi
10446
10447 if test "$pre_test_object_deps_done" = no; then
10448 if test -z "$predep_objects_CXX"; then
10449 predep_objects_CXX="$p"
10450 else
10451 predep_objects_CXX="$predep_objects_CXX $p"
10452 fi
10453 else
10454 if test -z "$postdep_objects_CXX"; then
10455 postdep_objects_CXX="$p"
10456 else
10457 postdep_objects_CXX="$postdep_objects_CXX $p"
10458 fi
10459 fi
10460 ;;
10461
10462 *) ;; # Ignore the rest.
10463
10464 esac
10465 done
10466
10467 # Clean up.
10468 rm -f a.out a.exe
10469else
10470 echo "libtool.m4: error: problem compiling CXX test program"
10471fi
10472
10473$rm -f confest.$objext
10474
10475case " $postdeps_CXX " in
10476*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10477esac
10478
10479lt_prog_compiler_wl_CXX=
10480lt_prog_compiler_pic_CXX=
10481lt_prog_compiler_static_CXX=
10482
10483echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10484echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10485
10486 # C++ specific cases for pic, static, wl, etc.
10487 if test "$GXX" = yes; then
10488 lt_prog_compiler_wl_CXX='-Wl,'
10489 lt_prog_compiler_static_CXX='-static'
10490
10491 case $host_os in
10492 aix*)
10493 # All AIX code is PIC.
10494 if test "$host_cpu" = ia64; then
10495 # AIX 5 now supports IA64 processor
10496 lt_prog_compiler_static_CXX='-Bstatic'
10497 fi
10498 ;;
10499 amigaos*)
10500 # FIXME: we need at least 68020 code to build shared libraries, but
10501 # adding the `-m68020' flag to GCC prevents building anything better,
10502 # like `-m68040'.
10503 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10504 ;;
10505 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10506 # PIC is the default for these OSes.
10507 ;;
10508 mingw* | os2* | pw32*)
10509 # This hack is so that the source file can tell whether it is being
10510 # built for inclusion in a dll (and should export symbols for example).
10511 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10512 ;;
10513 darwin* | rhapsody*)
10514 # PIC is the default on this platform
10515 # Common symbols not allowed in MH_DYLIB files
10516 lt_prog_compiler_pic_CXX='-fno-common'
10517 ;;
10518 *djgpp*)
10519 # DJGPP does not support shared libraries at all
10520 lt_prog_compiler_pic_CXX=
10521 ;;
10522 sysv4*MP*)
10523 if test -d /usr/nec; then
10524 lt_prog_compiler_pic_CXX=-Kconform_pic
10525 fi
10526 ;;
10527 hpux*)
10528 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10529 # not for PA HP-UX.
brynerd5e66382006-09-08 02:35:53 +000010530 case "$host_cpu" in
brynercb91a2f2006-08-25 21:14:45 +000010531 hppa*64*|ia64*)
10532 ;;
10533 *)
10534 lt_prog_compiler_pic_CXX='-fPIC'
10535 ;;
10536 esac
10537 ;;
10538 *)
10539 lt_prog_compiler_pic_CXX='-fPIC'
10540 ;;
10541 esac
10542 else
10543 case $host_os in
10544 aix4* | aix5*)
10545 # All AIX code is PIC.
10546 if test "$host_cpu" = ia64; then
10547 # AIX 5 now supports IA64 processor
10548 lt_prog_compiler_static_CXX='-Bstatic'
10549 else
10550 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10551 fi
10552 ;;
10553 chorus*)
10554 case $cc_basename in
brynerd5e66382006-09-08 02:35:53 +000010555 cxch68)
brynercb91a2f2006-08-25 21:14:45 +000010556 # Green Hills C++ Compiler
10557 # _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"
10558 ;;
10559 esac
10560 ;;
10561 dgux*)
10562 case $cc_basename in
brynerd5e66382006-09-08 02:35:53 +000010563 ec++)
brynercb91a2f2006-08-25 21:14:45 +000010564 lt_prog_compiler_pic_CXX='-KPIC'
10565 ;;
brynerd5e66382006-09-08 02:35:53 +000010566 ghcx)
brynercb91a2f2006-08-25 21:14:45 +000010567 # Green Hills C++ Compiler
10568 lt_prog_compiler_pic_CXX='-pic'
10569 ;;
10570 *)
10571 ;;
10572 esac
10573 ;;
brynerd5e66382006-09-08 02:35:53 +000010574 freebsd* | kfreebsd*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000010575 # FreeBSD uses GNU C++
10576 ;;
10577 hpux9* | hpux10* | hpux11*)
10578 case $cc_basename in
brynerd5e66382006-09-08 02:35:53 +000010579 CC)
brynercb91a2f2006-08-25 21:14:45 +000010580 lt_prog_compiler_wl_CXX='-Wl,'
brynerd5e66382006-09-08 02:35:53 +000010581 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
brynercb91a2f2006-08-25 21:14:45 +000010582 if test "$host_cpu" != ia64; then
10583 lt_prog_compiler_pic_CXX='+Z'
10584 fi
10585 ;;
brynerd5e66382006-09-08 02:35:53 +000010586 aCC)
brynercb91a2f2006-08-25 21:14:45 +000010587 lt_prog_compiler_wl_CXX='-Wl,'
brynerd5e66382006-09-08 02:35:53 +000010588 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10589 case "$host_cpu" in
brynercb91a2f2006-08-25 21:14:45 +000010590 hppa*64*|ia64*)
10591 # +Z the default
10592 ;;
10593 *)
10594 lt_prog_compiler_pic_CXX='+Z'
10595 ;;
10596 esac
10597 ;;
10598 *)
10599 ;;
10600 esac
10601 ;;
10602 irix5* | irix6* | nonstopux*)
10603 case $cc_basename in
brynerd5e66382006-09-08 02:35:53 +000010604 CC)
brynercb91a2f2006-08-25 21:14:45 +000010605 lt_prog_compiler_wl_CXX='-Wl,'
10606 lt_prog_compiler_static_CXX='-non_shared'
10607 # CC pic flag -KPIC is the default.
10608 ;;
10609 *)
10610 ;;
10611 esac
10612 ;;
10613 linux*)
10614 case $cc_basename in
brynerd5e66382006-09-08 02:35:53 +000010615 KCC)
brynercb91a2f2006-08-25 21:14:45 +000010616 # KAI C++ Compiler
10617 lt_prog_compiler_wl_CXX='--backend -Wl,'
10618 lt_prog_compiler_pic_CXX='-fPIC'
10619 ;;
brynerd5e66382006-09-08 02:35:53 +000010620 icpc)
brynercb91a2f2006-08-25 21:14:45 +000010621 # Intel C++
10622 lt_prog_compiler_wl_CXX='-Wl,'
10623 lt_prog_compiler_pic_CXX='-KPIC'
10624 lt_prog_compiler_static_CXX='-static'
10625 ;;
brynerd5e66382006-09-08 02:35:53 +000010626 cxx)
brynercb91a2f2006-08-25 21:14:45 +000010627 # Compaq C++
10628 # Make sure the PIC flag is empty. It appears that all Alpha
10629 # Linux and Compaq Tru64 Unix objects are PIC.
10630 lt_prog_compiler_pic_CXX=
10631 lt_prog_compiler_static_CXX='-non_shared'
10632 ;;
10633 *)
10634 ;;
10635 esac
10636 ;;
10637 lynxos*)
10638 ;;
10639 m88k*)
10640 ;;
10641 mvs*)
10642 case $cc_basename in
brynerd5e66382006-09-08 02:35:53 +000010643 cxx)
brynercb91a2f2006-08-25 21:14:45 +000010644 lt_prog_compiler_pic_CXX='-W c,exportall'
10645 ;;
10646 *)
10647 ;;
10648 esac
10649 ;;
brynerd5e66382006-09-08 02:35:53 +000010650 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000010651 ;;
10652 osf3* | osf4* | osf5*)
10653 case $cc_basename in
brynerd5e66382006-09-08 02:35:53 +000010654 KCC)
brynercb91a2f2006-08-25 21:14:45 +000010655 lt_prog_compiler_wl_CXX='--backend -Wl,'
10656 ;;
brynerd5e66382006-09-08 02:35:53 +000010657 RCC)
brynercb91a2f2006-08-25 21:14:45 +000010658 # Rational C++ 2.4.1
10659 lt_prog_compiler_pic_CXX='-pic'
10660 ;;
brynerd5e66382006-09-08 02:35:53 +000010661 cxx)
brynercb91a2f2006-08-25 21:14:45 +000010662 # Digital/Compaq C++
10663 lt_prog_compiler_wl_CXX='-Wl,'
10664 # Make sure the PIC flag is empty. It appears that all Alpha
10665 # Linux and Compaq Tru64 Unix objects are PIC.
10666 lt_prog_compiler_pic_CXX=
10667 lt_prog_compiler_static_CXX='-non_shared'
10668 ;;
10669 *)
10670 ;;
10671 esac
10672 ;;
10673 psos*)
10674 ;;
brynerd5e66382006-09-08 02:35:53 +000010675 sco*)
10676 case $cc_basename in
10677 CC)
10678 lt_prog_compiler_pic_CXX='-fPIC'
10679 ;;
10680 *)
10681 ;;
10682 esac
10683 ;;
brynercb91a2f2006-08-25 21:14:45 +000010684 solaris*)
10685 case $cc_basename in
brynerd5e66382006-09-08 02:35:53 +000010686 CC)
brynercb91a2f2006-08-25 21:14:45 +000010687 # Sun C++ 4.2, 5.x and Centerline C++
10688 lt_prog_compiler_pic_CXX='-KPIC'
10689 lt_prog_compiler_static_CXX='-Bstatic'
10690 lt_prog_compiler_wl_CXX='-Qoption ld '
10691 ;;
brynerd5e66382006-09-08 02:35:53 +000010692 gcx)
brynercb91a2f2006-08-25 21:14:45 +000010693 # Green Hills C++ Compiler
10694 lt_prog_compiler_pic_CXX='-PIC'
10695 ;;
10696 *)
10697 ;;
10698 esac
10699 ;;
10700 sunos4*)
10701 case $cc_basename in
brynerd5e66382006-09-08 02:35:53 +000010702 CC)
brynercb91a2f2006-08-25 21:14:45 +000010703 # Sun C++ 4.x
10704 lt_prog_compiler_pic_CXX='-pic'
10705 lt_prog_compiler_static_CXX='-Bstatic'
10706 ;;
brynerd5e66382006-09-08 02:35:53 +000010707 lcc)
brynercb91a2f2006-08-25 21:14:45 +000010708 # Lucid
10709 lt_prog_compiler_pic_CXX='-pic'
10710 ;;
10711 *)
10712 ;;
10713 esac
10714 ;;
10715 tandem*)
10716 case $cc_basename in
brynerd5e66382006-09-08 02:35:53 +000010717 NCC)
brynercb91a2f2006-08-25 21:14:45 +000010718 # NonStop-UX NCC 3.20
10719 lt_prog_compiler_pic_CXX='-KPIC'
10720 ;;
10721 *)
10722 ;;
10723 esac
10724 ;;
brynerd5e66382006-09-08 02:35:53 +000010725 unixware*)
brynercb91a2f2006-08-25 21:14:45 +000010726 ;;
10727 vxworks*)
10728 ;;
10729 *)
10730 lt_prog_compiler_can_build_shared_CXX=no
10731 ;;
10732 esac
10733 fi
10734
10735echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10736echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10737
10738#
10739# Check to make sure the PIC flag actually works.
10740#
10741if test -n "$lt_prog_compiler_pic_CXX"; then
10742
10743echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10744echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10745if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10746 echo $ECHO_N "(cached) $ECHO_C" >&6
10747else
10748 lt_prog_compiler_pic_works_CXX=no
10749 ac_outfile=conftest.$ac_objext
10750 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10751 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10752 # Insert the option either (1) after the last *FLAGS variable, or
10753 # (2) before a word containing "conftest.", or (3) at the end.
10754 # Note that $ac_compile itself does not contain backslashes and begins
10755 # with a dollar sign (not a hyphen), so the echo should work correctly.
10756 # The option is referenced via a variable to avoid confusing sed.
10757 lt_compile=`echo "$ac_compile" | $SED \
brynerd5e66382006-09-08 02:35:53 +000010758 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000010759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10760 -e 's:$: $lt_compiler_flag:'`
brynerd5e66382006-09-08 02:35:53 +000010761 (eval echo "\"\$as_me:10761: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000010762 (eval "$lt_compile" 2>conftest.err)
10763 ac_status=$?
10764 cat conftest.err >&5
brynerd5e66382006-09-08 02:35:53 +000010765 echo "$as_me:10765: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000010766 if (exit $ac_status) && test -s "$ac_outfile"; then
10767 # The compiler can only warn and ignore the option if not recognized
brynerd5e66382006-09-08 02:35:53 +000010768 # So say no if there are warnings
10769 if test ! -s conftest.err; then
brynercb91a2f2006-08-25 21:14:45 +000010770 lt_prog_compiler_pic_works_CXX=yes
10771 fi
10772 fi
10773 $rm conftest*
10774
10775fi
10776echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10777echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10778
10779if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10780 case $lt_prog_compiler_pic_CXX in
10781 "" | " "*) ;;
10782 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10783 esac
10784else
10785 lt_prog_compiler_pic_CXX=
10786 lt_prog_compiler_can_build_shared_CXX=no
10787fi
10788
10789fi
brynerd5e66382006-09-08 02:35:53 +000010790case "$host_os" in
brynercb91a2f2006-08-25 21:14:45 +000010791 # For platforms which do not support PIC, -DPIC is meaningless:
10792 *djgpp*)
10793 lt_prog_compiler_pic_CXX=
10794 ;;
10795 *)
10796 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10797 ;;
10798esac
10799
10800echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10801echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10802if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10803 echo $ECHO_N "(cached) $ECHO_C" >&6
10804else
10805 lt_cv_prog_compiler_c_o_CXX=no
10806 $rm -r conftest 2>/dev/null
10807 mkdir conftest
10808 cd conftest
10809 mkdir out
10810 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10811
10812 lt_compiler_flag="-o out/conftest2.$ac_objext"
10813 # Insert the option either (1) after the last *FLAGS variable, or
10814 # (2) before a word containing "conftest.", or (3) at the end.
10815 # Note that $ac_compile itself does not contain backslashes and begins
10816 # with a dollar sign (not a hyphen), so the echo should work correctly.
10817 lt_compile=`echo "$ac_compile" | $SED \
brynerd5e66382006-09-08 02:35:53 +000010818 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000010819 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10820 -e 's:$: $lt_compiler_flag:'`
brynerd5e66382006-09-08 02:35:53 +000010821 (eval echo "\"\$as_me:10821: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000010822 (eval "$lt_compile" 2>out/conftest.err)
10823 ac_status=$?
10824 cat out/conftest.err >&5
brynerd5e66382006-09-08 02:35:53 +000010825 echo "$as_me:10825: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000010826 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10827 then
10828 # The compiler can only warn and ignore the option if not recognized
10829 # So say no if there are warnings
brynerd5e66382006-09-08 02:35:53 +000010830 if test ! -s out/conftest.err; then
brynercb91a2f2006-08-25 21:14:45 +000010831 lt_cv_prog_compiler_c_o_CXX=yes
10832 fi
10833 fi
brynerd5e66382006-09-08 02:35:53 +000010834 chmod u+w .
brynercb91a2f2006-08-25 21:14:45 +000010835 $rm conftest*
10836 # SGI C++ compiler will create directory out/ii_files/ for
10837 # template instantiation
10838 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10839 $rm out/* && rmdir out
10840 cd ..
10841 rmdir conftest
10842 $rm conftest*
10843
10844fi
10845echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10846echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10847
10848
10849hard_links="nottested"
10850if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10851 # do not overwrite the value of need_locks provided by the user
10852 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10853echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10854 hard_links=yes
10855 $rm conftest*
10856 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10857 touch conftest.a
10858 ln conftest.a conftest.b 2>&5 || hard_links=no
10859 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10860 echo "$as_me:$LINENO: result: $hard_links" >&5
10861echo "${ECHO_T}$hard_links" >&6
10862 if test "$hard_links" = no; then
10863 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10864echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10865 need_locks=warn
10866 fi
10867else
10868 need_locks=no
10869fi
10870
10871echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10872echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10873
10874 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10875 case $host_os in
10876 aix4* | aix5*)
10877 # If we're using GNU nm, then we don't want the "-C" option.
10878 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10879 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10880 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'
10881 else
10882 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'
10883 fi
10884 ;;
10885 pw32*)
10886 export_symbols_cmds_CXX="$ltdll_cmds"
10887 ;;
10888 cygwin* | mingw*)
brynerd5e66382006-09-08 02:35:53 +000010889 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10890 ;;
10891 linux*)
10892 link_all_deplibs_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000010893 ;;
10894 *)
10895 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10896 ;;
10897 esac
10898
10899echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10900echo "${ECHO_T}$ld_shlibs_CXX" >&6
10901test "$ld_shlibs_CXX" = no && can_build_shared=no
10902
brynerd5e66382006-09-08 02:35:53 +000010903variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10904if test "$GCC" = yes; then
10905 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10906fi
10907
brynercb91a2f2006-08-25 21:14:45 +000010908#
10909# Do we need to explicitly link libc?
10910#
10911case "x$archive_cmds_need_lc_CXX" in
10912x|xyes)
10913 # Assume -lc should be added
10914 archive_cmds_need_lc_CXX=yes
10915
10916 if test "$enable_shared" = yes && test "$GCC" = yes; then
10917 case $archive_cmds_CXX in
10918 *'~'*)
10919 # FIXME: we may have to deal with multi-command sequences.
10920 ;;
10921 '$CC '*)
10922 # Test whether the compiler implicitly links with -lc since on some
10923 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10924 # to ld, don't add -lc before -lgcc.
10925 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10926echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10927 $rm conftest*
10928 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10929
10930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10931 (eval $ac_compile) 2>&5
10932 ac_status=$?
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); } 2>conftest.err; then
10935 soname=conftest
10936 lib=conftest
10937 libobjs=conftest.$ac_objext
10938 deplibs=
10939 wl=$lt_prog_compiler_wl_CXX
10940 compiler_flags=-v
10941 linker_flags=-v
10942 verstring=
10943 output_objdir=.
10944 libname=conftest
10945 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10946 allow_undefined_flag_CXX=
10947 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10948 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10949 ac_status=$?
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }
10952 then
10953 archive_cmds_need_lc_CXX=no
10954 else
10955 archive_cmds_need_lc_CXX=yes
10956 fi
10957 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10958 else
10959 cat conftest.err 1>&5
10960 fi
10961 $rm conftest*
10962 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10963echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10964 ;;
10965 esac
10966 fi
10967 ;;
10968esac
10969
10970echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10971echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10972library_names_spec=
10973libname_spec='lib$name'
10974soname_spec=
10975shrext_cmds=".so"
10976postinstall_cmds=
10977postuninstall_cmds=
10978finish_cmds=
10979finish_eval=
10980shlibpath_var=
10981shlibpath_overrides_runpath=unknown
10982version_type=none
10983dynamic_linker="$host_os ld.so"
10984sys_lib_dlsearch_path_spec="/lib /usr/lib"
10985if test "$GCC" = yes; then
10986 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10987 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10988 # if the path contains ";" then we assume it to be the separator
10989 # otherwise default to the standard path separator (i.e. ":") - it is
10990 # assumed that no part of a normal pathname contains ";" but that should
10991 # okay in the real world where ";" in dirpaths is itself problematic.
10992 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10993 else
10994 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10995 fi
10996else
10997 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10998fi
10999need_lib_prefix=unknown
11000hardcode_into_libs=no
11001
11002# when you set need_version to no, make sure it does not cause -set_version
11003# flags to be left without arguments
11004need_version=unknown
11005
11006case $host_os in
11007aix3*)
11008 version_type=linux
11009 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11010 shlibpath_var=LIBPATH
11011
11012 # AIX 3 has no versioning support, so we append a major version to the name.
11013 soname_spec='${libname}${release}${shared_ext}$major'
11014 ;;
11015
11016aix4* | aix5*)
11017 version_type=linux
11018 need_lib_prefix=no
11019 need_version=no
11020 hardcode_into_libs=yes
11021 if test "$host_cpu" = ia64; then
11022 # AIX 5 supports IA64
11023 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11024 shlibpath_var=LD_LIBRARY_PATH
11025 else
11026 # With GCC up to 2.95.x, collect2 would create an import file
11027 # for dependence libraries. The import file would start with
11028 # the line `#! .'. This would cause the generated library to
11029 # depend on `.', always an invalid library. This was fixed in
11030 # development snapshots of GCC prior to 3.0.
11031 case $host_os in
11032 aix4 | aix4.[01] | aix4.[01].*)
11033 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11034 echo ' yes '
11035 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11036 :
11037 else
11038 can_build_shared=no
11039 fi
11040 ;;
11041 esac
11042 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11043 # soname into executable. Probably we can add versioning support to
11044 # collect2, so additional links can be useful in future.
11045 if test "$aix_use_runtimelinking" = yes; then
11046 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11047 # instead of lib<name>.a to let people know that these are not
11048 # typical AIX shared libraries.
11049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11050 else
11051 # We preserve .a as extension for shared libraries through AIX4.2
11052 # and later when we are not doing run time linking.
11053 library_names_spec='${libname}${release}.a $libname.a'
11054 soname_spec='${libname}${release}${shared_ext}$major'
11055 fi
11056 shlibpath_var=LIBPATH
11057 fi
11058 ;;
11059
11060amigaos*)
11061 library_names_spec='$libname.ixlibrary $libname.a'
11062 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11063 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'
11064 ;;
11065
11066beos*)
11067 library_names_spec='${libname}${shared_ext}'
11068 dynamic_linker="$host_os ld.so"
11069 shlibpath_var=LIBRARY_PATH
11070 ;;
11071
brynerd5e66382006-09-08 02:35:53 +000011072bsdi4*)
brynercb91a2f2006-08-25 21:14:45 +000011073 version_type=linux
11074 need_version=no
11075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11076 soname_spec='${libname}${release}${shared_ext}$major'
11077 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11078 shlibpath_var=LD_LIBRARY_PATH
11079 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11080 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11081 # the default ld.so.conf also contains /usr/contrib/lib and
11082 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11083 # libtool to hard-code these into programs
11084 ;;
11085
11086cygwin* | mingw* | pw32*)
11087 version_type=windows
11088 shrext_cmds=".dll"
11089 need_version=no
11090 need_lib_prefix=no
11091
11092 case $GCC,$host_os in
11093 yes,cygwin* | yes,mingw* | yes,pw32*)
11094 library_names_spec='$libname.dll.a'
11095 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11096 postinstall_cmds='base_file=`basename \${file}`~
11097 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11098 dldir=$destdir/`dirname \$dlpath`~
11099 test -d \$dldir || mkdir -p \$dldir~
brynerd5e66382006-09-08 02:35:53 +000011100 $install_prog $dir/$dlname \$dldir/$dlname'
brynercb91a2f2006-08-25 21:14:45 +000011101 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11102 dlpath=$dir/\$dldll~
11103 $rm \$dlpath'
11104 shlibpath_overrides_runpath=yes
11105
11106 case $host_os in
11107 cygwin*)
11108 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11109 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11110 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11111 ;;
11112 mingw*)
11113 # MinGW DLLs use traditional 'lib' prefix
11114 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11115 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11116 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11117 # It is most probably a Windows format PATH printed by
11118 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11119 # path with ; separators, and with drive letters. We can handle the
11120 # drive letters (cygwin fileutils understands them), so leave them,
11121 # especially as we might pass files found there to a mingw objdump,
11122 # which wouldn't understand a cygwinified path. Ahh.
11123 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11124 else
11125 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11126 fi
11127 ;;
11128 pw32*)
11129 # pw32 DLLs use 'pw' prefix rather than 'lib'
brynerd5e66382006-09-08 02:35:53 +000011130 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
brynercb91a2f2006-08-25 21:14:45 +000011131 ;;
11132 esac
11133 ;;
11134
11135 *)
11136 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11137 ;;
11138 esac
11139 dynamic_linker='Win32 ld.exe'
11140 # FIXME: first we should search . and the directory the executable is in
11141 shlibpath_var=PATH
11142 ;;
11143
11144darwin* | rhapsody*)
11145 dynamic_linker="$host_os dyld"
11146 version_type=darwin
11147 need_lib_prefix=no
11148 need_version=no
11149 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11150 soname_spec='${libname}${release}${major}$shared_ext'
11151 shlibpath_overrides_runpath=yes
11152 shlibpath_var=DYLD_LIBRARY_PATH
brynerd5e66382006-09-08 02:35:53 +000011153 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
brynercb91a2f2006-08-25 21:14:45 +000011154 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11155 if test "$GCC" = yes; then
11156 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"`
11157 else
11158 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11159 fi
11160 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11161 ;;
11162
11163dgux*)
11164 version_type=linux
11165 need_lib_prefix=no
11166 need_version=no
11167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11168 soname_spec='${libname}${release}${shared_ext}$major'
11169 shlibpath_var=LD_LIBRARY_PATH
11170 ;;
11171
11172freebsd1*)
11173 dynamic_linker=no
11174 ;;
11175
11176kfreebsd*-gnu)
11177 version_type=linux
11178 need_lib_prefix=no
11179 need_version=no
11180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11181 soname_spec='${libname}${release}${shared_ext}$major'
11182 shlibpath_var=LD_LIBRARY_PATH
11183 shlibpath_overrides_runpath=no
11184 hardcode_into_libs=yes
11185 dynamic_linker='GNU ld.so'
11186 ;;
11187
brynerd5e66382006-09-08 02:35:53 +000011188freebsd*)
11189 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
brynercb91a2f2006-08-25 21:14:45 +000011190 version_type=freebsd-$objformat
11191 case $version_type in
11192 freebsd-elf*)
11193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11194 need_version=no
11195 need_lib_prefix=no
11196 ;;
11197 freebsd-*)
11198 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11199 need_version=yes
11200 ;;
11201 esac
11202 shlibpath_var=LD_LIBRARY_PATH
11203 case $host_os in
11204 freebsd2*)
11205 shlibpath_overrides_runpath=yes
11206 ;;
brynerd5e66382006-09-08 02:35:53 +000011207 freebsd3.01* | freebsdelf3.01*)
brynercb91a2f2006-08-25 21:14:45 +000011208 shlibpath_overrides_runpath=yes
11209 hardcode_into_libs=yes
11210 ;;
brynerd5e66382006-09-08 02:35:53 +000011211 *) # from 3.2 on
brynercb91a2f2006-08-25 21:14:45 +000011212 shlibpath_overrides_runpath=no
11213 hardcode_into_libs=yes
11214 ;;
11215 esac
11216 ;;
11217
11218gnu*)
11219 version_type=linux
11220 need_lib_prefix=no
11221 need_version=no
11222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11223 soname_spec='${libname}${release}${shared_ext}$major'
11224 shlibpath_var=LD_LIBRARY_PATH
11225 hardcode_into_libs=yes
11226 ;;
11227
11228hpux9* | hpux10* | hpux11*)
11229 # Give a soname corresponding to the major version so that dld.sl refuses to
11230 # link against other versions.
11231 version_type=sunos
11232 need_lib_prefix=no
11233 need_version=no
brynerd5e66382006-09-08 02:35:53 +000011234 case "$host_cpu" in
brynercb91a2f2006-08-25 21:14:45 +000011235 ia64*)
11236 shrext_cmds='.so'
11237 hardcode_into_libs=yes
11238 dynamic_linker="$host_os dld.so"
11239 shlibpath_var=LD_LIBRARY_PATH
11240 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11242 soname_spec='${libname}${release}${shared_ext}$major'
11243 if test "X$HPUX_IA64_MODE" = X32; then
11244 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11245 else
11246 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11247 fi
11248 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11249 ;;
11250 hppa*64*)
11251 shrext_cmds='.sl'
11252 hardcode_into_libs=yes
11253 dynamic_linker="$host_os dld.sl"
11254 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11255 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11257 soname_spec='${libname}${release}${shared_ext}$major'
11258 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11259 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11260 ;;
11261 *)
11262 shrext_cmds='.sl'
11263 dynamic_linker="$host_os dld.sl"
11264 shlibpath_var=SHLIB_PATH
11265 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11267 soname_spec='${libname}${release}${shared_ext}$major'
11268 ;;
11269 esac
11270 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11271 postinstall_cmds='chmod 555 $lib'
11272 ;;
11273
11274irix5* | irix6* | nonstopux*)
11275 case $host_os in
11276 nonstopux*) version_type=nonstopux ;;
11277 *)
11278 if test "$lt_cv_prog_gnu_ld" = yes; then
11279 version_type=linux
11280 else
11281 version_type=irix
11282 fi ;;
11283 esac
11284 need_lib_prefix=no
11285 need_version=no
11286 soname_spec='${libname}${release}${shared_ext}$major'
11287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11288 case $host_os in
11289 irix5* | nonstopux*)
11290 libsuff= shlibsuff=
11291 ;;
11292 *)
11293 case $LD in # libtool.m4 will add one of these switches to LD
11294 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11295 libsuff= shlibsuff= libmagic=32-bit;;
11296 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11297 libsuff=32 shlibsuff=N32 libmagic=N32;;
11298 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11299 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11300 *) libsuff= shlibsuff= libmagic=never-match;;
11301 esac
11302 ;;
11303 esac
11304 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11305 shlibpath_overrides_runpath=no
11306 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11307 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11308 hardcode_into_libs=yes
11309 ;;
11310
11311# No shared lib support for Linux oldld, aout, or coff.
11312linux*oldld* | linux*aout* | linux*coff*)
11313 dynamic_linker=no
11314 ;;
11315
11316# This must be Linux ELF.
11317linux*)
11318 version_type=linux
11319 need_lib_prefix=no
11320 need_version=no
11321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11322 soname_spec='${libname}${release}${shared_ext}$major'
11323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11324 shlibpath_var=LD_LIBRARY_PATH
11325 shlibpath_overrides_runpath=no
11326 # This implies no fast_install, which is unacceptable.
11327 # Some rework will be needed to allow for fast_install
11328 # before this can be enabled.
11329 hardcode_into_libs=yes
11330
11331 # Append ld.so.conf contents to the search path
11332 if test -f /etc/ld.so.conf; then
brynerd5e66382006-09-08 02:35:53 +000011333 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
brynercb91a2f2006-08-25 21:14:45 +000011334 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11335 fi
11336
11337 # We used to test for /lib/ld.so.1 and disable shared libraries on
11338 # powerpc, because MkLinux only supported shared libraries with the
11339 # GNU dynamic linker. Since this was broken with cross compilers,
11340 # most powerpc-linux boxes support dynamic linking these days and
11341 # people can always --disable-shared, the test was removed, and we
11342 # assume the GNU/Linux dynamic linker is in use.
11343 dynamic_linker='GNU/Linux ld.so'
11344 ;;
11345
brynerd5e66382006-09-08 02:35:53 +000011346netbsdelf*-gnu)
11347 version_type=linux
11348 need_lib_prefix=no
11349 need_version=no
11350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11351 soname_spec='${libname}${release}${shared_ext}$major'
11352 shlibpath_var=LD_LIBRARY_PATH
11353 shlibpath_overrides_runpath=no
11354 hardcode_into_libs=yes
11355 dynamic_linker='NetBSD ld.elf_so'
11356 ;;
11357
brynercb91a2f2006-08-25 21:14:45 +000011358knetbsd*-gnu)
11359 version_type=linux
11360 need_lib_prefix=no
11361 need_version=no
11362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11363 soname_spec='${libname}${release}${shared_ext}$major'
11364 shlibpath_var=LD_LIBRARY_PATH
11365 shlibpath_overrides_runpath=no
11366 hardcode_into_libs=yes
11367 dynamic_linker='GNU ld.so'
11368 ;;
11369
11370netbsd*)
11371 version_type=sunos
11372 need_lib_prefix=no
11373 need_version=no
11374 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11377 dynamic_linker='NetBSD (a.out) ld.so'
11378 else
11379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11380 soname_spec='${libname}${release}${shared_ext}$major'
11381 dynamic_linker='NetBSD ld.elf_so'
11382 fi
11383 shlibpath_var=LD_LIBRARY_PATH
11384 shlibpath_overrides_runpath=yes
11385 hardcode_into_libs=yes
11386 ;;
11387
11388newsos6)
11389 version_type=linux
11390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11391 shlibpath_var=LD_LIBRARY_PATH
11392 shlibpath_overrides_runpath=yes
11393 ;;
11394
11395nto-qnx*)
11396 version_type=linux
11397 need_lib_prefix=no
11398 need_version=no
11399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11400 soname_spec='${libname}${release}${shared_ext}$major'
11401 shlibpath_var=LD_LIBRARY_PATH
11402 shlibpath_overrides_runpath=yes
11403 ;;
11404
11405openbsd*)
11406 version_type=sunos
11407 need_lib_prefix=no
brynerd5e66382006-09-08 02:35:53 +000011408 need_version=yes
brynercb91a2f2006-08-25 21:14:45 +000011409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11411 shlibpath_var=LD_LIBRARY_PATH
11412 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11413 case $host_os in
11414 openbsd2.[89] | openbsd2.[89].*)
11415 shlibpath_overrides_runpath=no
11416 ;;
11417 *)
11418 shlibpath_overrides_runpath=yes
11419 ;;
11420 esac
11421 else
11422 shlibpath_overrides_runpath=yes
11423 fi
11424 ;;
11425
11426os2*)
11427 libname_spec='$name'
11428 shrext_cmds=".dll"
11429 need_lib_prefix=no
11430 library_names_spec='$libname${shared_ext} $libname.a'
11431 dynamic_linker='OS/2 ld.exe'
11432 shlibpath_var=LIBPATH
11433 ;;
11434
11435osf3* | osf4* | osf5*)
11436 version_type=osf
11437 need_lib_prefix=no
11438 need_version=no
11439 soname_spec='${libname}${release}${shared_ext}$major'
11440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11441 shlibpath_var=LD_LIBRARY_PATH
11442 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11443 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11444 ;;
11445
brynerd5e66382006-09-08 02:35:53 +000011446sco3.2v5*)
11447 version_type=osf
11448 soname_spec='${libname}${release}${shared_ext}$major'
11449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11450 shlibpath_var=LD_LIBRARY_PATH
11451 ;;
11452
brynercb91a2f2006-08-25 21:14:45 +000011453solaris*)
11454 version_type=linux
11455 need_lib_prefix=no
11456 need_version=no
11457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11458 soname_spec='${libname}${release}${shared_ext}$major'
11459 shlibpath_var=LD_LIBRARY_PATH
11460 shlibpath_overrides_runpath=yes
11461 hardcode_into_libs=yes
11462 # ldd complains unless libraries are executable
11463 postinstall_cmds='chmod +x $lib'
11464 ;;
11465
11466sunos4*)
11467 version_type=sunos
11468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11469 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11470 shlibpath_var=LD_LIBRARY_PATH
11471 shlibpath_overrides_runpath=yes
11472 if test "$with_gnu_ld" = yes; then
11473 need_lib_prefix=no
11474 fi
11475 need_version=yes
11476 ;;
11477
brynerd5e66382006-09-08 02:35:53 +000011478sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
brynercb91a2f2006-08-25 21:14:45 +000011479 version_type=linux
11480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11481 soname_spec='${libname}${release}${shared_ext}$major'
11482 shlibpath_var=LD_LIBRARY_PATH
11483 case $host_vendor in
11484 sni)
11485 shlibpath_overrides_runpath=no
11486 need_lib_prefix=no
11487 export_dynamic_flag_spec='${wl}-Blargedynsym'
11488 runpath_var=LD_RUN_PATH
11489 ;;
11490 siemens)
11491 need_lib_prefix=no
11492 ;;
11493 motorola)
11494 need_lib_prefix=no
11495 need_version=no
11496 shlibpath_overrides_runpath=no
11497 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11498 ;;
11499 esac
11500 ;;
11501
11502sysv4*MP*)
11503 if test -d /usr/nec ;then
11504 version_type=linux
11505 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11506 soname_spec='$libname${shared_ext}.$major'
11507 shlibpath_var=LD_LIBRARY_PATH
11508 fi
11509 ;;
11510
11511uts4*)
11512 version_type=linux
11513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11514 soname_spec='${libname}${release}${shared_ext}$major'
11515 shlibpath_var=LD_LIBRARY_PATH
11516 ;;
11517
11518*)
11519 dynamic_linker=no
11520 ;;
11521esac
11522echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11523echo "${ECHO_T}$dynamic_linker" >&6
11524test "$dynamic_linker" = no && can_build_shared=no
11525
11526echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11527echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11528hardcode_action_CXX=
11529if test -n "$hardcode_libdir_flag_spec_CXX" || \
brynerd5e66382006-09-08 02:35:53 +000011530 test -n "$runpath_var CXX" || \
11531 test "X$hardcode_automatic_CXX"="Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +000011532
11533 # We can hardcode non-existant directories.
11534 if test "$hardcode_direct_CXX" != no &&
11535 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11536 # have to relink, otherwise we might link with an installed library
11537 # when we should be linking with a yet-to-be-installed one
11538 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11539 test "$hardcode_minus_L_CXX" != no; then
11540 # Linking always hardcodes the temporary library directory.
11541 hardcode_action_CXX=relink
11542 else
11543 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11544 hardcode_action_CXX=immediate
11545 fi
11546else
11547 # We cannot hardcode anything, or else we can only hardcode existing
11548 # directories.
11549 hardcode_action_CXX=unsupported
11550fi
11551echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11552echo "${ECHO_T}$hardcode_action_CXX" >&6
11553
11554if test "$hardcode_action_CXX" = relink; then
11555 # Fast installation is not supported
11556 enable_fast_install=no
11557elif test "$shlibpath_overrides_runpath" = yes ||
11558 test "$enable_shared" = no; then
11559 # Fast installation is not necessary
11560 enable_fast_install=needless
11561fi
11562
brynerd5e66382006-09-08 02:35:53 +000011563striplib=
11564old_striplib=
11565echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11566echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11567if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11568 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11569 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11570 echo "$as_me:$LINENO: result: yes" >&5
11571echo "${ECHO_T}yes" >&6
11572else
11573# FIXME - insert some real tests, host_os isn't really good enough
11574 case $host_os in
11575 darwin*)
11576 if test -n "$STRIP" ; then
11577 striplib="$STRIP -x"
11578 echo "$as_me:$LINENO: result: yes" >&5
11579echo "${ECHO_T}yes" >&6
11580 else
11581 echo "$as_me:$LINENO: result: no" >&5
11582echo "${ECHO_T}no" >&6
11583fi
11584 ;;
11585 *)
11586 echo "$as_me:$LINENO: result: no" >&5
11587echo "${ECHO_T}no" >&6
11588 ;;
11589 esac
11590fi
11591
11592if test "x$enable_dlopen" != xyes; then
11593 enable_dlopen=unknown
11594 enable_dlopen_self=unknown
11595 enable_dlopen_self_static=unknown
11596else
11597 lt_cv_dlopen=no
11598 lt_cv_dlopen_libs=
11599
11600 case $host_os in
11601 beos*)
11602 lt_cv_dlopen="load_add_on"
11603 lt_cv_dlopen_libs=
11604 lt_cv_dlopen_self=yes
11605 ;;
11606
11607 mingw* | pw32*)
11608 lt_cv_dlopen="LoadLibrary"
11609 lt_cv_dlopen_libs=
11610 ;;
11611
11612 cygwin*)
11613 lt_cv_dlopen="dlopen"
11614 lt_cv_dlopen_libs=
11615 ;;
11616
11617 darwin*)
11618 # if libdl is installed we need to link against it
11619 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11620echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11621if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11622 echo $ECHO_N "(cached) $ECHO_C" >&6
11623else
11624 ac_check_lib_save_LIBS=$LIBS
11625LIBS="-ldl $LIBS"
11626cat >conftest.$ac_ext <<_ACEOF
11627/* confdefs.h. */
11628_ACEOF
11629cat confdefs.h >>conftest.$ac_ext
11630cat >>conftest.$ac_ext <<_ACEOF
11631/* end confdefs.h. */
11632
11633/* Override any gcc2 internal prototype to avoid an error. */
11634#ifdef __cplusplus
11635extern "C"
11636#endif
11637/* We use char because int might match the return type of a gcc2
11638 builtin and then its argument prototype would still apply. */
11639char dlopen ();
11640int
11641main ()
11642{
11643dlopen ();
11644 ;
11645 return 0;
11646}
11647_ACEOF
11648rm -f conftest.$ac_objext conftest$ac_exeext
11649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11650 (eval $ac_link) 2>conftest.er1
11651 ac_status=$?
11652 grep -v '^ *+' conftest.er1 >conftest.err
11653 rm -f conftest.er1
11654 cat conftest.err >&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); } &&
11657 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11658 { (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_dl_dlopen=yes
11670else
11671 echo "$as_me: failed program was:" >&5
11672sed 's/^/| /' conftest.$ac_ext >&5
11673
11674ac_cv_lib_dl_dlopen=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_dl_dlopen" >&5
11681echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11682if test $ac_cv_lib_dl_dlopen = yes; then
11683 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11684else
11685
11686 lt_cv_dlopen="dyld"
11687 lt_cv_dlopen_libs=
11688 lt_cv_dlopen_self=yes
11689
11690fi
11691
11692 ;;
11693
11694 *)
11695 echo "$as_me:$LINENO: checking for shl_load" >&5
11696echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11697if test "${ac_cv_func_shl_load+set}" = set; then
11698 echo $ECHO_N "(cached) $ECHO_C" >&6
11699else
11700 cat >conftest.$ac_ext <<_ACEOF
11701/* confdefs.h. */
11702_ACEOF
11703cat confdefs.h >>conftest.$ac_ext
11704cat >>conftest.$ac_ext <<_ACEOF
11705/* end confdefs.h. */
11706/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11708#define shl_load innocuous_shl_load
11709
11710/* System header to define __stub macros and hopefully few prototypes,
11711 which can conflict with char shl_load (); below.
11712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11713 <limits.h> exists even on freestanding compilers. */
11714
11715#ifdef __STDC__
11716# include <limits.h>
11717#else
11718# include <assert.h>
11719#endif
11720
11721#undef shl_load
11722
11723/* Override any gcc2 internal prototype to avoid an error. */
11724#ifdef __cplusplus
11725extern "C"
11726{
11727#endif
11728/* We use char because int might match the return type of a gcc2
11729 builtin and then its argument prototype would still apply. */
11730char shl_load ();
11731/* The GNU C library defines this for functions which it implements
11732 to always fail with ENOSYS. Some functions are actually named
11733 something starting with __ and the normal name is an alias. */
11734#if defined (__stub_shl_load) || defined (__stub___shl_load)
11735choke me
11736#else
11737char (*f) () = shl_load;
11738#endif
11739#ifdef __cplusplus
11740}
11741#endif
11742
11743int
11744main ()
11745{
11746return f != shl_load;
11747 ;
11748 return 0;
11749}
11750_ACEOF
11751rm -f conftest.$ac_objext conftest$ac_exeext
11752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11753 (eval $ac_link) 2>conftest.er1
11754 ac_status=$?
11755 grep -v '^ *+' conftest.er1 >conftest.err
11756 rm -f conftest.er1
11757 cat conftest.err >&5
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); } &&
11760 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762 (eval $ac_try) 2>&5
11763 ac_status=$?
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); }; } &&
11766 { ac_try='test -s conftest$ac_exeext'
11767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11768 (eval $ac_try) 2>&5
11769 ac_status=$?
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); }; }; then
11772 ac_cv_func_shl_load=yes
11773else
11774 echo "$as_me: failed program was:" >&5
11775sed 's/^/| /' conftest.$ac_ext >&5
11776
11777ac_cv_func_shl_load=no
11778fi
11779rm -f conftest.err conftest.$ac_objext \
11780 conftest$ac_exeext conftest.$ac_ext
11781fi
11782echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11783echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11784if test $ac_cv_func_shl_load = yes; then
11785 lt_cv_dlopen="shl_load"
11786else
11787 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11788echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11789if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11790 echo $ECHO_N "(cached) $ECHO_C" >&6
11791else
11792 ac_check_lib_save_LIBS=$LIBS
11793LIBS="-ldld $LIBS"
11794cat >conftest.$ac_ext <<_ACEOF
11795/* confdefs.h. */
11796_ACEOF
11797cat confdefs.h >>conftest.$ac_ext
11798cat >>conftest.$ac_ext <<_ACEOF
11799/* end confdefs.h. */
11800
11801/* Override any gcc2 internal prototype to avoid an error. */
11802#ifdef __cplusplus
11803extern "C"
11804#endif
11805/* We use char because int might match the return type of a gcc2
11806 builtin and then its argument prototype would still apply. */
11807char shl_load ();
11808int
11809main ()
11810{
11811shl_load ();
11812 ;
11813 return 0;
11814}
11815_ACEOF
11816rm -f conftest.$ac_objext conftest$ac_exeext
11817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11818 (eval $ac_link) 2>conftest.er1
11819 ac_status=$?
11820 grep -v '^ *+' conftest.er1 >conftest.err
11821 rm -f conftest.er1
11822 cat conftest.err >&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); } &&
11825 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11827 (eval $ac_try) 2>&5
11828 ac_status=$?
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; } &&
11831 { ac_try='test -s conftest$ac_exeext'
11832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11833 (eval $ac_try) 2>&5
11834 ac_status=$?
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); }; }; then
11837 ac_cv_lib_dld_shl_load=yes
11838else
11839 echo "$as_me: failed program was:" >&5
11840sed 's/^/| /' conftest.$ac_ext >&5
11841
11842ac_cv_lib_dld_shl_load=no
11843fi
11844rm -f conftest.err conftest.$ac_objext \
11845 conftest$ac_exeext conftest.$ac_ext
11846LIBS=$ac_check_lib_save_LIBS
11847fi
11848echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11849echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11850if test $ac_cv_lib_dld_shl_load = yes; then
11851 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11852else
11853 echo "$as_me:$LINENO: checking for dlopen" >&5
11854echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11855if test "${ac_cv_func_dlopen+set}" = set; then
11856 echo $ECHO_N "(cached) $ECHO_C" >&6
11857else
11858 cat >conftest.$ac_ext <<_ACEOF
11859/* confdefs.h. */
11860_ACEOF
11861cat confdefs.h >>conftest.$ac_ext
11862cat >>conftest.$ac_ext <<_ACEOF
11863/* end confdefs.h. */
11864/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11866#define dlopen innocuous_dlopen
11867
11868/* System header to define __stub macros and hopefully few prototypes,
11869 which can conflict with char dlopen (); below.
11870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11871 <limits.h> exists even on freestanding compilers. */
11872
11873#ifdef __STDC__
11874# include <limits.h>
11875#else
11876# include <assert.h>
11877#endif
11878
11879#undef dlopen
11880
11881/* Override any gcc2 internal prototype to avoid an error. */
11882#ifdef __cplusplus
11883extern "C"
11884{
11885#endif
11886/* We use char because int might match the return type of a gcc2
11887 builtin and then its argument prototype would still apply. */
11888char dlopen ();
11889/* The GNU C library defines this for functions which it implements
11890 to always fail with ENOSYS. Some functions are actually named
11891 something starting with __ and the normal name is an alias. */
11892#if defined (__stub_dlopen) || defined (__stub___dlopen)
11893choke me
11894#else
11895char (*f) () = dlopen;
11896#endif
11897#ifdef __cplusplus
11898}
11899#endif
11900
11901int
11902main ()
11903{
11904return f != dlopen;
11905 ;
11906 return 0;
11907}
11908_ACEOF
11909rm -f conftest.$ac_objext conftest$ac_exeext
11910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11911 (eval $ac_link) 2>conftest.er1
11912 ac_status=$?
11913 grep -v '^ *+' conftest.er1 >conftest.err
11914 rm -f conftest.er1
11915 cat conftest.err >&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } &&
11918 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11921 ac_status=$?
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; } &&
11924 { ac_try='test -s conftest$ac_exeext'
11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926 (eval $ac_try) 2>&5
11927 ac_status=$?
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; }; then
11930 ac_cv_func_dlopen=yes
11931else
11932 echo "$as_me: failed program was:" >&5
11933sed 's/^/| /' conftest.$ac_ext >&5
11934
11935ac_cv_func_dlopen=no
11936fi
11937rm -f conftest.err conftest.$ac_objext \
11938 conftest$ac_exeext conftest.$ac_ext
11939fi
11940echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11941echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11942if test $ac_cv_func_dlopen = yes; then
11943 lt_cv_dlopen="dlopen"
11944else
11945 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11946echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11947if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11949else
11950 ac_check_lib_save_LIBS=$LIBS
11951LIBS="-ldl $LIBS"
11952cat >conftest.$ac_ext <<_ACEOF
11953/* confdefs.h. */
11954_ACEOF
11955cat confdefs.h >>conftest.$ac_ext
11956cat >>conftest.$ac_ext <<_ACEOF
11957/* end confdefs.h. */
11958
11959/* Override any gcc2 internal prototype to avoid an error. */
11960#ifdef __cplusplus
11961extern "C"
11962#endif
11963/* We use char because int might match the return type of a gcc2
11964 builtin and then its argument prototype would still apply. */
11965char dlopen ();
11966int
11967main ()
11968{
11969dlopen ();
11970 ;
11971 return 0;
11972}
11973_ACEOF
11974rm -f conftest.$ac_objext conftest$ac_exeext
11975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11976 (eval $ac_link) 2>conftest.er1
11977 ac_status=$?
11978 grep -v '^ *+' conftest.er1 >conftest.err
11979 rm -f conftest.er1
11980 cat conftest.err >&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); } &&
11983 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985 (eval $ac_try) 2>&5
11986 ac_status=$?
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; } &&
11989 { ac_try='test -s conftest$ac_exeext'
11990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; }; then
11995 ac_cv_lib_dl_dlopen=yes
11996else
11997 echo "$as_me: failed program was:" >&5
11998sed 's/^/| /' conftest.$ac_ext >&5
11999
12000ac_cv_lib_dl_dlopen=no
12001fi
12002rm -f conftest.err conftest.$ac_objext \
12003 conftest$ac_exeext conftest.$ac_ext
12004LIBS=$ac_check_lib_save_LIBS
12005fi
12006echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12007echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12008if test $ac_cv_lib_dl_dlopen = yes; then
12009 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12010else
12011 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12012echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12013if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12014 echo $ECHO_N "(cached) $ECHO_C" >&6
12015else
12016 ac_check_lib_save_LIBS=$LIBS
12017LIBS="-lsvld $LIBS"
12018cat >conftest.$ac_ext <<_ACEOF
12019/* confdefs.h. */
12020_ACEOF
12021cat confdefs.h >>conftest.$ac_ext
12022cat >>conftest.$ac_ext <<_ACEOF
12023/* end confdefs.h. */
12024
12025/* Override any gcc2 internal prototype to avoid an error. */
12026#ifdef __cplusplus
12027extern "C"
12028#endif
12029/* We use char because int might match the return type of a gcc2
12030 builtin and then its argument prototype would still apply. */
12031char dlopen ();
12032int
12033main ()
12034{
12035dlopen ();
12036 ;
12037 return 0;
12038}
12039_ACEOF
12040rm -f conftest.$ac_objext conftest$ac_exeext
12041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12042 (eval $ac_link) 2>conftest.er1
12043 ac_status=$?
12044 grep -v '^ *+' conftest.er1 >conftest.err
12045 rm -f conftest.er1
12046 cat conftest.err >&5
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); } &&
12049 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12051 (eval $ac_try) 2>&5
12052 ac_status=$?
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); }; } &&
12055 { ac_try='test -s conftest$ac_exeext'
12056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12057 (eval $ac_try) 2>&5
12058 ac_status=$?
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); }; }; then
12061 ac_cv_lib_svld_dlopen=yes
12062else
12063 echo "$as_me: failed program was:" >&5
12064sed 's/^/| /' conftest.$ac_ext >&5
12065
12066ac_cv_lib_svld_dlopen=no
12067fi
12068rm -f conftest.err conftest.$ac_objext \
12069 conftest$ac_exeext conftest.$ac_ext
12070LIBS=$ac_check_lib_save_LIBS
12071fi
12072echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12073echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12074if test $ac_cv_lib_svld_dlopen = yes; then
12075 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12076else
12077 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12078echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12079if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12080 echo $ECHO_N "(cached) $ECHO_C" >&6
12081else
12082 ac_check_lib_save_LIBS=$LIBS
12083LIBS="-ldld $LIBS"
12084cat >conftest.$ac_ext <<_ACEOF
12085/* confdefs.h. */
12086_ACEOF
12087cat confdefs.h >>conftest.$ac_ext
12088cat >>conftest.$ac_ext <<_ACEOF
12089/* end confdefs.h. */
12090
12091/* Override any gcc2 internal prototype to avoid an error. */
12092#ifdef __cplusplus
12093extern "C"
12094#endif
12095/* We use char because int might match the return type of a gcc2
12096 builtin and then its argument prototype would still apply. */
12097char dld_link ();
12098int
12099main ()
12100{
12101dld_link ();
12102 ;
12103 return 0;
12104}
12105_ACEOF
12106rm -f conftest.$ac_objext conftest$ac_exeext
12107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12108 (eval $ac_link) 2>conftest.er1
12109 ac_status=$?
12110 grep -v '^ *+' conftest.er1 >conftest.err
12111 rm -f conftest.er1
12112 cat conftest.err >&5
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); } &&
12115 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12117 (eval $ac_try) 2>&5
12118 ac_status=$?
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); }; } &&
12121 { ac_try='test -s conftest$ac_exeext'
12122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12123 (eval $ac_try) 2>&5
12124 ac_status=$?
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); }; }; then
12127 ac_cv_lib_dld_dld_link=yes
12128else
12129 echo "$as_me: failed program was:" >&5
12130sed 's/^/| /' conftest.$ac_ext >&5
12131
12132ac_cv_lib_dld_dld_link=no
12133fi
12134rm -f conftest.err conftest.$ac_objext \
12135 conftest$ac_exeext conftest.$ac_ext
12136LIBS=$ac_check_lib_save_LIBS
12137fi
12138echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12139echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12140if test $ac_cv_lib_dld_dld_link = yes; then
12141 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12142fi
12143
12144
12145fi
12146
12147
12148fi
12149
12150
12151fi
12152
12153
12154fi
12155
12156
12157fi
12158
12159 ;;
12160 esac
12161
12162 if test "x$lt_cv_dlopen" != xno; then
12163 enable_dlopen=yes
12164 else
12165 enable_dlopen=no
12166 fi
12167
12168 case $lt_cv_dlopen in
12169 dlopen)
12170 save_CPPFLAGS="$CPPFLAGS"
12171 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12172
12173 save_LDFLAGS="$LDFLAGS"
12174 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12175
12176 save_LIBS="$LIBS"
12177 LIBS="$lt_cv_dlopen_libs $LIBS"
12178
12179 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12180echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12181if test "${lt_cv_dlopen_self+set}" = set; then
12182 echo $ECHO_N "(cached) $ECHO_C" >&6
12183else
12184 if test "$cross_compiling" = yes; then :
12185 lt_cv_dlopen_self=cross
12186else
12187 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12188 lt_status=$lt_dlunknown
12189 cat > conftest.$ac_ext <<EOF
12190#line 12190 "configure"
12191#include "confdefs.h"
12192
12193#if HAVE_DLFCN_H
12194#include <dlfcn.h>
12195#endif
12196
12197#include <stdio.h>
12198
12199#ifdef RTLD_GLOBAL
12200# define LT_DLGLOBAL RTLD_GLOBAL
12201#else
12202# ifdef DL_GLOBAL
12203# define LT_DLGLOBAL DL_GLOBAL
12204# else
12205# define LT_DLGLOBAL 0
12206# endif
12207#endif
12208
12209/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12210 find out it does not work in some platform. */
12211#ifndef LT_DLLAZY_OR_NOW
12212# ifdef RTLD_LAZY
12213# define LT_DLLAZY_OR_NOW RTLD_LAZY
12214# else
12215# ifdef DL_LAZY
12216# define LT_DLLAZY_OR_NOW DL_LAZY
12217# else
12218# ifdef RTLD_NOW
12219# define LT_DLLAZY_OR_NOW RTLD_NOW
12220# else
12221# ifdef DL_NOW
12222# define LT_DLLAZY_OR_NOW DL_NOW
12223# else
12224# define LT_DLLAZY_OR_NOW 0
12225# endif
12226# endif
12227# endif
12228# endif
12229#endif
12230
12231#ifdef __cplusplus
12232extern "C" void exit (int);
12233#endif
12234
12235void fnord() { int i=42;}
12236int main ()
12237{
12238 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12239 int status = $lt_dlunknown;
12240
12241 if (self)
12242 {
12243 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12244 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12245 /* dlclose (self); */
12246 }
12247
12248 exit (status);
12249}
12250EOF
12251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12252 (eval $ac_link) 2>&5
12253 ac_status=$?
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12256 (./conftest; exit; ) 2>/dev/null
12257 lt_status=$?
12258 case x$lt_status in
12259 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12260 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12261 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12262 esac
12263 else :
12264 # compilation failed
12265 lt_cv_dlopen_self=no
12266 fi
12267fi
12268rm -fr conftest*
12269
12270
12271fi
12272echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12273echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12274
12275 if test "x$lt_cv_dlopen_self" = xyes; then
12276 LDFLAGS="$LDFLAGS $link_static_flag"
12277 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12278echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12279if test "${lt_cv_dlopen_self_static+set}" = set; then
12280 echo $ECHO_N "(cached) $ECHO_C" >&6
12281else
12282 if test "$cross_compiling" = yes; then :
12283 lt_cv_dlopen_self_static=cross
12284else
12285 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12286 lt_status=$lt_dlunknown
12287 cat > conftest.$ac_ext <<EOF
12288#line 12288 "configure"
12289#include "confdefs.h"
12290
12291#if HAVE_DLFCN_H
12292#include <dlfcn.h>
12293#endif
12294
12295#include <stdio.h>
12296
12297#ifdef RTLD_GLOBAL
12298# define LT_DLGLOBAL RTLD_GLOBAL
12299#else
12300# ifdef DL_GLOBAL
12301# define LT_DLGLOBAL DL_GLOBAL
12302# else
12303# define LT_DLGLOBAL 0
12304# endif
12305#endif
12306
12307/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12308 find out it does not work in some platform. */
12309#ifndef LT_DLLAZY_OR_NOW
12310# ifdef RTLD_LAZY
12311# define LT_DLLAZY_OR_NOW RTLD_LAZY
12312# else
12313# ifdef DL_LAZY
12314# define LT_DLLAZY_OR_NOW DL_LAZY
12315# else
12316# ifdef RTLD_NOW
12317# define LT_DLLAZY_OR_NOW RTLD_NOW
12318# else
12319# ifdef DL_NOW
12320# define LT_DLLAZY_OR_NOW DL_NOW
12321# else
12322# define LT_DLLAZY_OR_NOW 0
12323# endif
12324# endif
12325# endif
12326# endif
12327#endif
12328
12329#ifdef __cplusplus
12330extern "C" void exit (int);
12331#endif
12332
12333void fnord() { int i=42;}
12334int main ()
12335{
12336 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12337 int status = $lt_dlunknown;
12338
12339 if (self)
12340 {
12341 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12342 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12343 /* dlclose (self); */
12344 }
12345
12346 exit (status);
12347}
12348EOF
12349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12350 (eval $ac_link) 2>&5
12351 ac_status=$?
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12354 (./conftest; exit; ) 2>/dev/null
12355 lt_status=$?
12356 case x$lt_status in
12357 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12358 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12359 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12360 esac
12361 else :
12362 # compilation failed
12363 lt_cv_dlopen_self_static=no
12364 fi
12365fi
12366rm -fr conftest*
12367
12368
12369fi
12370echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12371echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12372 fi
12373
12374 CPPFLAGS="$save_CPPFLAGS"
12375 LDFLAGS="$save_LDFLAGS"
12376 LIBS="$save_LIBS"
12377 ;;
12378 esac
12379
12380 case $lt_cv_dlopen_self in
12381 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12382 *) enable_dlopen_self=unknown ;;
12383 esac
12384
12385 case $lt_cv_dlopen_self_static in
12386 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12387 *) enable_dlopen_self_static=unknown ;;
12388 esac
12389fi
12390
brynercb91a2f2006-08-25 21:14:45 +000012391
12392# The else clause should only fire when bootstrapping the
12393# libtool distribution, otherwise you forgot to ship ltmain.sh
12394# with your package, and you will get complaints that there are
12395# no rules to generate ltmain.sh.
12396if test -f "$ltmain"; then
12397 # See if we are running on zsh, and set the options which allow our commands through
12398 # without removal of \ escapes.
12399 if test -n "${ZSH_VERSION+set}" ; then
12400 setopt NO_GLOB_SUBST
12401 fi
12402 # Now quote all the things that may contain metacharacters while being
12403 # careful not to overquote the AC_SUBSTed values. We take copies of the
12404 # variables and quote the copies for generation of the libtool script.
brynerd5e66382006-09-08 02:35:53 +000012405 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
brynercb91a2f2006-08-25 21:14:45 +000012406 SED SHELL STRIP \
12407 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12408 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12409 deplibs_check_method reload_flag reload_cmds need_locks \
12410 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12411 lt_cv_sys_global_symbol_to_c_name_address \
12412 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12413 old_postinstall_cmds old_postuninstall_cmds \
12414 compiler_CXX \
12415 CC_CXX \
12416 LD_CXX \
12417 lt_prog_compiler_wl_CXX \
12418 lt_prog_compiler_pic_CXX \
12419 lt_prog_compiler_static_CXX \
12420 lt_prog_compiler_no_builtin_flag_CXX \
12421 export_dynamic_flag_spec_CXX \
12422 thread_safe_flag_spec_CXX \
12423 whole_archive_flag_spec_CXX \
12424 enable_shared_with_static_runtimes_CXX \
12425 old_archive_cmds_CXX \
12426 old_archive_from_new_cmds_CXX \
12427 predep_objects_CXX \
12428 postdep_objects_CXX \
12429 predeps_CXX \
12430 postdeps_CXX \
12431 compiler_lib_search_path_CXX \
12432 archive_cmds_CXX \
12433 archive_expsym_cmds_CXX \
12434 postinstall_cmds_CXX \
12435 postuninstall_cmds_CXX \
12436 old_archive_from_expsyms_cmds_CXX \
12437 allow_undefined_flag_CXX \
12438 no_undefined_flag_CXX \
12439 export_symbols_cmds_CXX \
12440 hardcode_libdir_flag_spec_CXX \
12441 hardcode_libdir_flag_spec_ld_CXX \
12442 hardcode_libdir_separator_CXX \
12443 hardcode_automatic_CXX \
12444 module_cmds_CXX \
12445 module_expsym_cmds_CXX \
12446 lt_cv_prog_compiler_c_o_CXX \
12447 exclude_expsyms_CXX \
12448 include_expsyms_CXX; do
12449
12450 case $var in
12451 old_archive_cmds_CXX | \
12452 old_archive_from_new_cmds_CXX | \
12453 archive_cmds_CXX | \
12454 archive_expsym_cmds_CXX | \
12455 module_cmds_CXX | \
12456 module_expsym_cmds_CXX | \
12457 old_archive_from_expsyms_cmds_CXX | \
12458 export_symbols_cmds_CXX | \
12459 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12460 postinstall_cmds | postuninstall_cmds | \
12461 old_postinstall_cmds | old_postuninstall_cmds | \
12462 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12463 # Double-quote double-evaled strings.
12464 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12465 ;;
12466 *)
12467 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12468 ;;
12469 esac
12470 done
12471
12472 case $lt_echo in
12473 *'\$0 --fallback-echo"')
12474 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12475 ;;
12476 esac
12477
12478cfgfile="$ofile"
12479
12480 cat <<__EOF__ >> "$cfgfile"
12481# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12482
12483# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12484
12485# Shell to use when invoking shell scripts.
12486SHELL=$lt_SHELL
12487
12488# Whether or not to build shared libraries.
12489build_libtool_libs=$enable_shared
12490
12491# Whether or not to build static libraries.
12492build_old_libs=$enable_static
12493
12494# Whether or not to add -lc for building shared libraries.
12495build_libtool_need_lc=$archive_cmds_need_lc_CXX
12496
12497# Whether or not to disallow shared libs when runtime libs are static
12498allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12499
12500# Whether or not to optimize for fast installation.
12501fast_install=$enable_fast_install
12502
12503# The host system.
12504host_alias=$host_alias
12505host=$host
12506
12507# An echo program that does not interpret backslashes.
12508echo=$lt_echo
12509
12510# The archiver.
12511AR=$lt_AR
12512AR_FLAGS=$lt_AR_FLAGS
12513
12514# A C compiler.
12515LTCC=$lt_LTCC
12516
12517# A language-specific compiler.
12518CC=$lt_compiler_CXX
12519
12520# Is the compiler the GNU C compiler?
12521with_gcc=$GCC_CXX
12522
12523# An ERE matcher.
12524EGREP=$lt_EGREP
12525
12526# The linker used to build libraries.
12527LD=$lt_LD_CXX
12528
12529# Whether we need hard or soft links.
12530LN_S=$lt_LN_S
12531
12532# A BSD-compatible nm program.
12533NM=$lt_NM
12534
12535# A symbol stripping program
12536STRIP=$lt_STRIP
12537
12538# Used to examine libraries when file_magic_cmd begins "file"
12539MAGIC_CMD=$MAGIC_CMD
12540
12541# Used on cygwin: DLL creation program.
12542DLLTOOL="$DLLTOOL"
12543
12544# Used on cygwin: object dumper.
12545OBJDUMP="$OBJDUMP"
12546
12547# Used on cygwin: assembler.
12548AS="$AS"
12549
12550# The name of the directory that contains temporary libtool files.
12551objdir=$objdir
12552
12553# How to create reloadable object files.
12554reload_flag=$lt_reload_flag
12555reload_cmds=$lt_reload_cmds
12556
12557# How to pass a linker flag through the compiler.
12558wl=$lt_lt_prog_compiler_wl_CXX
12559
12560# Object file suffix (normally "o").
12561objext="$ac_objext"
12562
12563# Old archive suffix (normally "a").
12564libext="$libext"
12565
12566# Shared library suffix (normally ".so").
12567shrext_cmds='$shrext_cmds'
12568
12569# Executable file suffix (normally "").
12570exeext="$exeext"
12571
12572# Additional compiler flags for building library objects.
12573pic_flag=$lt_lt_prog_compiler_pic_CXX
12574pic_mode=$pic_mode
12575
12576# What is the maximum length of a command?
12577max_cmd_len=$lt_cv_sys_max_cmd_len
12578
12579# Does compiler simultaneously support -c and -o options?
12580compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12581
brynerd5e66382006-09-08 02:35:53 +000012582# Must we lock files when doing compilation ?
brynercb91a2f2006-08-25 21:14:45 +000012583need_locks=$lt_need_locks
12584
12585# Do we need the lib prefix for modules?
12586need_lib_prefix=$need_lib_prefix
12587
12588# Do we need a version for libraries?
12589need_version=$need_version
12590
12591# Whether dlopen is supported.
12592dlopen_support=$enable_dlopen
12593
12594# Whether dlopen of programs is supported.
12595dlopen_self=$enable_dlopen_self
12596
12597# Whether dlopen of statically linked programs is supported.
12598dlopen_self_static=$enable_dlopen_self_static
12599
12600# Compiler flag to prevent dynamic linking.
12601link_static_flag=$lt_lt_prog_compiler_static_CXX
12602
12603# Compiler flag to turn off builtin functions.
12604no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12605
12606# Compiler flag to allow reflexive dlopens.
12607export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12608
12609# Compiler flag to generate shared objects directly from archives.
12610whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12611
12612# Compiler flag to generate thread-safe objects.
12613thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12614
12615# Library versioning type.
12616version_type=$version_type
12617
12618# Format of library name prefix.
12619libname_spec=$lt_libname_spec
12620
12621# List of archive names. First name is the real one, the rest are links.
12622# The last name is the one that the linker finds with -lNAME.
12623library_names_spec=$lt_library_names_spec
12624
12625# The coded name of the library, if different from the real name.
12626soname_spec=$lt_soname_spec
12627
12628# Commands used to build and install an old-style archive.
12629RANLIB=$lt_RANLIB
12630old_archive_cmds=$lt_old_archive_cmds_CXX
12631old_postinstall_cmds=$lt_old_postinstall_cmds
12632old_postuninstall_cmds=$lt_old_postuninstall_cmds
12633
12634# Create an old-style archive from a shared archive.
12635old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12636
12637# Create a temporary old-style archive to link instead of a shared archive.
12638old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12639
12640# Commands used to build and install a shared archive.
12641archive_cmds=$lt_archive_cmds_CXX
12642archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12643postinstall_cmds=$lt_postinstall_cmds
12644postuninstall_cmds=$lt_postuninstall_cmds
12645
12646# Commands used to build a loadable module (assumed same as above if empty)
12647module_cmds=$lt_module_cmds_CXX
12648module_expsym_cmds=$lt_module_expsym_cmds_CXX
12649
12650# Commands to strip libraries.
12651old_striplib=$lt_old_striplib
12652striplib=$lt_striplib
12653
12654# Dependencies to place before the objects being linked to create a
12655# shared library.
12656predep_objects=$lt_predep_objects_CXX
12657
12658# Dependencies to place after the objects being linked to create a
12659# shared library.
12660postdep_objects=$lt_postdep_objects_CXX
12661
12662# Dependencies to place before the objects being linked to create a
12663# shared library.
12664predeps=$lt_predeps_CXX
12665
12666# Dependencies to place after the objects being linked to create a
12667# shared library.
12668postdeps=$lt_postdeps_CXX
12669
12670# The library search path used internally by the compiler when linking
12671# a shared library.
12672compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12673
12674# Method to check whether dependent libraries are shared objects.
12675deplibs_check_method=$lt_deplibs_check_method
12676
12677# Command to use when deplibs_check_method == file_magic.
12678file_magic_cmd=$lt_file_magic_cmd
12679
12680# Flag that allows shared libraries with undefined symbols to be built.
12681allow_undefined_flag=$lt_allow_undefined_flag_CXX
12682
12683# Flag that forces no undefined symbols.
12684no_undefined_flag=$lt_no_undefined_flag_CXX
12685
12686# Commands used to finish a libtool library installation in a directory.
12687finish_cmds=$lt_finish_cmds
12688
12689# Same as above, but a single script fragment to be evaled but not shown.
12690finish_eval=$lt_finish_eval
12691
12692# Take the output of nm and produce a listing of raw symbols and C names.
12693global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12694
12695# Transform the output of nm in a proper C declaration
12696global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12697
12698# Transform the output of nm in a C name address pair
12699global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12700
12701# This is the shared library runtime path variable.
12702runpath_var=$runpath_var
12703
12704# This is the shared library path variable.
12705shlibpath_var=$shlibpath_var
12706
12707# Is shlibpath searched before the hard-coded library search path?
12708shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12709
12710# How to hardcode a shared library path into an executable.
12711hardcode_action=$hardcode_action_CXX
12712
12713# Whether we should hardcode library paths into libraries.
12714hardcode_into_libs=$hardcode_into_libs
12715
12716# Flag to hardcode \$libdir into a binary during linking.
12717# This must work even if \$libdir does not exist.
12718hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12719
12720# If ld is used when linking, flag to hardcode \$libdir into
12721# a binary during linking. This must work even if \$libdir does
12722# not exist.
12723hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12724
12725# Whether we need a single -rpath flag with a separated argument.
12726hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12727
12728# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12729# resulting binary.
12730hardcode_direct=$hardcode_direct_CXX
12731
12732# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12733# resulting binary.
12734hardcode_minus_L=$hardcode_minus_L_CXX
12735
12736# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12737# the resulting binary.
12738hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12739
12740# Set to yes if building a shared library automatically hardcodes DIR into the library
12741# and all subsequent libraries and executables linked against it.
12742hardcode_automatic=$hardcode_automatic_CXX
12743
12744# Variables whose values should be saved in libtool wrapper scripts and
12745# restored at relink time.
12746variables_saved_for_relink="$variables_saved_for_relink"
12747
12748# Whether libtool must link a program against all its dependency libraries.
12749link_all_deplibs=$link_all_deplibs_CXX
12750
12751# Compile-time system search path for libraries
12752sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12753
12754# Run-time system search path for libraries
12755sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12756
12757# Fix the shell variable \$srcfile for the compiler.
12758fix_srcfile_path="$fix_srcfile_path_CXX"
12759
12760# Set to yes if exported symbols are required.
12761always_export_symbols=$always_export_symbols_CXX
12762
12763# The commands to list exported symbols.
12764export_symbols_cmds=$lt_export_symbols_cmds_CXX
12765
12766# The commands to extract the exported symbol list from a shared archive.
12767extract_expsyms_cmds=$lt_extract_expsyms_cmds
12768
12769# Symbols that should not be listed in the preloaded symbols.
12770exclude_expsyms=$lt_exclude_expsyms_CXX
12771
12772# Symbols that must always be exported.
12773include_expsyms=$lt_include_expsyms_CXX
12774
12775# ### END LIBTOOL TAG CONFIG: $tagname
12776
12777__EOF__
12778
12779
12780else
12781 # If there is no Makefile yet, we rely on a make rule to execute
12782 # `config.status --recheck' to rerun these tests and create the
12783 # libtool script then.
12784 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12785 if test -f "$ltmain_in"; then
12786 test -f Makefile && make "$ltmain"
12787 fi
12788fi
12789
12790
12791ac_ext=c
12792ac_cpp='$CPP $CPPFLAGS'
12793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12795ac_compiler_gnu=$ac_cv_c_compiler_gnu
12796
12797CC=$lt_save_CC
12798LDCXX=$LD
12799LD=$lt_save_LD
12800GCC=$lt_save_GCC
12801with_gnu_ldcxx=$with_gnu_ld
12802with_gnu_ld=$lt_save_with_gnu_ld
12803lt_cv_path_LDCXX=$lt_cv_path_LD
12804lt_cv_path_LD=$lt_save_path_LD
12805lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12806lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12807
12808 else
12809 tagname=""
12810 fi
12811 ;;
12812
12813 F77)
12814 if test -n "$F77" && test "X$F77" != "Xno"; then
12815
12816ac_ext=f
12817ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12818ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12819ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12820
12821
12822archive_cmds_need_lc_F77=no
12823allow_undefined_flag_F77=
12824always_export_symbols_F77=no
12825archive_expsym_cmds_F77=
12826export_dynamic_flag_spec_F77=
12827hardcode_direct_F77=no
12828hardcode_libdir_flag_spec_F77=
12829hardcode_libdir_flag_spec_ld_F77=
12830hardcode_libdir_separator_F77=
12831hardcode_minus_L_F77=no
12832hardcode_automatic_F77=no
12833module_cmds_F77=
12834module_expsym_cmds_F77=
12835link_all_deplibs_F77=unknown
12836old_archive_cmds_F77=$old_archive_cmds
12837no_undefined_flag_F77=
12838whole_archive_flag_spec_F77=
12839enable_shared_with_static_runtimes_F77=no
12840
12841# Source file extension for f77 test sources.
12842ac_ext=f
12843
12844# Object file extension for compiled f77 test sources.
12845objext=o
12846objext_F77=$objext
12847
12848# Code to be used in simple compile tests
12849lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12850
12851# Code to be used in simple link tests
12852lt_simple_link_test_code=" program t\n end\n"
12853
12854# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12855
12856# If no C compiler was specified, use CC.
12857LTCC=${LTCC-"$CC"}
12858
12859# Allow CC to be a program name with arguments.
12860compiler=$CC
12861
12862
12863# Allow CC to be a program name with arguments.
12864lt_save_CC="$CC"
12865CC=${F77-"f77"}
12866compiler=$CC
12867compiler_F77=$CC
brynerd5e66382006-09-08 02:35:53 +000012868cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
brynercb91a2f2006-08-25 21:14:45 +000012869
12870echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12871echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12872echo "$as_me:$LINENO: result: $can_build_shared" >&5
12873echo "${ECHO_T}$can_build_shared" >&6
12874
12875echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12876echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12877test "$can_build_shared" = "no" && enable_shared=no
12878
12879# On AIX, shared libraries and static libraries use the same namespace, and
12880# are all built from PIC.
brynerd5e66382006-09-08 02:35:53 +000012881case "$host_os" in
brynercb91a2f2006-08-25 21:14:45 +000012882aix3*)
12883 test "$enable_shared" = yes && enable_static=no
12884 if test -n "$RANLIB"; then
12885 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12886 postinstall_cmds='$RANLIB $lib'
12887 fi
12888 ;;
12889aix4* | aix5*)
brynerd5e66382006-09-08 02:35:53 +000012890 test "$enable_shared" = yes && enable_static=no
brynercb91a2f2006-08-25 21:14:45 +000012891 ;;
12892esac
12893echo "$as_me:$LINENO: result: $enable_shared" >&5
12894echo "${ECHO_T}$enable_shared" >&6
12895
12896echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12897echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12898# Make sure either enable_shared or enable_static is yes.
12899test "$enable_shared" = yes || enable_static=yes
12900echo "$as_me:$LINENO: result: $enable_static" >&5
12901echo "${ECHO_T}$enable_static" >&6
12902
brynerd5e66382006-09-08 02:35:53 +000012903test "$ld_shlibs_F77" = no && can_build_shared=no
12904
brynercb91a2f2006-08-25 21:14:45 +000012905GCC_F77="$G77"
12906LD_F77="$LD"
12907
12908lt_prog_compiler_wl_F77=
12909lt_prog_compiler_pic_F77=
12910lt_prog_compiler_static_F77=
12911
12912echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12913echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12914
12915 if test "$GCC" = yes; then
12916 lt_prog_compiler_wl_F77='-Wl,'
12917 lt_prog_compiler_static_F77='-static'
12918
12919 case $host_os in
12920 aix*)
12921 # All AIX code is PIC.
12922 if test "$host_cpu" = ia64; then
12923 # AIX 5 now supports IA64 processor
12924 lt_prog_compiler_static_F77='-Bstatic'
12925 fi
12926 ;;
12927
12928 amigaos*)
12929 # FIXME: we need at least 68020 code to build shared libraries, but
12930 # adding the `-m68020' flag to GCC prevents building anything better,
12931 # like `-m68040'.
12932 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12933 ;;
12934
12935 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12936 # PIC is the default for these OSes.
12937 ;;
12938
12939 mingw* | pw32* | os2*)
12940 # This hack is so that the source file can tell whether it is being
12941 # built for inclusion in a dll (and should export symbols for example).
12942 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12943 ;;
12944
12945 darwin* | rhapsody*)
12946 # PIC is the default on this platform
12947 # Common symbols not allowed in MH_DYLIB files
12948 lt_prog_compiler_pic_F77='-fno-common'
12949 ;;
12950
12951 msdosdjgpp*)
12952 # Just because we use GCC doesn't mean we suddenly get shared libraries
12953 # on systems that don't support them.
12954 lt_prog_compiler_can_build_shared_F77=no
12955 enable_shared=no
12956 ;;
12957
12958 sysv4*MP*)
12959 if test -d /usr/nec; then
12960 lt_prog_compiler_pic_F77=-Kconform_pic
12961 fi
12962 ;;
12963
12964 hpux*)
12965 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12966 # not for PA HP-UX.
brynerd5e66382006-09-08 02:35:53 +000012967 case "$host_cpu" in
brynercb91a2f2006-08-25 21:14:45 +000012968 hppa*64*|ia64*)
12969 # +Z the default
12970 ;;
12971 *)
12972 lt_prog_compiler_pic_F77='-fPIC'
12973 ;;
12974 esac
12975 ;;
12976
12977 *)
12978 lt_prog_compiler_pic_F77='-fPIC'
12979 ;;
12980 esac
12981 else
12982 # PORTME Check for flag to pass linker flags through the system compiler.
12983 case $host_os in
12984 aix*)
12985 lt_prog_compiler_wl_F77='-Wl,'
12986 if test "$host_cpu" = ia64; then
12987 # AIX 5 now supports IA64 processor
12988 lt_prog_compiler_static_F77='-Bstatic'
12989 else
12990 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12991 fi
12992 ;;
12993
12994 mingw* | pw32* | os2*)
12995 # This hack is so that the source file can tell whether it is being
12996 # built for inclusion in a dll (and should export symbols for example).
12997 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12998 ;;
12999
13000 hpux9* | hpux10* | hpux11*)
13001 lt_prog_compiler_wl_F77='-Wl,'
13002 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13003 # not for PA HP-UX.
brynerd5e66382006-09-08 02:35:53 +000013004 case "$host_cpu" in
brynercb91a2f2006-08-25 21:14:45 +000013005 hppa*64*|ia64*)
13006 # +Z the default
13007 ;;
13008 *)
13009 lt_prog_compiler_pic_F77='+Z'
13010 ;;
13011 esac
13012 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13013 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13014 ;;
13015
13016 irix5* | irix6* | nonstopux*)
13017 lt_prog_compiler_wl_F77='-Wl,'
13018 # PIC (with -KPIC) is the default.
13019 lt_prog_compiler_static_F77='-non_shared'
13020 ;;
13021
13022 newsos6)
13023 lt_prog_compiler_pic_F77='-KPIC'
13024 lt_prog_compiler_static_F77='-Bstatic'
13025 ;;
13026
13027 linux*)
brynerd5e66382006-09-08 02:35:53 +000013028 case $CC in
brynercb91a2f2006-08-25 21:14:45 +000013029 icc* | ecc*)
13030 lt_prog_compiler_wl_F77='-Wl,'
13031 lt_prog_compiler_pic_F77='-KPIC'
13032 lt_prog_compiler_static_F77='-static'
13033 ;;
13034 ccc*)
13035 lt_prog_compiler_wl_F77='-Wl,'
13036 # All Alpha code is PIC.
13037 lt_prog_compiler_static_F77='-non_shared'
13038 ;;
13039 esac
13040 ;;
13041
13042 osf3* | osf4* | osf5*)
13043 lt_prog_compiler_wl_F77='-Wl,'
13044 # All OSF/1 code is PIC.
13045 lt_prog_compiler_static_F77='-non_shared'
13046 ;;
13047
brynerd5e66382006-09-08 02:35:53 +000013048 sco3.2v5*)
13049 lt_prog_compiler_pic_F77='-Kpic'
13050 lt_prog_compiler_static_F77='-dn'
13051 ;;
13052
brynercb91a2f2006-08-25 21:14:45 +000013053 solaris*)
brynerd5e66382006-09-08 02:35:53 +000013054 lt_prog_compiler_wl_F77='-Wl,'
brynercb91a2f2006-08-25 21:14:45 +000013055 lt_prog_compiler_pic_F77='-KPIC'
13056 lt_prog_compiler_static_F77='-Bstatic'
13057 ;;
13058
13059 sunos4*)
13060 lt_prog_compiler_wl_F77='-Qoption ld '
13061 lt_prog_compiler_pic_F77='-PIC'
13062 lt_prog_compiler_static_F77='-Bstatic'
13063 ;;
13064
brynerd5e66382006-09-08 02:35:53 +000013065 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
brynercb91a2f2006-08-25 21:14:45 +000013066 lt_prog_compiler_wl_F77='-Wl,'
13067 lt_prog_compiler_pic_F77='-KPIC'
13068 lt_prog_compiler_static_F77='-Bstatic'
13069 ;;
13070
13071 sysv4*MP*)
13072 if test -d /usr/nec ;then
13073 lt_prog_compiler_pic_F77='-Kconform_pic'
13074 lt_prog_compiler_static_F77='-Bstatic'
13075 fi
13076 ;;
13077
13078 uts4*)
13079 lt_prog_compiler_pic_F77='-pic'
13080 lt_prog_compiler_static_F77='-Bstatic'
13081 ;;
13082
13083 *)
13084 lt_prog_compiler_can_build_shared_F77=no
13085 ;;
13086 esac
13087 fi
13088
13089echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13090echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13091
13092#
13093# Check to make sure the PIC flag actually works.
13094#
13095if test -n "$lt_prog_compiler_pic_F77"; then
13096
13097echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13098echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13099if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13100 echo $ECHO_N "(cached) $ECHO_C" >&6
13101else
13102 lt_prog_compiler_pic_works_F77=no
13103 ac_outfile=conftest.$ac_objext
13104 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13105 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13106 # Insert the option either (1) after the last *FLAGS variable, or
13107 # (2) before a word containing "conftest.", or (3) at the end.
13108 # Note that $ac_compile itself does not contain backslashes and begins
13109 # with a dollar sign (not a hyphen), so the echo should work correctly.
13110 # The option is referenced via a variable to avoid confusing sed.
13111 lt_compile=`echo "$ac_compile" | $SED \
brynerd5e66382006-09-08 02:35:53 +000013112 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000013113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13114 -e 's:$: $lt_compiler_flag:'`
brynerd5e66382006-09-08 02:35:53 +000013115 (eval echo "\"\$as_me:13115: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000013116 (eval "$lt_compile" 2>conftest.err)
13117 ac_status=$?
13118 cat conftest.err >&5
brynerd5e66382006-09-08 02:35:53 +000013119 echo "$as_me:13119: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000013120 if (exit $ac_status) && test -s "$ac_outfile"; then
13121 # The compiler can only warn and ignore the option if not recognized
brynerd5e66382006-09-08 02:35:53 +000013122 # So say no if there are warnings
13123 if test ! -s conftest.err; then
brynercb91a2f2006-08-25 21:14:45 +000013124 lt_prog_compiler_pic_works_F77=yes
13125 fi
13126 fi
13127 $rm conftest*
13128
13129fi
13130echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13131echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13132
13133if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13134 case $lt_prog_compiler_pic_F77 in
13135 "" | " "*) ;;
13136 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13137 esac
13138else
13139 lt_prog_compiler_pic_F77=
13140 lt_prog_compiler_can_build_shared_F77=no
13141fi
13142
13143fi
brynerd5e66382006-09-08 02:35:53 +000013144case "$host_os" in
brynercb91a2f2006-08-25 21:14:45 +000013145 # For platforms which do not support PIC, -DPIC is meaningless:
13146 *djgpp*)
13147 lt_prog_compiler_pic_F77=
13148 ;;
13149 *)
13150 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13151 ;;
13152esac
13153
13154echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13155echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13156if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13157 echo $ECHO_N "(cached) $ECHO_C" >&6
13158else
13159 lt_cv_prog_compiler_c_o_F77=no
13160 $rm -r conftest 2>/dev/null
13161 mkdir conftest
13162 cd conftest
13163 mkdir out
13164 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13165
13166 lt_compiler_flag="-o out/conftest2.$ac_objext"
13167 # Insert the option either (1) after the last *FLAGS variable, or
13168 # (2) before a word containing "conftest.", or (3) at the end.
13169 # Note that $ac_compile itself does not contain backslashes and begins
13170 # with a dollar sign (not a hyphen), so the echo should work correctly.
13171 lt_compile=`echo "$ac_compile" | $SED \
brynerd5e66382006-09-08 02:35:53 +000013172 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000013173 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13174 -e 's:$: $lt_compiler_flag:'`
brynerd5e66382006-09-08 02:35:53 +000013175 (eval echo "\"\$as_me:13175: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000013176 (eval "$lt_compile" 2>out/conftest.err)
13177 ac_status=$?
13178 cat out/conftest.err >&5
brynerd5e66382006-09-08 02:35:53 +000013179 echo "$as_me:13179: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000013180 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13181 then
13182 # The compiler can only warn and ignore the option if not recognized
13183 # So say no if there are warnings
brynerd5e66382006-09-08 02:35:53 +000013184 if test ! -s out/conftest.err; then
brynercb91a2f2006-08-25 21:14:45 +000013185 lt_cv_prog_compiler_c_o_F77=yes
13186 fi
13187 fi
brynerd5e66382006-09-08 02:35:53 +000013188 chmod u+w .
brynercb91a2f2006-08-25 21:14:45 +000013189 $rm conftest*
13190 # SGI C++ compiler will create directory out/ii_files/ for
13191 # template instantiation
13192 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13193 $rm out/* && rmdir out
13194 cd ..
13195 rmdir conftest
13196 $rm conftest*
13197
13198fi
13199echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13200echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13201
13202
13203hard_links="nottested"
13204if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13205 # do not overwrite the value of need_locks provided by the user
13206 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13207echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13208 hard_links=yes
13209 $rm conftest*
13210 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13211 touch conftest.a
13212 ln conftest.a conftest.b 2>&5 || hard_links=no
13213 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13214 echo "$as_me:$LINENO: result: $hard_links" >&5
13215echo "${ECHO_T}$hard_links" >&6
13216 if test "$hard_links" = no; then
13217 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13218echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13219 need_locks=warn
13220 fi
13221else
13222 need_locks=no
13223fi
13224
13225echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13226echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13227
13228 runpath_var=
13229 allow_undefined_flag_F77=
13230 enable_shared_with_static_runtimes_F77=no
13231 archive_cmds_F77=
13232 archive_expsym_cmds_F77=
13233 old_archive_From_new_cmds_F77=
13234 old_archive_from_expsyms_cmds_F77=
13235 export_dynamic_flag_spec_F77=
13236 whole_archive_flag_spec_F77=
13237 thread_safe_flag_spec_F77=
13238 hardcode_libdir_flag_spec_F77=
13239 hardcode_libdir_flag_spec_ld_F77=
13240 hardcode_libdir_separator_F77=
13241 hardcode_direct_F77=no
13242 hardcode_minus_L_F77=no
13243 hardcode_shlibpath_var_F77=unsupported
13244 link_all_deplibs_F77=unknown
13245 hardcode_automatic_F77=no
13246 module_cmds_F77=
13247 module_expsym_cmds_F77=
13248 always_export_symbols_F77=no
13249 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13250 # include_expsyms should be a list of space-separated symbols to be *always*
13251 # included in the symbol list
13252 include_expsyms_F77=
13253 # exclude_expsyms can be an extended regexp of symbols to exclude
13254 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13255 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13256 # as well as any symbol that contains `d'.
13257 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13258 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13259 # platforms (ab)use it in PIC code, but their linkers get confused if
13260 # the symbol is explicitly referenced. Since portable code cannot
13261 # rely on this symbol name, it's probably fine to never include it in
13262 # preloaded symbol tables.
13263 extract_expsyms_cmds=
13264
13265 case $host_os in
13266 cygwin* | mingw* | pw32*)
13267 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13268 # When not using gcc, we currently assume that we are using
13269 # Microsoft Visual C++.
13270 if test "$GCC" != yes; then
13271 with_gnu_ld=no
13272 fi
13273 ;;
13274 openbsd*)
13275 with_gnu_ld=no
13276 ;;
13277 esac
13278
13279 ld_shlibs_F77=yes
13280 if test "$with_gnu_ld" = yes; then
13281 # If archive_cmds runs LD, not CC, wlarc should be empty
13282 wlarc='${wl}'
13283
13284 # See if GNU ld supports shared libraries.
13285 case $host_os in
13286 aix3* | aix4* | aix5*)
13287 # On AIX/PPC, the GNU linker is very broken
13288 if test "$host_cpu" != ia64; then
13289 ld_shlibs_F77=no
13290 cat <<EOF 1>&2
13291
13292*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13293*** to be unable to reliably create shared libraries on AIX.
13294*** Therefore, libtool is disabling shared libraries support. If you
13295*** really care for shared libraries, you may want to modify your PATH
13296*** so that a non-GNU linker is found, and then restart.
13297
13298EOF
13299 fi
13300 ;;
13301
13302 amigaos*)
13303 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)'
13304 hardcode_libdir_flag_spec_F77='-L$libdir'
13305 hardcode_minus_L_F77=yes
13306
13307 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13308 # that the semantics of dynamic libraries on AmigaOS, at least up
13309 # to version 4, is to share data among multiple programs linked
13310 # with the same dynamic library. Since this doesn't match the
13311 # behavior of shared libraries on other platforms, we can't use
13312 # them.
13313 ld_shlibs_F77=no
13314 ;;
13315
13316 beos*)
13317 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13318 allow_undefined_flag_F77=unsupported
13319 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13320 # support --undefined. This deserves some investigation. FIXME
13321 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13322 else
13323 ld_shlibs_F77=no
13324 fi
13325 ;;
13326
13327 cygwin* | mingw* | pw32*)
13328 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13329 # as there is no search path for DLLs.
13330 hardcode_libdir_flag_spec_F77='-L$libdir'
13331 allow_undefined_flag_F77=unsupported
13332 always_export_symbols_F77=no
13333 enable_shared_with_static_runtimes_F77=yes
brynerd5e66382006-09-08 02:35:53 +000013334 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
brynercb91a2f2006-08-25 21:14:45 +000013335
13336 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
brynerd5e66382006-09-08 02:35:53 +000013337 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
brynercb91a2f2006-08-25 21:14:45 +000013338 # If the export-symbols file already is a .def file (1st line
13339 # is EXPORTS), use it as is; otherwise, prepend...
13340 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13341 cp $export_symbols $output_objdir/$soname.def;
13342 else
13343 echo EXPORTS > $output_objdir/$soname.def;
13344 cat $export_symbols >> $output_objdir/$soname.def;
13345 fi~
brynerd5e66382006-09-08 02:35:53 +000013346 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
brynercb91a2f2006-08-25 21:14:45 +000013347 else
brynerd5e66382006-09-08 02:35:53 +000013348 ld_shlibs=no
brynercb91a2f2006-08-25 21:14:45 +000013349 fi
13350 ;;
13351
brynerd5e66382006-09-08 02:35:53 +000013352 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000013353 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13354 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13355 wlarc=
13356 else
13357 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13358 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13359 fi
13360 ;;
13361
brynerd5e66382006-09-08 02:35:53 +000013362 solaris* | sysv5*)
brynercb91a2f2006-08-25 21:14:45 +000013363 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13364 ld_shlibs_F77=no
13365 cat <<EOF 1>&2
13366
13367*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13368*** create shared libraries on Solaris systems. Therefore, libtool
13369*** is disabling shared libraries support. We urge you to upgrade GNU
13370*** binutils to release 2.9.1 or newer. Another option is to modify
13371*** your PATH or compiler configuration so that the native linker is
13372*** used, and then restart.
13373
13374EOF
13375 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13376 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13377 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13378 else
13379 ld_shlibs_F77=no
13380 fi
13381 ;;
13382
13383 sunos4*)
13384 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13385 wlarc=
13386 hardcode_direct_F77=yes
13387 hardcode_shlibpath_var_F77=no
13388 ;;
13389
brynerd5e66382006-09-08 02:35:53 +000013390 linux*)
13391 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13392 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13393 archive_cmds_F77="$tmp_archive_cmds"
13394 supports_anon_versioning=no
13395 case `$LD -v 2>/dev/null` in
13396 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13397 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13398 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13399 *\ 2.11.*) ;; # other 2.11 versions
13400 *) supports_anon_versioning=yes ;;
13401 esac
13402 if test $supports_anon_versioning = yes; then
13403 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13404cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13405$echo "local: *; };" >> $output_objdir/$libname.ver~
13406 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13407 else
13408 archive_expsym_cmds_F77="$tmp_archive_cmds"
13409 fi
13410 link_all_deplibs_F77=no
13411 else
13412 ld_shlibs_F77=no
13413 fi
13414 ;;
13415
brynercb91a2f2006-08-25 21:14:45 +000013416 *)
13417 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13418 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13419 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13420 else
13421 ld_shlibs_F77=no
13422 fi
13423 ;;
13424 esac
13425
brynerd5e66382006-09-08 02:35:53 +000013426 if test "$ld_shlibs_F77" = yes; then
13427 runpath_var=LD_RUN_PATH
13428 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13429 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13430 # ancient GNU ld didn't support --whole-archive et. al.
13431 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13432 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13433 else
13434 whole_archive_flag_spec_F77=
13435 fi
brynercb91a2f2006-08-25 21:14:45 +000013436 fi
13437 else
13438 # PORTME fill in a description of your system's linker (not GNU ld)
13439 case $host_os in
13440 aix3*)
13441 allow_undefined_flag_F77=unsupported
13442 always_export_symbols_F77=yes
13443 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'
13444 # Note: this linker hardcodes the directories in LIBPATH if there
13445 # are no directories specified by -L.
13446 hardcode_minus_L_F77=yes
brynerd5e66382006-09-08 02:35:53 +000013447 if test "$GCC" = yes && test -z "$link_static_flag"; then
brynercb91a2f2006-08-25 21:14:45 +000013448 # Neither direct hardcoding nor static linking is supported with a
13449 # broken collect2.
13450 hardcode_direct_F77=unsupported
13451 fi
13452 ;;
13453
13454 aix4* | aix5*)
13455 if test "$host_cpu" = ia64; then
13456 # On IA64, the linker does run time linking by default, so we don't
13457 # have to do anything special.
13458 aix_use_runtimelinking=no
13459 exp_sym_flag='-Bexport'
13460 no_entry_flag=""
13461 else
13462 # If we're using GNU nm, then we don't want the "-C" option.
13463 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13464 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13465 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'
13466 else
13467 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'
13468 fi
13469 aix_use_runtimelinking=no
13470
13471 # Test if we are trying to use run time linking or normal
13472 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13473 # need to do runtime linking.
13474 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13475 for ld_flag in $LDFLAGS; do
13476 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13477 aix_use_runtimelinking=yes
13478 break
13479 fi
13480 done
13481 esac
13482
13483 exp_sym_flag='-bexport'
13484 no_entry_flag='-bnoentry'
13485 fi
13486
13487 # When large executables or shared objects are built, AIX ld can
13488 # have problems creating the table of contents. If linking a library
13489 # or program results in "error TOC overflow" add -mminimal-toc to
13490 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13491 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13492
13493 archive_cmds_F77=''
13494 hardcode_direct_F77=yes
13495 hardcode_libdir_separator_F77=':'
13496 link_all_deplibs_F77=yes
13497
13498 if test "$GCC" = yes; then
brynerd5e66382006-09-08 02:35:53 +000013499 case $host_os in aix4.012|aix4.012.*)
brynercb91a2f2006-08-25 21:14:45 +000013500 # We only want to do this on AIX 4.2 and lower, the check
13501 # below for broken collect2 doesn't work under 4.3+
13502 collect2name=`${CC} -print-prog-name=collect2`
13503 if test -f "$collect2name" && \
13504 strings "$collect2name" | grep resolve_lib_name >/dev/null
13505 then
13506 # We have reworked collect2
13507 hardcode_direct_F77=yes
13508 else
13509 # We have old collect2
13510 hardcode_direct_F77=unsupported
13511 # It fails to find uninstalled libraries when the uninstalled
13512 # path is not listed in the libpath. Setting hardcode_minus_L
13513 # to unsupported forces relinking
13514 hardcode_minus_L_F77=yes
13515 hardcode_libdir_flag_spec_F77='-L$libdir'
13516 hardcode_libdir_separator_F77=
13517 fi
13518 esac
13519 shared_flag='-shared'
13520 else
13521 # not using gcc
13522 if test "$host_cpu" = ia64; then
13523 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13524 # chokes on -Wl,-G. The following line is correct:
13525 shared_flag='-G'
13526 else
brynerd5e66382006-09-08 02:35:53 +000013527 if test "$aix_use_runtimelinking" = yes; then
brynercb91a2f2006-08-25 21:14:45 +000013528 shared_flag='${wl}-G'
13529 else
13530 shared_flag='${wl}-bM:SRE'
brynerd5e66382006-09-08 02:35:53 +000013531 fi
brynercb91a2f2006-08-25 21:14:45 +000013532 fi
13533 fi
13534
13535 # It seems that -bexpall does not export symbols beginning with
13536 # underscore (_), so it is better to generate a list of symbols to export.
13537 always_export_symbols_F77=yes
13538 if test "$aix_use_runtimelinking" = yes; then
13539 # Warning - without using the other runtime loading flags (-brtl),
13540 # -berok will link without error, but may produce a broken library.
13541 allow_undefined_flag_F77='-berok'
13542 # Determine the default libpath from the value encoded in an empty executable.
13543 cat >conftest.$ac_ext <<_ACEOF
13544 program main
13545
13546 end
13547_ACEOF
13548rm -f conftest.$ac_objext conftest$ac_exeext
13549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13550 (eval $ac_link) 2>conftest.er1
13551 ac_status=$?
13552 grep -v '^ *+' conftest.er1 >conftest.err
13553 rm -f conftest.er1
13554 cat conftest.err >&5
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); } &&
brynerd5e66382006-09-08 02:35:53 +000013557 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +000013558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559 (eval $ac_try) 2>&5
13560 ac_status=$?
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); }; } &&
13563 { ac_try='test -s conftest$ac_exeext'
13564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13565 (eval $ac_try) 2>&5
13566 ac_status=$?
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); }; }; then
13569
13570aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13571}'`
13572# Check for a 64-bit object if we didn't find anything.
13573if 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; }
13574}'`; fi
13575else
13576 echo "$as_me: failed program was:" >&5
13577sed 's/^/| /' conftest.$ac_ext >&5
13578
13579fi
13580rm -f conftest.err conftest.$ac_objext \
13581 conftest$ac_exeext conftest.$ac_ext
13582if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13583
13584 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
brynerd5e66382006-09-08 02:35:53 +000013585 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"
brynercb91a2f2006-08-25 21:14:45 +000013586 else
13587 if test "$host_cpu" = ia64; then
13588 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13589 allow_undefined_flag_F77="-z nodefs"
brynerd5e66382006-09-08 02:35:53 +000013590 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"
brynercb91a2f2006-08-25 21:14:45 +000013591 else
13592 # Determine the default libpath from the value encoded in an empty executable.
13593 cat >conftest.$ac_ext <<_ACEOF
13594 program main
13595
13596 end
13597_ACEOF
13598rm -f conftest.$ac_objext conftest$ac_exeext
13599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13600 (eval $ac_link) 2>conftest.er1
13601 ac_status=$?
13602 grep -v '^ *+' conftest.er1 >conftest.err
13603 rm -f conftest.er1
13604 cat conftest.err >&5
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); } &&
brynerd5e66382006-09-08 02:35:53 +000013607 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +000013608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13609 (eval $ac_try) 2>&5
13610 ac_status=$?
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); }; } &&
13613 { ac_try='test -s conftest$ac_exeext'
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13616 ac_status=$?
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; }; then
13619
13620aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13621}'`
13622# Check for a 64-bit object if we didn't find anything.
13623if 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; }
13624}'`; fi
13625else
13626 echo "$as_me: failed program was:" >&5
13627sed 's/^/| /' conftest.$ac_ext >&5
13628
13629fi
13630rm -f conftest.err conftest.$ac_objext \
13631 conftest$ac_exeext conftest.$ac_ext
13632if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13633
13634 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13635 # Warning - without using the other run time loading flags,
13636 # -berok will link without error, but may produce a broken library.
13637 no_undefined_flag_F77=' ${wl}-bernotok'
13638 allow_undefined_flag_F77=' ${wl}-berok'
brynerd5e66382006-09-08 02:35:53 +000013639 # -bexpall does not export symbols beginning with underscore (_)
13640 always_export_symbols_F77=yes
brynercb91a2f2006-08-25 21:14:45 +000013641 # Exported symbols can be pulled into shared objects from archives
brynerd5e66382006-09-08 02:35:53 +000013642 whole_archive_flag_spec_F77=' '
brynercb91a2f2006-08-25 21:14:45 +000013643 archive_cmds_need_lc_F77=yes
brynerd5e66382006-09-08 02:35:53 +000013644 # This is similar to how AIX traditionally builds it's shared libraries.
13645 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'
brynercb91a2f2006-08-25 21:14:45 +000013646 fi
13647 fi
13648 ;;
13649
13650 amigaos*)
13651 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)'
13652 hardcode_libdir_flag_spec_F77='-L$libdir'
13653 hardcode_minus_L_F77=yes
13654 # see comment about different semantics on the GNU ld section
13655 ld_shlibs_F77=no
13656 ;;
13657
brynerd5e66382006-09-08 02:35:53 +000013658 bsdi4*)
brynercb91a2f2006-08-25 21:14:45 +000013659 export_dynamic_flag_spec_F77=-rdynamic
13660 ;;
13661
13662 cygwin* | mingw* | pw32*)
13663 # When not using gcc, we currently assume that we are using
13664 # Microsoft Visual C++.
13665 # hardcode_libdir_flag_spec is actually meaningless, as there is
13666 # no search path for DLLs.
13667 hardcode_libdir_flag_spec_F77=' '
13668 allow_undefined_flag_F77=unsupported
13669 # Tell ltmain to make .lib files, not .a files.
13670 libext=lib
13671 # Tell ltmain to make .dll files, not .so files.
13672 shrext_cmds=".dll"
13673 # FIXME: Setting linknames here is a bad hack.
13674 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13675 # The linker will automatically build a .lib file if we build a DLL.
13676 old_archive_From_new_cmds_F77='true'
13677 # FIXME: Should let the user specify the lib program.
13678 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
brynerd5e66382006-09-08 02:35:53 +000013679 fix_srcfile_path='`cygpath -w "$srcfile"`'
brynercb91a2f2006-08-25 21:14:45 +000013680 enable_shared_with_static_runtimes_F77=yes
13681 ;;
13682
13683 darwin* | rhapsody*)
brynerd5e66382006-09-08 02:35:53 +000013684 if test "$GXX" = yes ; then
mmentovai3261e8b2006-09-06 02:56:44 +000013685 archive_cmds_need_lc_F77=no
brynerd5e66382006-09-08 02:35:53 +000013686 case "$host_os" in
13687 rhapsody* | darwin1.[012])
13688 allow_undefined_flag_F77='-undefined suppress'
13689 ;;
13690 *) # Darwin 1.3 on
13691 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13692 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13693 else
13694 case ${MACOSX_DEPLOYMENT_TARGET} in
13695 10.[012])
13696 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13697 ;;
13698 10.*)
13699 allow_undefined_flag_F77='-undefined dynamic_lookup'
13700 ;;
13701 esac
13702 fi
13703 ;;
13704 esac
13705 lt_int_apple_cc_single_mod=no
13706 output_verbose_link_cmd='echo'
13707 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13708 lt_int_apple_cc_single_mod=yes
13709 fi
13710 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13711 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13712 else
13713 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'
13714 fi
13715 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13716 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13717 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13718 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}'
13719 else
13720 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}'
13721 fi
13722 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}'
brynercb91a2f2006-08-25 21:14:45 +000013723 hardcode_direct_F77=no
13724 hardcode_automatic_F77=yes
13725 hardcode_shlibpath_var_F77=unsupported
brynerd5e66382006-09-08 02:35:53 +000013726 whole_archive_flag_spec_F77='-all_load $convenience'
brynercb91a2f2006-08-25 21:14:45 +000013727 link_all_deplibs_F77=yes
13728 else
brynerd5e66382006-09-08 02:35:53 +000013729 ld_shlibs_F77=no
brynercb91a2f2006-08-25 21:14:45 +000013730 fi
13731 ;;
13732
13733 dgux*)
13734 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13735 hardcode_libdir_flag_spec_F77='-L$libdir'
13736 hardcode_shlibpath_var_F77=no
13737 ;;
13738
13739 freebsd1*)
13740 ld_shlibs_F77=no
13741 ;;
13742
13743 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13744 # support. Future versions do this automatically, but an explicit c++rt0.o
13745 # does not break anything, and helps significantly (at the cost of a little
13746 # extra space).
13747 freebsd2.2*)
13748 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13749 hardcode_libdir_flag_spec_F77='-R$libdir'
13750 hardcode_direct_F77=yes
13751 hardcode_shlibpath_var_F77=no
13752 ;;
13753
13754 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13755 freebsd2*)
13756 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13757 hardcode_direct_F77=yes
13758 hardcode_minus_L_F77=yes
13759 hardcode_shlibpath_var_F77=no
13760 ;;
13761
13762 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
brynerd5e66382006-09-08 02:35:53 +000013763 freebsd* | kfreebsd*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000013764 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13765 hardcode_libdir_flag_spec_F77='-R$libdir'
13766 hardcode_direct_F77=yes
13767 hardcode_shlibpath_var_F77=no
13768 ;;
13769
13770 hpux9*)
13771 if test "$GCC" = yes; then
13772 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'
13773 else
13774 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'
13775 fi
13776 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13777 hardcode_libdir_separator_F77=:
13778 hardcode_direct_F77=yes
13779
13780 # hardcode_minus_L: Not really in the search PATH,
13781 # but as the default location of the library.
13782 hardcode_minus_L_F77=yes
13783 export_dynamic_flag_spec_F77='${wl}-E'
13784 ;;
13785
brynerd5e66382006-09-08 02:35:53 +000013786 hpux10* | hpux11*)
brynercb91a2f2006-08-25 21:14:45 +000013787 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
brynerd5e66382006-09-08 02:35:53 +000013788 case "$host_cpu" in
13789 hppa*64*|ia64*)
brynercb91a2f2006-08-25 21:14:45 +000013790 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13791 ;;
13792 *)
13793 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13794 ;;
13795 esac
13796 else
brynerd5e66382006-09-08 02:35:53 +000013797 case "$host_cpu" in
13798 hppa*64*|ia64*)
13799 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
brynercb91a2f2006-08-25 21:14:45 +000013800 ;;
13801 *)
brynerd5e66382006-09-08 02:35:53 +000013802 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
brynercb91a2f2006-08-25 21:14:45 +000013803 ;;
13804 esac
13805 fi
13806 if test "$with_gnu_ld" = no; then
brynerd5e66382006-09-08 02:35:53 +000013807 case "$host_cpu" in
13808 hppa*64*)
13809 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
mmentovai3261e8b2006-09-06 02:56:44 +000013810 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
brynerd5e66382006-09-08 02:35:53 +000013811 hardcode_libdir_separator_F77=:
mmentovai3261e8b2006-09-06 02:56:44 +000013812 hardcode_direct_F77=no
13813 hardcode_shlibpath_var_F77=no
bryner07f8ef52006-09-05 19:42:57 +000013814 ;;
brynerd5e66382006-09-08 02:35:53 +000013815 ia64*)
13816 hardcode_libdir_flag_spec_F77='-L$libdir'
13817 hardcode_direct_F77=no
13818 hardcode_shlibpath_var_F77=no
13819
13820 # hardcode_minus_L: Not really in the search PATH,
13821 # but as the default location of the library.
13822 hardcode_minus_L_F77=yes
13823 ;;
brynercb91a2f2006-08-25 21:14:45 +000013824 *)
brynerd5e66382006-09-08 02:35:53 +000013825 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13826 hardcode_libdir_separator_F77=:
brynercb91a2f2006-08-25 21:14:45 +000013827 hardcode_direct_F77=yes
13828 export_dynamic_flag_spec_F77='${wl}-E'
13829
13830 # hardcode_minus_L: Not really in the search PATH,
13831 # but as the default location of the library.
13832 hardcode_minus_L_F77=yes
13833 ;;
13834 esac
13835 fi
13836 ;;
13837
13838 irix5* | irix6* | nonstopux*)
13839 if test "$GCC" = yes; then
13840 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'
13841 else
13842 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'
13843 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13844 fi
13845 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13846 hardcode_libdir_separator_F77=:
13847 link_all_deplibs_F77=yes
13848 ;;
13849
brynerd5e66382006-09-08 02:35:53 +000013850 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000013851 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13852 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13853 else
13854 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13855 fi
13856 hardcode_libdir_flag_spec_F77='-R$libdir'
13857 hardcode_direct_F77=yes
13858 hardcode_shlibpath_var_F77=no
13859 ;;
13860
13861 newsos6)
13862 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13863 hardcode_direct_F77=yes
13864 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13865 hardcode_libdir_separator_F77=:
13866 hardcode_shlibpath_var_F77=no
13867 ;;
13868
13869 openbsd*)
13870 hardcode_direct_F77=yes
13871 hardcode_shlibpath_var_F77=no
13872 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13873 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13874 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13875 export_dynamic_flag_spec_F77='${wl}-E'
13876 else
13877 case $host_os in
13878 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13879 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13880 hardcode_libdir_flag_spec_F77='-R$libdir'
13881 ;;
13882 *)
13883 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13884 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13885 ;;
13886 esac
13887 fi
13888 ;;
13889
13890 os2*)
13891 hardcode_libdir_flag_spec_F77='-L$libdir'
13892 hardcode_minus_L_F77=yes
13893 allow_undefined_flag_F77=unsupported
13894 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'
13895 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13896 ;;
13897
13898 osf3*)
13899 if test "$GCC" = yes; then
13900 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13901 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'
13902 else
13903 allow_undefined_flag_F77=' -expect_unresolved \*'
13904 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'
13905 fi
13906 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13907 hardcode_libdir_separator_F77=:
13908 ;;
13909
13910 osf4* | osf5*) # as osf3* with the addition of -msym flag
13911 if test "$GCC" = yes; then
13912 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13913 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'
13914 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13915 else
13916 allow_undefined_flag_F77=' -expect_unresolved \*'
13917 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'
13918 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~
brynerd5e66382006-09-08 02:35:53 +000013919 $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'
brynercb91a2f2006-08-25 21:14:45 +000013920
13921 # Both c and cxx compiler support -rpath directly
13922 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13923 fi
13924 hardcode_libdir_separator_F77=:
13925 ;;
13926
brynerd5e66382006-09-08 02:35:53 +000013927 sco3.2v5*)
13928 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13929 hardcode_shlibpath_var_F77=no
13930 export_dynamic_flag_spec_F77='${wl}-Bexport'
13931 runpath_var=LD_RUN_PATH
13932 hardcode_runpath_var=yes
13933 ;;
13934
brynercb91a2f2006-08-25 21:14:45 +000013935 solaris*)
13936 no_undefined_flag_F77=' -z text'
13937 if test "$GCC" = yes; then
13938 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13939 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13940 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13941 else
13942 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13943 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13944 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13945 fi
13946 hardcode_libdir_flag_spec_F77='-R$libdir'
13947 hardcode_shlibpath_var_F77=no
13948 case $host_os in
13949 solaris2.[0-5] | solaris2.[0-5].*) ;;
brynerd5e66382006-09-08 02:35:53 +000013950 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13951 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
brynercb91a2f2006-08-25 21:14:45 +000013952 esac
13953 link_all_deplibs_F77=yes
13954 ;;
13955
13956 sunos4*)
13957 if test "x$host_vendor" = xsequent; then
13958 # Use $CC to link under sequent, because it throws in some extra .o
13959 # files that make .init and .fini sections work.
13960 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13961 else
13962 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13963 fi
13964 hardcode_libdir_flag_spec_F77='-L$libdir'
13965 hardcode_direct_F77=yes
13966 hardcode_minus_L_F77=yes
13967 hardcode_shlibpath_var_F77=no
13968 ;;
13969
13970 sysv4)
13971 case $host_vendor in
13972 sni)
13973 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13974 hardcode_direct_F77=yes # is this really true???
13975 ;;
13976 siemens)
13977 ## LD is ld it makes a PLAMLIB
13978 ## CC just makes a GrossModule.
13979 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13980 reload_cmds_F77='$CC -r -o $output$reload_objs'
13981 hardcode_direct_F77=no
13982 ;;
13983 motorola)
13984 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13985 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13986 ;;
13987 esac
13988 runpath_var='LD_RUN_PATH'
13989 hardcode_shlibpath_var_F77=no
13990 ;;
13991
13992 sysv4.3*)
13993 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13994 hardcode_shlibpath_var_F77=no
13995 export_dynamic_flag_spec_F77='-Bexport'
13996 ;;
13997
13998 sysv4*MP*)
13999 if test -d /usr/nec; then
14000 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14001 hardcode_shlibpath_var_F77=no
14002 runpath_var=LD_RUN_PATH
14003 hardcode_runpath_var=yes
14004 ld_shlibs_F77=yes
14005 fi
14006 ;;
14007
brynerd5e66382006-09-08 02:35:53 +000014008 sysv4.2uw2*)
14009 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14010 hardcode_direct_F77=yes
14011 hardcode_minus_L_F77=no
brynercb91a2f2006-08-25 21:14:45 +000014012 hardcode_shlibpath_var_F77=no
brynerd5e66382006-09-08 02:35:53 +000014013 hardcode_runpath_var=yes
14014 runpath_var=LD_RUN_PATH
bryner07f8ef52006-09-05 19:42:57 +000014015 ;;
14016
brynerd5e66382006-09-08 02:35:53 +000014017 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14018 no_undefined_flag_F77='${wl}-z ${wl}text'
mmentovai3261e8b2006-09-06 02:56:44 +000014019 if test "$GCC" = yes; then
brynerd5e66382006-09-08 02:35:53 +000014020 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +000014021 else
brynerd5e66382006-09-08 02:35:53 +000014022 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +000014023 fi
brynerd5e66382006-09-08 02:35:53 +000014024 runpath_var='LD_RUN_PATH'
14025 hardcode_shlibpath_var_F77=no
14026 ;;
14027
14028 sysv5*)
14029 no_undefined_flag_F77=' -z text'
14030 # $CC -shared without GNU ld will not create a library from C++
14031 # object files and a static libstdc++, better avoid it by now
14032 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14033 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14034 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14035 hardcode_libdir_flag_spec_F77=
14036 hardcode_shlibpath_var_F77=no
14037 runpath_var='LD_RUN_PATH'
brynercb91a2f2006-08-25 21:14:45 +000014038 ;;
14039
14040 uts4*)
14041 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14042 hardcode_libdir_flag_spec_F77='-L$libdir'
14043 hardcode_shlibpath_var_F77=no
14044 ;;
14045
14046 *)
14047 ld_shlibs_F77=no
14048 ;;
14049 esac
14050 fi
14051
14052echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14053echo "${ECHO_T}$ld_shlibs_F77" >&6
14054test "$ld_shlibs_F77" = no && can_build_shared=no
14055
brynerd5e66382006-09-08 02:35:53 +000014056variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14057if test "$GCC" = yes; then
14058 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14059fi
14060
brynercb91a2f2006-08-25 21:14:45 +000014061#
14062# Do we need to explicitly link libc?
14063#
14064case "x$archive_cmds_need_lc_F77" in
14065x|xyes)
14066 # Assume -lc should be added
14067 archive_cmds_need_lc_F77=yes
14068
14069 if test "$enable_shared" = yes && test "$GCC" = yes; then
14070 case $archive_cmds_F77 in
14071 *'~'*)
14072 # FIXME: we may have to deal with multi-command sequences.
14073 ;;
14074 '$CC '*)
14075 # Test whether the compiler implicitly links with -lc since on some
14076 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14077 # to ld, don't add -lc before -lgcc.
14078 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14079echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14080 $rm conftest*
14081 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14082
14083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14084 (eval $ac_compile) 2>&5
14085 ac_status=$?
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); } 2>conftest.err; then
14088 soname=conftest
14089 lib=conftest
14090 libobjs=conftest.$ac_objext
14091 deplibs=
14092 wl=$lt_prog_compiler_wl_F77
14093 compiler_flags=-v
14094 linker_flags=-v
14095 verstring=
14096 output_objdir=.
14097 libname=conftest
14098 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14099 allow_undefined_flag_F77=
14100 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14101 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14102 ac_status=$?
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }
14105 then
14106 archive_cmds_need_lc_F77=no
14107 else
14108 archive_cmds_need_lc_F77=yes
14109 fi
14110 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14111 else
14112 cat conftest.err 1>&5
14113 fi
14114 $rm conftest*
14115 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14116echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14117 ;;
14118 esac
14119 fi
14120 ;;
14121esac
14122
14123echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14124echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14125library_names_spec=
14126libname_spec='lib$name'
14127soname_spec=
14128shrext_cmds=".so"
14129postinstall_cmds=
14130postuninstall_cmds=
14131finish_cmds=
14132finish_eval=
14133shlibpath_var=
14134shlibpath_overrides_runpath=unknown
14135version_type=none
14136dynamic_linker="$host_os ld.so"
14137sys_lib_dlsearch_path_spec="/lib /usr/lib"
14138if test "$GCC" = yes; then
14139 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14140 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14141 # if the path contains ";" then we assume it to be the separator
14142 # otherwise default to the standard path separator (i.e. ":") - it is
14143 # assumed that no part of a normal pathname contains ";" but that should
14144 # okay in the real world where ";" in dirpaths is itself problematic.
14145 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14146 else
14147 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14148 fi
14149else
14150 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14151fi
14152need_lib_prefix=unknown
14153hardcode_into_libs=no
14154
14155# when you set need_version to no, make sure it does not cause -set_version
14156# flags to be left without arguments
14157need_version=unknown
14158
14159case $host_os in
14160aix3*)
14161 version_type=linux
14162 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14163 shlibpath_var=LIBPATH
14164
14165 # AIX 3 has no versioning support, so we append a major version to the name.
14166 soname_spec='${libname}${release}${shared_ext}$major'
14167 ;;
14168
14169aix4* | aix5*)
14170 version_type=linux
14171 need_lib_prefix=no
14172 need_version=no
14173 hardcode_into_libs=yes
14174 if test "$host_cpu" = ia64; then
14175 # AIX 5 supports IA64
14176 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14177 shlibpath_var=LD_LIBRARY_PATH
14178 else
14179 # With GCC up to 2.95.x, collect2 would create an import file
14180 # for dependence libraries. The import file would start with
14181 # the line `#! .'. This would cause the generated library to
14182 # depend on `.', always an invalid library. This was fixed in
14183 # development snapshots of GCC prior to 3.0.
14184 case $host_os in
14185 aix4 | aix4.[01] | aix4.[01].*)
14186 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14187 echo ' yes '
14188 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14189 :
14190 else
14191 can_build_shared=no
14192 fi
14193 ;;
14194 esac
14195 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14196 # soname into executable. Probably we can add versioning support to
14197 # collect2, so additional links can be useful in future.
14198 if test "$aix_use_runtimelinking" = yes; then
14199 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14200 # instead of lib<name>.a to let people know that these are not
14201 # typical AIX shared libraries.
14202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14203 else
14204 # We preserve .a as extension for shared libraries through AIX4.2
14205 # and later when we are not doing run time linking.
14206 library_names_spec='${libname}${release}.a $libname.a'
14207 soname_spec='${libname}${release}${shared_ext}$major'
14208 fi
14209 shlibpath_var=LIBPATH
14210 fi
14211 ;;
14212
14213amigaos*)
14214 library_names_spec='$libname.ixlibrary $libname.a'
14215 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14216 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'
14217 ;;
14218
14219beos*)
14220 library_names_spec='${libname}${shared_ext}'
14221 dynamic_linker="$host_os ld.so"
14222 shlibpath_var=LIBRARY_PATH
14223 ;;
14224
brynerd5e66382006-09-08 02:35:53 +000014225bsdi4*)
brynercb91a2f2006-08-25 21:14:45 +000014226 version_type=linux
14227 need_version=no
14228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14229 soname_spec='${libname}${release}${shared_ext}$major'
14230 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14231 shlibpath_var=LD_LIBRARY_PATH
14232 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14233 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14234 # the default ld.so.conf also contains /usr/contrib/lib and
14235 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14236 # libtool to hard-code these into programs
14237 ;;
14238
14239cygwin* | mingw* | pw32*)
14240 version_type=windows
14241 shrext_cmds=".dll"
14242 need_version=no
14243 need_lib_prefix=no
14244
14245 case $GCC,$host_os in
14246 yes,cygwin* | yes,mingw* | yes,pw32*)
14247 library_names_spec='$libname.dll.a'
14248 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14249 postinstall_cmds='base_file=`basename \${file}`~
14250 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14251 dldir=$destdir/`dirname \$dlpath`~
14252 test -d \$dldir || mkdir -p \$dldir~
brynerd5e66382006-09-08 02:35:53 +000014253 $install_prog $dir/$dlname \$dldir/$dlname'
brynercb91a2f2006-08-25 21:14:45 +000014254 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14255 dlpath=$dir/\$dldll~
14256 $rm \$dlpath'
14257 shlibpath_overrides_runpath=yes
14258
14259 case $host_os in
14260 cygwin*)
14261 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14262 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14263 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14264 ;;
14265 mingw*)
14266 # MinGW DLLs use traditional 'lib' prefix
14267 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14268 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14269 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14270 # It is most probably a Windows format PATH printed by
14271 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14272 # path with ; separators, and with drive letters. We can handle the
14273 # drive letters (cygwin fileutils understands them), so leave them,
14274 # especially as we might pass files found there to a mingw objdump,
14275 # which wouldn't understand a cygwinified path. Ahh.
14276 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14277 else
14278 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14279 fi
14280 ;;
14281 pw32*)
14282 # pw32 DLLs use 'pw' prefix rather than 'lib'
brynerd5e66382006-09-08 02:35:53 +000014283 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
brynercb91a2f2006-08-25 21:14:45 +000014284 ;;
14285 esac
14286 ;;
14287
14288 *)
14289 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14290 ;;
14291 esac
14292 dynamic_linker='Win32 ld.exe'
14293 # FIXME: first we should search . and the directory the executable is in
14294 shlibpath_var=PATH
14295 ;;
14296
14297darwin* | rhapsody*)
14298 dynamic_linker="$host_os dyld"
14299 version_type=darwin
14300 need_lib_prefix=no
14301 need_version=no
14302 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14303 soname_spec='${libname}${release}${major}$shared_ext'
14304 shlibpath_overrides_runpath=yes
14305 shlibpath_var=DYLD_LIBRARY_PATH
brynerd5e66382006-09-08 02:35:53 +000014306 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
brynercb91a2f2006-08-25 21:14:45 +000014307 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14308 if test "$GCC" = yes; then
14309 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"`
14310 else
14311 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14312 fi
14313 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14314 ;;
14315
14316dgux*)
14317 version_type=linux
14318 need_lib_prefix=no
14319 need_version=no
14320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14321 soname_spec='${libname}${release}${shared_ext}$major'
14322 shlibpath_var=LD_LIBRARY_PATH
14323 ;;
14324
14325freebsd1*)
14326 dynamic_linker=no
14327 ;;
14328
14329kfreebsd*-gnu)
14330 version_type=linux
14331 need_lib_prefix=no
14332 need_version=no
14333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14334 soname_spec='${libname}${release}${shared_ext}$major'
14335 shlibpath_var=LD_LIBRARY_PATH
14336 shlibpath_overrides_runpath=no
14337 hardcode_into_libs=yes
14338 dynamic_linker='GNU ld.so'
14339 ;;
14340
brynerd5e66382006-09-08 02:35:53 +000014341freebsd*)
14342 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
brynercb91a2f2006-08-25 21:14:45 +000014343 version_type=freebsd-$objformat
14344 case $version_type in
14345 freebsd-elf*)
14346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14347 need_version=no
14348 need_lib_prefix=no
14349 ;;
14350 freebsd-*)
14351 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14352 need_version=yes
14353 ;;
14354 esac
14355 shlibpath_var=LD_LIBRARY_PATH
14356 case $host_os in
14357 freebsd2*)
14358 shlibpath_overrides_runpath=yes
14359 ;;
brynerd5e66382006-09-08 02:35:53 +000014360 freebsd3.01* | freebsdelf3.01*)
brynercb91a2f2006-08-25 21:14:45 +000014361 shlibpath_overrides_runpath=yes
14362 hardcode_into_libs=yes
14363 ;;
brynerd5e66382006-09-08 02:35:53 +000014364 *) # from 3.2 on
brynercb91a2f2006-08-25 21:14:45 +000014365 shlibpath_overrides_runpath=no
14366 hardcode_into_libs=yes
14367 ;;
14368 esac
14369 ;;
14370
14371gnu*)
14372 version_type=linux
14373 need_lib_prefix=no
14374 need_version=no
14375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14376 soname_spec='${libname}${release}${shared_ext}$major'
14377 shlibpath_var=LD_LIBRARY_PATH
14378 hardcode_into_libs=yes
14379 ;;
14380
14381hpux9* | hpux10* | hpux11*)
14382 # Give a soname corresponding to the major version so that dld.sl refuses to
14383 # link against other versions.
14384 version_type=sunos
14385 need_lib_prefix=no
14386 need_version=no
brynerd5e66382006-09-08 02:35:53 +000014387 case "$host_cpu" in
brynercb91a2f2006-08-25 21:14:45 +000014388 ia64*)
14389 shrext_cmds='.so'
14390 hardcode_into_libs=yes
14391 dynamic_linker="$host_os dld.so"
14392 shlibpath_var=LD_LIBRARY_PATH
14393 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14395 soname_spec='${libname}${release}${shared_ext}$major'
14396 if test "X$HPUX_IA64_MODE" = X32; then
14397 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14398 else
14399 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14400 fi
14401 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14402 ;;
14403 hppa*64*)
14404 shrext_cmds='.sl'
14405 hardcode_into_libs=yes
14406 dynamic_linker="$host_os dld.sl"
14407 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14408 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14410 soname_spec='${libname}${release}${shared_ext}$major'
14411 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14412 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14413 ;;
14414 *)
14415 shrext_cmds='.sl'
14416 dynamic_linker="$host_os dld.sl"
14417 shlibpath_var=SHLIB_PATH
14418 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14420 soname_spec='${libname}${release}${shared_ext}$major'
14421 ;;
14422 esac
14423 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14424 postinstall_cmds='chmod 555 $lib'
14425 ;;
14426
14427irix5* | irix6* | nonstopux*)
14428 case $host_os in
14429 nonstopux*) version_type=nonstopux ;;
14430 *)
14431 if test "$lt_cv_prog_gnu_ld" = yes; then
14432 version_type=linux
14433 else
14434 version_type=irix
14435 fi ;;
14436 esac
14437 need_lib_prefix=no
14438 need_version=no
14439 soname_spec='${libname}${release}${shared_ext}$major'
14440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14441 case $host_os in
14442 irix5* | nonstopux*)
14443 libsuff= shlibsuff=
14444 ;;
14445 *)
14446 case $LD in # libtool.m4 will add one of these switches to LD
14447 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14448 libsuff= shlibsuff= libmagic=32-bit;;
14449 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14450 libsuff=32 shlibsuff=N32 libmagic=N32;;
14451 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14452 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14453 *) libsuff= shlibsuff= libmagic=never-match;;
14454 esac
14455 ;;
14456 esac
14457 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14458 shlibpath_overrides_runpath=no
14459 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14460 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14461 hardcode_into_libs=yes
14462 ;;
14463
14464# No shared lib support for Linux oldld, aout, or coff.
14465linux*oldld* | linux*aout* | linux*coff*)
14466 dynamic_linker=no
14467 ;;
14468
14469# This must be Linux ELF.
14470linux*)
14471 version_type=linux
14472 need_lib_prefix=no
14473 need_version=no
14474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14475 soname_spec='${libname}${release}${shared_ext}$major'
14476 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14477 shlibpath_var=LD_LIBRARY_PATH
14478 shlibpath_overrides_runpath=no
14479 # This implies no fast_install, which is unacceptable.
14480 # Some rework will be needed to allow for fast_install
14481 # before this can be enabled.
14482 hardcode_into_libs=yes
14483
14484 # Append ld.so.conf contents to the search path
14485 if test -f /etc/ld.so.conf; then
brynerd5e66382006-09-08 02:35:53 +000014486 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
brynercb91a2f2006-08-25 21:14:45 +000014487 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14488 fi
14489
14490 # We used to test for /lib/ld.so.1 and disable shared libraries on
14491 # powerpc, because MkLinux only supported shared libraries with the
14492 # GNU dynamic linker. Since this was broken with cross compilers,
14493 # most powerpc-linux boxes support dynamic linking these days and
14494 # people can always --disable-shared, the test was removed, and we
14495 # assume the GNU/Linux dynamic linker is in use.
14496 dynamic_linker='GNU/Linux ld.so'
14497 ;;
14498
brynerd5e66382006-09-08 02:35:53 +000014499netbsdelf*-gnu)
14500 version_type=linux
14501 need_lib_prefix=no
14502 need_version=no
14503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14504 soname_spec='${libname}${release}${shared_ext}$major'
14505 shlibpath_var=LD_LIBRARY_PATH
14506 shlibpath_overrides_runpath=no
14507 hardcode_into_libs=yes
14508 dynamic_linker='NetBSD ld.elf_so'
14509 ;;
14510
brynercb91a2f2006-08-25 21:14:45 +000014511knetbsd*-gnu)
14512 version_type=linux
14513 need_lib_prefix=no
14514 need_version=no
14515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14516 soname_spec='${libname}${release}${shared_ext}$major'
14517 shlibpath_var=LD_LIBRARY_PATH
14518 shlibpath_overrides_runpath=no
14519 hardcode_into_libs=yes
14520 dynamic_linker='GNU ld.so'
14521 ;;
14522
14523netbsd*)
14524 version_type=sunos
14525 need_lib_prefix=no
14526 need_version=no
14527 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14529 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14530 dynamic_linker='NetBSD (a.out) ld.so'
14531 else
14532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14533 soname_spec='${libname}${release}${shared_ext}$major'
14534 dynamic_linker='NetBSD ld.elf_so'
14535 fi
14536 shlibpath_var=LD_LIBRARY_PATH
14537 shlibpath_overrides_runpath=yes
14538 hardcode_into_libs=yes
14539 ;;
14540
14541newsos6)
14542 version_type=linux
14543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14544 shlibpath_var=LD_LIBRARY_PATH
14545 shlibpath_overrides_runpath=yes
14546 ;;
14547
14548nto-qnx*)
14549 version_type=linux
14550 need_lib_prefix=no
14551 need_version=no
14552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14553 soname_spec='${libname}${release}${shared_ext}$major'
14554 shlibpath_var=LD_LIBRARY_PATH
14555 shlibpath_overrides_runpath=yes
14556 ;;
14557
14558openbsd*)
14559 version_type=sunos
14560 need_lib_prefix=no
brynerd5e66382006-09-08 02:35:53 +000014561 need_version=yes
brynercb91a2f2006-08-25 21:14:45 +000014562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14563 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14564 shlibpath_var=LD_LIBRARY_PATH
14565 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14566 case $host_os in
14567 openbsd2.[89] | openbsd2.[89].*)
14568 shlibpath_overrides_runpath=no
14569 ;;
14570 *)
14571 shlibpath_overrides_runpath=yes
14572 ;;
14573 esac
14574 else
14575 shlibpath_overrides_runpath=yes
14576 fi
14577 ;;
14578
14579os2*)
14580 libname_spec='$name'
14581 shrext_cmds=".dll"
14582 need_lib_prefix=no
14583 library_names_spec='$libname${shared_ext} $libname.a'
14584 dynamic_linker='OS/2 ld.exe'
14585 shlibpath_var=LIBPATH
14586 ;;
14587
14588osf3* | osf4* | osf5*)
14589 version_type=osf
14590 need_lib_prefix=no
14591 need_version=no
14592 soname_spec='${libname}${release}${shared_ext}$major'
14593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14594 shlibpath_var=LD_LIBRARY_PATH
14595 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14596 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14597 ;;
14598
brynerd5e66382006-09-08 02:35:53 +000014599sco3.2v5*)
14600 version_type=osf
14601 soname_spec='${libname}${release}${shared_ext}$major'
14602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14603 shlibpath_var=LD_LIBRARY_PATH
14604 ;;
14605
brynercb91a2f2006-08-25 21:14:45 +000014606solaris*)
14607 version_type=linux
14608 need_lib_prefix=no
14609 need_version=no
14610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14611 soname_spec='${libname}${release}${shared_ext}$major'
14612 shlibpath_var=LD_LIBRARY_PATH
14613 shlibpath_overrides_runpath=yes
14614 hardcode_into_libs=yes
14615 # ldd complains unless libraries are executable
14616 postinstall_cmds='chmod +x $lib'
14617 ;;
14618
14619sunos4*)
14620 version_type=sunos
14621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14622 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14623 shlibpath_var=LD_LIBRARY_PATH
14624 shlibpath_overrides_runpath=yes
14625 if test "$with_gnu_ld" = yes; then
14626 need_lib_prefix=no
14627 fi
14628 need_version=yes
14629 ;;
14630
brynerd5e66382006-09-08 02:35:53 +000014631sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
brynercb91a2f2006-08-25 21:14:45 +000014632 version_type=linux
14633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14634 soname_spec='${libname}${release}${shared_ext}$major'
14635 shlibpath_var=LD_LIBRARY_PATH
14636 case $host_vendor in
14637 sni)
14638 shlibpath_overrides_runpath=no
14639 need_lib_prefix=no
14640 export_dynamic_flag_spec='${wl}-Blargedynsym'
14641 runpath_var=LD_RUN_PATH
14642 ;;
14643 siemens)
14644 need_lib_prefix=no
14645 ;;
14646 motorola)
14647 need_lib_prefix=no
14648 need_version=no
14649 shlibpath_overrides_runpath=no
14650 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14651 ;;
14652 esac
14653 ;;
14654
14655sysv4*MP*)
14656 if test -d /usr/nec ;then
14657 version_type=linux
14658 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14659 soname_spec='$libname${shared_ext}.$major'
14660 shlibpath_var=LD_LIBRARY_PATH
14661 fi
14662 ;;
14663
14664uts4*)
14665 version_type=linux
14666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14667 soname_spec='${libname}${release}${shared_ext}$major'
14668 shlibpath_var=LD_LIBRARY_PATH
14669 ;;
14670
14671*)
14672 dynamic_linker=no
14673 ;;
14674esac
14675echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14676echo "${ECHO_T}$dynamic_linker" >&6
14677test "$dynamic_linker" = no && can_build_shared=no
14678
14679echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14680echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14681hardcode_action_F77=
14682if test -n "$hardcode_libdir_flag_spec_F77" || \
brynerd5e66382006-09-08 02:35:53 +000014683 test -n "$runpath_var F77" || \
14684 test "X$hardcode_automatic_F77"="Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +000014685
14686 # We can hardcode non-existant directories.
14687 if test "$hardcode_direct_F77" != no &&
14688 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14689 # have to relink, otherwise we might link with an installed library
14690 # when we should be linking with a yet-to-be-installed one
14691 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14692 test "$hardcode_minus_L_F77" != no; then
14693 # Linking always hardcodes the temporary library directory.
14694 hardcode_action_F77=relink
14695 else
14696 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14697 hardcode_action_F77=immediate
14698 fi
14699else
14700 # We cannot hardcode anything, or else we can only hardcode existing
14701 # directories.
14702 hardcode_action_F77=unsupported
14703fi
14704echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14705echo "${ECHO_T}$hardcode_action_F77" >&6
14706
14707if test "$hardcode_action_F77" = relink; then
14708 # Fast installation is not supported
14709 enable_fast_install=no
14710elif test "$shlibpath_overrides_runpath" = yes ||
14711 test "$enable_shared" = no; then
14712 # Fast installation is not necessary
14713 enable_fast_install=needless
14714fi
14715
brynerd5e66382006-09-08 02:35:53 +000014716striplib=
14717old_striplib=
14718echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14719echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14720if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14721 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14722 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14723 echo "$as_me:$LINENO: result: yes" >&5
14724echo "${ECHO_T}yes" >&6
14725else
14726# FIXME - insert some real tests, host_os isn't really good enough
14727 case $host_os in
14728 darwin*)
14729 if test -n "$STRIP" ; then
14730 striplib="$STRIP -x"
14731 echo "$as_me:$LINENO: result: yes" >&5
14732echo "${ECHO_T}yes" >&6
14733 else
14734 echo "$as_me:$LINENO: result: no" >&5
14735echo "${ECHO_T}no" >&6
14736fi
14737 ;;
14738 *)
14739 echo "$as_me:$LINENO: result: no" >&5
14740echo "${ECHO_T}no" >&6
14741 ;;
14742 esac
14743fi
14744
14745
brynercb91a2f2006-08-25 21:14:45 +000014746
14747# The else clause should only fire when bootstrapping the
14748# libtool distribution, otherwise you forgot to ship ltmain.sh
14749# with your package, and you will get complaints that there are
14750# no rules to generate ltmain.sh.
14751if test -f "$ltmain"; then
14752 # See if we are running on zsh, and set the options which allow our commands through
14753 # without removal of \ escapes.
14754 if test -n "${ZSH_VERSION+set}" ; then
14755 setopt NO_GLOB_SUBST
14756 fi
14757 # Now quote all the things that may contain metacharacters while being
14758 # careful not to overquote the AC_SUBSTed values. We take copies of the
14759 # variables and quote the copies for generation of the libtool script.
brynerd5e66382006-09-08 02:35:53 +000014760 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
brynercb91a2f2006-08-25 21:14:45 +000014761 SED SHELL STRIP \
14762 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14763 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14764 deplibs_check_method reload_flag reload_cmds need_locks \
14765 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14766 lt_cv_sys_global_symbol_to_c_name_address \
14767 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14768 old_postinstall_cmds old_postuninstall_cmds \
14769 compiler_F77 \
14770 CC_F77 \
14771 LD_F77 \
14772 lt_prog_compiler_wl_F77 \
14773 lt_prog_compiler_pic_F77 \
14774 lt_prog_compiler_static_F77 \
14775 lt_prog_compiler_no_builtin_flag_F77 \
14776 export_dynamic_flag_spec_F77 \
14777 thread_safe_flag_spec_F77 \
14778 whole_archive_flag_spec_F77 \
14779 enable_shared_with_static_runtimes_F77 \
14780 old_archive_cmds_F77 \
14781 old_archive_from_new_cmds_F77 \
14782 predep_objects_F77 \
14783 postdep_objects_F77 \
14784 predeps_F77 \
14785 postdeps_F77 \
14786 compiler_lib_search_path_F77 \
14787 archive_cmds_F77 \
14788 archive_expsym_cmds_F77 \
14789 postinstall_cmds_F77 \
14790 postuninstall_cmds_F77 \
14791 old_archive_from_expsyms_cmds_F77 \
14792 allow_undefined_flag_F77 \
14793 no_undefined_flag_F77 \
14794 export_symbols_cmds_F77 \
14795 hardcode_libdir_flag_spec_F77 \
14796 hardcode_libdir_flag_spec_ld_F77 \
14797 hardcode_libdir_separator_F77 \
14798 hardcode_automatic_F77 \
14799 module_cmds_F77 \
14800 module_expsym_cmds_F77 \
14801 lt_cv_prog_compiler_c_o_F77 \
14802 exclude_expsyms_F77 \
14803 include_expsyms_F77; do
14804
14805 case $var in
14806 old_archive_cmds_F77 | \
14807 old_archive_from_new_cmds_F77 | \
14808 archive_cmds_F77 | \
14809 archive_expsym_cmds_F77 | \
14810 module_cmds_F77 | \
14811 module_expsym_cmds_F77 | \
14812 old_archive_from_expsyms_cmds_F77 | \
14813 export_symbols_cmds_F77 | \
14814 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14815 postinstall_cmds | postuninstall_cmds | \
14816 old_postinstall_cmds | old_postuninstall_cmds | \
14817 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14818 # Double-quote double-evaled strings.
14819 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14820 ;;
14821 *)
14822 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14823 ;;
14824 esac
14825 done
14826
14827 case $lt_echo in
14828 *'\$0 --fallback-echo"')
14829 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14830 ;;
14831 esac
14832
14833cfgfile="$ofile"
14834
14835 cat <<__EOF__ >> "$cfgfile"
14836# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14837
14838# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14839
14840# Shell to use when invoking shell scripts.
14841SHELL=$lt_SHELL
14842
14843# Whether or not to build shared libraries.
14844build_libtool_libs=$enable_shared
14845
14846# Whether or not to build static libraries.
14847build_old_libs=$enable_static
14848
14849# Whether or not to add -lc for building shared libraries.
14850build_libtool_need_lc=$archive_cmds_need_lc_F77
14851
14852# Whether or not to disallow shared libs when runtime libs are static
14853allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14854
14855# Whether or not to optimize for fast installation.
14856fast_install=$enable_fast_install
14857
14858# The host system.
14859host_alias=$host_alias
14860host=$host
14861
14862# An echo program that does not interpret backslashes.
14863echo=$lt_echo
14864
14865# The archiver.
14866AR=$lt_AR
14867AR_FLAGS=$lt_AR_FLAGS
14868
14869# A C compiler.
14870LTCC=$lt_LTCC
14871
14872# A language-specific compiler.
14873CC=$lt_compiler_F77
14874
14875# Is the compiler the GNU C compiler?
14876with_gcc=$GCC_F77
14877
14878# An ERE matcher.
14879EGREP=$lt_EGREP
14880
14881# The linker used to build libraries.
14882LD=$lt_LD_F77
14883
14884# Whether we need hard or soft links.
14885LN_S=$lt_LN_S
14886
14887# A BSD-compatible nm program.
14888NM=$lt_NM
14889
14890# A symbol stripping program
14891STRIP=$lt_STRIP
14892
14893# Used to examine libraries when file_magic_cmd begins "file"
14894MAGIC_CMD=$MAGIC_CMD
14895
14896# Used on cygwin: DLL creation program.
14897DLLTOOL="$DLLTOOL"
14898
14899# Used on cygwin: object dumper.
14900OBJDUMP="$OBJDUMP"
14901
14902# Used on cygwin: assembler.
14903AS="$AS"
14904
14905# The name of the directory that contains temporary libtool files.
14906objdir=$objdir
14907
14908# How to create reloadable object files.
14909reload_flag=$lt_reload_flag
14910reload_cmds=$lt_reload_cmds
14911
14912# How to pass a linker flag through the compiler.
14913wl=$lt_lt_prog_compiler_wl_F77
14914
14915# Object file suffix (normally "o").
14916objext="$ac_objext"
14917
14918# Old archive suffix (normally "a").
14919libext="$libext"
14920
14921# Shared library suffix (normally ".so").
14922shrext_cmds='$shrext_cmds'
14923
14924# Executable file suffix (normally "").
14925exeext="$exeext"
14926
14927# Additional compiler flags for building library objects.
14928pic_flag=$lt_lt_prog_compiler_pic_F77
14929pic_mode=$pic_mode
14930
14931# What is the maximum length of a command?
14932max_cmd_len=$lt_cv_sys_max_cmd_len
14933
14934# Does compiler simultaneously support -c and -o options?
14935compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14936
brynerd5e66382006-09-08 02:35:53 +000014937# Must we lock files when doing compilation ?
brynercb91a2f2006-08-25 21:14:45 +000014938need_locks=$lt_need_locks
14939
14940# Do we need the lib prefix for modules?
14941need_lib_prefix=$need_lib_prefix
14942
14943# Do we need a version for libraries?
14944need_version=$need_version
14945
14946# Whether dlopen is supported.
14947dlopen_support=$enable_dlopen
14948
14949# Whether dlopen of programs is supported.
14950dlopen_self=$enable_dlopen_self
14951
14952# Whether dlopen of statically linked programs is supported.
14953dlopen_self_static=$enable_dlopen_self_static
14954
14955# Compiler flag to prevent dynamic linking.
14956link_static_flag=$lt_lt_prog_compiler_static_F77
14957
14958# Compiler flag to turn off builtin functions.
14959no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14960
14961# Compiler flag to allow reflexive dlopens.
14962export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14963
14964# Compiler flag to generate shared objects directly from archives.
14965whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14966
14967# Compiler flag to generate thread-safe objects.
14968thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14969
14970# Library versioning type.
14971version_type=$version_type
14972
14973# Format of library name prefix.
14974libname_spec=$lt_libname_spec
14975
14976# List of archive names. First name is the real one, the rest are links.
14977# The last name is the one that the linker finds with -lNAME.
14978library_names_spec=$lt_library_names_spec
14979
14980# The coded name of the library, if different from the real name.
14981soname_spec=$lt_soname_spec
14982
14983# Commands used to build and install an old-style archive.
14984RANLIB=$lt_RANLIB
14985old_archive_cmds=$lt_old_archive_cmds_F77
14986old_postinstall_cmds=$lt_old_postinstall_cmds
14987old_postuninstall_cmds=$lt_old_postuninstall_cmds
14988
14989# Create an old-style archive from a shared archive.
14990old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14991
14992# Create a temporary old-style archive to link instead of a shared archive.
14993old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14994
14995# Commands used to build and install a shared archive.
14996archive_cmds=$lt_archive_cmds_F77
14997archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14998postinstall_cmds=$lt_postinstall_cmds
14999postuninstall_cmds=$lt_postuninstall_cmds
15000
15001# Commands used to build a loadable module (assumed same as above if empty)
15002module_cmds=$lt_module_cmds_F77
15003module_expsym_cmds=$lt_module_expsym_cmds_F77
15004
15005# Commands to strip libraries.
15006old_striplib=$lt_old_striplib
15007striplib=$lt_striplib
15008
15009# Dependencies to place before the objects being linked to create a
15010# shared library.
15011predep_objects=$lt_predep_objects_F77
15012
15013# Dependencies to place after the objects being linked to create a
15014# shared library.
15015postdep_objects=$lt_postdep_objects_F77
15016
15017# Dependencies to place before the objects being linked to create a
15018# shared library.
15019predeps=$lt_predeps_F77
15020
15021# Dependencies to place after the objects being linked to create a
15022# shared library.
15023postdeps=$lt_postdeps_F77
15024
15025# The library search path used internally by the compiler when linking
15026# a shared library.
15027compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15028
15029# Method to check whether dependent libraries are shared objects.
15030deplibs_check_method=$lt_deplibs_check_method
15031
15032# Command to use when deplibs_check_method == file_magic.
15033file_magic_cmd=$lt_file_magic_cmd
15034
15035# Flag that allows shared libraries with undefined symbols to be built.
15036allow_undefined_flag=$lt_allow_undefined_flag_F77
15037
15038# Flag that forces no undefined symbols.
15039no_undefined_flag=$lt_no_undefined_flag_F77
15040
15041# Commands used to finish a libtool library installation in a directory.
15042finish_cmds=$lt_finish_cmds
15043
15044# Same as above, but a single script fragment to be evaled but not shown.
15045finish_eval=$lt_finish_eval
15046
15047# Take the output of nm and produce a listing of raw symbols and C names.
15048global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15049
15050# Transform the output of nm in a proper C declaration
15051global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15052
15053# Transform the output of nm in a C name address pair
15054global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15055
15056# This is the shared library runtime path variable.
15057runpath_var=$runpath_var
15058
15059# This is the shared library path variable.
15060shlibpath_var=$shlibpath_var
15061
15062# Is shlibpath searched before the hard-coded library search path?
15063shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15064
15065# How to hardcode a shared library path into an executable.
15066hardcode_action=$hardcode_action_F77
15067
15068# Whether we should hardcode library paths into libraries.
15069hardcode_into_libs=$hardcode_into_libs
15070
15071# Flag to hardcode \$libdir into a binary during linking.
15072# This must work even if \$libdir does not exist.
15073hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15074
15075# If ld is used when linking, flag to hardcode \$libdir into
15076# a binary during linking. This must work even if \$libdir does
15077# not exist.
15078hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15079
15080# Whether we need a single -rpath flag with a separated argument.
15081hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15082
15083# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15084# resulting binary.
15085hardcode_direct=$hardcode_direct_F77
15086
15087# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15088# resulting binary.
15089hardcode_minus_L=$hardcode_minus_L_F77
15090
15091# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15092# the resulting binary.
15093hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15094
15095# Set to yes if building a shared library automatically hardcodes DIR into the library
15096# and all subsequent libraries and executables linked against it.
15097hardcode_automatic=$hardcode_automatic_F77
15098
15099# Variables whose values should be saved in libtool wrapper scripts and
15100# restored at relink time.
15101variables_saved_for_relink="$variables_saved_for_relink"
15102
15103# Whether libtool must link a program against all its dependency libraries.
15104link_all_deplibs=$link_all_deplibs_F77
15105
15106# Compile-time system search path for libraries
15107sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15108
15109# Run-time system search path for libraries
15110sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15111
15112# Fix the shell variable \$srcfile for the compiler.
15113fix_srcfile_path="$fix_srcfile_path_F77"
15114
15115# Set to yes if exported symbols are required.
15116always_export_symbols=$always_export_symbols_F77
15117
15118# The commands to list exported symbols.
15119export_symbols_cmds=$lt_export_symbols_cmds_F77
15120
15121# The commands to extract the exported symbol list from a shared archive.
15122extract_expsyms_cmds=$lt_extract_expsyms_cmds
15123
15124# Symbols that should not be listed in the preloaded symbols.
15125exclude_expsyms=$lt_exclude_expsyms_F77
15126
15127# Symbols that must always be exported.
15128include_expsyms=$lt_include_expsyms_F77
15129
15130# ### END LIBTOOL TAG CONFIG: $tagname
15131
15132__EOF__
15133
15134
15135else
15136 # If there is no Makefile yet, we rely on a make rule to execute
15137 # `config.status --recheck' to rerun these tests and create the
15138 # libtool script then.
15139 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15140 if test -f "$ltmain_in"; then
15141 test -f Makefile && make "$ltmain"
15142 fi
15143fi
15144
15145
15146ac_ext=c
15147ac_cpp='$CPP $CPPFLAGS'
15148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15150ac_compiler_gnu=$ac_cv_c_compiler_gnu
15151
15152CC="$lt_save_CC"
15153
15154 else
15155 tagname=""
15156 fi
15157 ;;
15158
15159 GCJ)
15160 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15161
15162
15163
15164# Source file extension for Java test sources.
15165ac_ext=java
15166
15167# Object file extension for compiled Java test sources.
15168objext=o
15169objext_GCJ=$objext
15170
15171# Code to be used in simple compile tests
15172lt_simple_compile_test_code="class foo {}\n"
15173
15174# Code to be used in simple link tests
brynerd5e66382006-09-08 02:35:53 +000015175lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
brynercb91a2f2006-08-25 21:14:45 +000015176
15177# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15178
15179# If no C compiler was specified, use CC.
15180LTCC=${LTCC-"$CC"}
15181
15182# Allow CC to be a program name with arguments.
15183compiler=$CC
15184
15185
15186# Allow CC to be a program name with arguments.
15187lt_save_CC="$CC"
15188CC=${GCJ-"gcj"}
15189compiler=$CC
15190compiler_GCJ=$CC
15191
15192# GCJ did not exist at the time GCC didn't implicitly link libc in.
15193archive_cmds_need_lc_GCJ=no
15194
15195
15196lt_prog_compiler_no_builtin_flag_GCJ=
15197
15198if test "$GCC" = yes; then
15199 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15200
15201
15202echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15203echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15204if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15205 echo $ECHO_N "(cached) $ECHO_C" >&6
15206else
15207 lt_cv_prog_compiler_rtti_exceptions=no
15208 ac_outfile=conftest.$ac_objext
15209 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15210 lt_compiler_flag="-fno-rtti -fno-exceptions"
15211 # Insert the option either (1) after the last *FLAGS variable, or
15212 # (2) before a word containing "conftest.", or (3) at the end.
15213 # Note that $ac_compile itself does not contain backslashes and begins
15214 # with a dollar sign (not a hyphen), so the echo should work correctly.
15215 # The option is referenced via a variable to avoid confusing sed.
15216 lt_compile=`echo "$ac_compile" | $SED \
brynerd5e66382006-09-08 02:35:53 +000015217 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000015218 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15219 -e 's:$: $lt_compiler_flag:'`
brynerd5e66382006-09-08 02:35:53 +000015220 (eval echo "\"\$as_me:15220: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000015221 (eval "$lt_compile" 2>conftest.err)
15222 ac_status=$?
15223 cat conftest.err >&5
brynerd5e66382006-09-08 02:35:53 +000015224 echo "$as_me:15224: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000015225 if (exit $ac_status) && test -s "$ac_outfile"; then
15226 # The compiler can only warn and ignore the option if not recognized
brynerd5e66382006-09-08 02:35:53 +000015227 # So say no if there are warnings
15228 if test ! -s conftest.err; then
brynercb91a2f2006-08-25 21:14:45 +000015229 lt_cv_prog_compiler_rtti_exceptions=yes
15230 fi
15231 fi
15232 $rm conftest*
15233
15234fi
15235echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15236echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15237
15238if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15239 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15240else
15241 :
15242fi
15243
15244fi
15245
15246lt_prog_compiler_wl_GCJ=
15247lt_prog_compiler_pic_GCJ=
15248lt_prog_compiler_static_GCJ=
15249
15250echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15251echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15252
15253 if test "$GCC" = yes; then
15254 lt_prog_compiler_wl_GCJ='-Wl,'
15255 lt_prog_compiler_static_GCJ='-static'
15256
15257 case $host_os in
15258 aix*)
15259 # All AIX code is PIC.
15260 if test "$host_cpu" = ia64; then
15261 # AIX 5 now supports IA64 processor
15262 lt_prog_compiler_static_GCJ='-Bstatic'
15263 fi
15264 ;;
15265
15266 amigaos*)
15267 # FIXME: we need at least 68020 code to build shared libraries, but
15268 # adding the `-m68020' flag to GCC prevents building anything better,
15269 # like `-m68040'.
15270 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15271 ;;
15272
15273 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15274 # PIC is the default for these OSes.
15275 ;;
15276
15277 mingw* | pw32* | os2*)
15278 # This hack is so that the source file can tell whether it is being
15279 # built for inclusion in a dll (and should export symbols for example).
15280 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15281 ;;
15282
15283 darwin* | rhapsody*)
15284 # PIC is the default on this platform
15285 # Common symbols not allowed in MH_DYLIB files
15286 lt_prog_compiler_pic_GCJ='-fno-common'
15287 ;;
15288
15289 msdosdjgpp*)
15290 # Just because we use GCC doesn't mean we suddenly get shared libraries
15291 # on systems that don't support them.
15292 lt_prog_compiler_can_build_shared_GCJ=no
15293 enable_shared=no
15294 ;;
15295
15296 sysv4*MP*)
15297 if test -d /usr/nec; then
15298 lt_prog_compiler_pic_GCJ=-Kconform_pic
15299 fi
15300 ;;
15301
15302 hpux*)
15303 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15304 # not for PA HP-UX.
brynerd5e66382006-09-08 02:35:53 +000015305 case "$host_cpu" in
brynercb91a2f2006-08-25 21:14:45 +000015306 hppa*64*|ia64*)
15307 # +Z the default
15308 ;;
15309 *)
15310 lt_prog_compiler_pic_GCJ='-fPIC'
15311 ;;
15312 esac
15313 ;;
15314
15315 *)
15316 lt_prog_compiler_pic_GCJ='-fPIC'
15317 ;;
15318 esac
15319 else
15320 # PORTME Check for flag to pass linker flags through the system compiler.
15321 case $host_os in
15322 aix*)
15323 lt_prog_compiler_wl_GCJ='-Wl,'
15324 if test "$host_cpu" = ia64; then
15325 # AIX 5 now supports IA64 processor
15326 lt_prog_compiler_static_GCJ='-Bstatic'
15327 else
15328 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15329 fi
15330 ;;
15331
15332 mingw* | pw32* | os2*)
15333 # This hack is so that the source file can tell whether it is being
15334 # built for inclusion in a dll (and should export symbols for example).
15335 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15336 ;;
15337
15338 hpux9* | hpux10* | hpux11*)
15339 lt_prog_compiler_wl_GCJ='-Wl,'
15340 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15341 # not for PA HP-UX.
brynerd5e66382006-09-08 02:35:53 +000015342 case "$host_cpu" in
brynercb91a2f2006-08-25 21:14:45 +000015343 hppa*64*|ia64*)
15344 # +Z the default
15345 ;;
15346 *)
15347 lt_prog_compiler_pic_GCJ='+Z'
15348 ;;
15349 esac
15350 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15351 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15352 ;;
15353
15354 irix5* | irix6* | nonstopux*)
15355 lt_prog_compiler_wl_GCJ='-Wl,'
15356 # PIC (with -KPIC) is the default.
15357 lt_prog_compiler_static_GCJ='-non_shared'
15358 ;;
15359
15360 newsos6)
15361 lt_prog_compiler_pic_GCJ='-KPIC'
15362 lt_prog_compiler_static_GCJ='-Bstatic'
15363 ;;
15364
15365 linux*)
brynerd5e66382006-09-08 02:35:53 +000015366 case $CC in
brynercb91a2f2006-08-25 21:14:45 +000015367 icc* | ecc*)
15368 lt_prog_compiler_wl_GCJ='-Wl,'
15369 lt_prog_compiler_pic_GCJ='-KPIC'
15370 lt_prog_compiler_static_GCJ='-static'
15371 ;;
15372 ccc*)
15373 lt_prog_compiler_wl_GCJ='-Wl,'
15374 # All Alpha code is PIC.
15375 lt_prog_compiler_static_GCJ='-non_shared'
15376 ;;
15377 esac
15378 ;;
15379
15380 osf3* | osf4* | osf5*)
15381 lt_prog_compiler_wl_GCJ='-Wl,'
15382 # All OSF/1 code is PIC.
15383 lt_prog_compiler_static_GCJ='-non_shared'
15384 ;;
15385
brynerd5e66382006-09-08 02:35:53 +000015386 sco3.2v5*)
15387 lt_prog_compiler_pic_GCJ='-Kpic'
15388 lt_prog_compiler_static_GCJ='-dn'
15389 ;;
15390
brynercb91a2f2006-08-25 21:14:45 +000015391 solaris*)
brynerd5e66382006-09-08 02:35:53 +000015392 lt_prog_compiler_wl_GCJ='-Wl,'
brynercb91a2f2006-08-25 21:14:45 +000015393 lt_prog_compiler_pic_GCJ='-KPIC'
15394 lt_prog_compiler_static_GCJ='-Bstatic'
15395 ;;
15396
15397 sunos4*)
15398 lt_prog_compiler_wl_GCJ='-Qoption ld '
15399 lt_prog_compiler_pic_GCJ='-PIC'
15400 lt_prog_compiler_static_GCJ='-Bstatic'
15401 ;;
15402
brynerd5e66382006-09-08 02:35:53 +000015403 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
brynercb91a2f2006-08-25 21:14:45 +000015404 lt_prog_compiler_wl_GCJ='-Wl,'
15405 lt_prog_compiler_pic_GCJ='-KPIC'
15406 lt_prog_compiler_static_GCJ='-Bstatic'
15407 ;;
15408
15409 sysv4*MP*)
15410 if test -d /usr/nec ;then
15411 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15412 lt_prog_compiler_static_GCJ='-Bstatic'
15413 fi
15414 ;;
15415
15416 uts4*)
15417 lt_prog_compiler_pic_GCJ='-pic'
15418 lt_prog_compiler_static_GCJ='-Bstatic'
15419 ;;
15420
15421 *)
15422 lt_prog_compiler_can_build_shared_GCJ=no
15423 ;;
15424 esac
15425 fi
15426
15427echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15428echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15429
15430#
15431# Check to make sure the PIC flag actually works.
15432#
15433if test -n "$lt_prog_compiler_pic_GCJ"; then
15434
15435echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15436echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15437if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15438 echo $ECHO_N "(cached) $ECHO_C" >&6
15439else
15440 lt_prog_compiler_pic_works_GCJ=no
15441 ac_outfile=conftest.$ac_objext
15442 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15443 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15444 # Insert the option either (1) after the last *FLAGS variable, or
15445 # (2) before a word containing "conftest.", or (3) at the end.
15446 # Note that $ac_compile itself does not contain backslashes and begins
15447 # with a dollar sign (not a hyphen), so the echo should work correctly.
15448 # The option is referenced via a variable to avoid confusing sed.
15449 lt_compile=`echo "$ac_compile" | $SED \
brynerd5e66382006-09-08 02:35:53 +000015450 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000015451 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15452 -e 's:$: $lt_compiler_flag:'`
brynerd5e66382006-09-08 02:35:53 +000015453 (eval echo "\"\$as_me:15453: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000015454 (eval "$lt_compile" 2>conftest.err)
15455 ac_status=$?
15456 cat conftest.err >&5
brynerd5e66382006-09-08 02:35:53 +000015457 echo "$as_me:15457: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000015458 if (exit $ac_status) && test -s "$ac_outfile"; then
15459 # The compiler can only warn and ignore the option if not recognized
brynerd5e66382006-09-08 02:35:53 +000015460 # So say no if there are warnings
15461 if test ! -s conftest.err; then
brynercb91a2f2006-08-25 21:14:45 +000015462 lt_prog_compiler_pic_works_GCJ=yes
15463 fi
15464 fi
15465 $rm conftest*
15466
15467fi
15468echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15469echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15470
15471if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15472 case $lt_prog_compiler_pic_GCJ in
15473 "" | " "*) ;;
15474 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15475 esac
15476else
15477 lt_prog_compiler_pic_GCJ=
15478 lt_prog_compiler_can_build_shared_GCJ=no
15479fi
15480
15481fi
brynerd5e66382006-09-08 02:35:53 +000015482case "$host_os" in
brynercb91a2f2006-08-25 21:14:45 +000015483 # For platforms which do not support PIC, -DPIC is meaningless:
15484 *djgpp*)
15485 lt_prog_compiler_pic_GCJ=
15486 ;;
15487 *)
15488 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15489 ;;
15490esac
15491
15492echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15493echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15494if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15495 echo $ECHO_N "(cached) $ECHO_C" >&6
15496else
15497 lt_cv_prog_compiler_c_o_GCJ=no
15498 $rm -r conftest 2>/dev/null
15499 mkdir conftest
15500 cd conftest
15501 mkdir out
15502 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15503
15504 lt_compiler_flag="-o out/conftest2.$ac_objext"
15505 # Insert the option either (1) after the last *FLAGS variable, or
15506 # (2) before a word containing "conftest.", or (3) at the end.
15507 # Note that $ac_compile itself does not contain backslashes and begins
15508 # with a dollar sign (not a hyphen), so the echo should work correctly.
15509 lt_compile=`echo "$ac_compile" | $SED \
brynerd5e66382006-09-08 02:35:53 +000015510 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000015511 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15512 -e 's:$: $lt_compiler_flag:'`
brynerd5e66382006-09-08 02:35:53 +000015513 (eval echo "\"\$as_me:15513: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000015514 (eval "$lt_compile" 2>out/conftest.err)
15515 ac_status=$?
15516 cat out/conftest.err >&5
brynerd5e66382006-09-08 02:35:53 +000015517 echo "$as_me:15517: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000015518 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15519 then
15520 # The compiler can only warn and ignore the option if not recognized
15521 # So say no if there are warnings
brynerd5e66382006-09-08 02:35:53 +000015522 if test ! -s out/conftest.err; then
brynercb91a2f2006-08-25 21:14:45 +000015523 lt_cv_prog_compiler_c_o_GCJ=yes
15524 fi
15525 fi
brynerd5e66382006-09-08 02:35:53 +000015526 chmod u+w .
brynercb91a2f2006-08-25 21:14:45 +000015527 $rm conftest*
15528 # SGI C++ compiler will create directory out/ii_files/ for
15529 # template instantiation
15530 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15531 $rm out/* && rmdir out
15532 cd ..
15533 rmdir conftest
15534 $rm conftest*
15535
15536fi
15537echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15538echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15539
15540
15541hard_links="nottested"
15542if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15543 # do not overwrite the value of need_locks provided by the user
15544 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15545echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15546 hard_links=yes
15547 $rm conftest*
15548 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15549 touch conftest.a
15550 ln conftest.a conftest.b 2>&5 || hard_links=no
15551 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15552 echo "$as_me:$LINENO: result: $hard_links" >&5
15553echo "${ECHO_T}$hard_links" >&6
15554 if test "$hard_links" = no; then
15555 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15556echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15557 need_locks=warn
15558 fi
15559else
15560 need_locks=no
15561fi
15562
15563echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15564echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15565
15566 runpath_var=
15567 allow_undefined_flag_GCJ=
15568 enable_shared_with_static_runtimes_GCJ=no
15569 archive_cmds_GCJ=
15570 archive_expsym_cmds_GCJ=
15571 old_archive_From_new_cmds_GCJ=
15572 old_archive_from_expsyms_cmds_GCJ=
15573 export_dynamic_flag_spec_GCJ=
15574 whole_archive_flag_spec_GCJ=
15575 thread_safe_flag_spec_GCJ=
15576 hardcode_libdir_flag_spec_GCJ=
15577 hardcode_libdir_flag_spec_ld_GCJ=
15578 hardcode_libdir_separator_GCJ=
15579 hardcode_direct_GCJ=no
15580 hardcode_minus_L_GCJ=no
15581 hardcode_shlibpath_var_GCJ=unsupported
15582 link_all_deplibs_GCJ=unknown
15583 hardcode_automatic_GCJ=no
15584 module_cmds_GCJ=
15585 module_expsym_cmds_GCJ=
15586 always_export_symbols_GCJ=no
15587 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15588 # include_expsyms should be a list of space-separated symbols to be *always*
15589 # included in the symbol list
15590 include_expsyms_GCJ=
15591 # exclude_expsyms can be an extended regexp of symbols to exclude
15592 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15593 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15594 # as well as any symbol that contains `d'.
15595 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15596 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15597 # platforms (ab)use it in PIC code, but their linkers get confused if
15598 # the symbol is explicitly referenced. Since portable code cannot
15599 # rely on this symbol name, it's probably fine to never include it in
15600 # preloaded symbol tables.
15601 extract_expsyms_cmds=
15602
15603 case $host_os in
15604 cygwin* | mingw* | pw32*)
15605 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15606 # When not using gcc, we currently assume that we are using
15607 # Microsoft Visual C++.
15608 if test "$GCC" != yes; then
15609 with_gnu_ld=no
15610 fi
15611 ;;
15612 openbsd*)
15613 with_gnu_ld=no
15614 ;;
15615 esac
15616
15617 ld_shlibs_GCJ=yes
15618 if test "$with_gnu_ld" = yes; then
15619 # If archive_cmds runs LD, not CC, wlarc should be empty
15620 wlarc='${wl}'
15621
15622 # See if GNU ld supports shared libraries.
15623 case $host_os in
15624 aix3* | aix4* | aix5*)
15625 # On AIX/PPC, the GNU linker is very broken
15626 if test "$host_cpu" != ia64; then
15627 ld_shlibs_GCJ=no
15628 cat <<EOF 1>&2
15629
15630*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15631*** to be unable to reliably create shared libraries on AIX.
15632*** Therefore, libtool is disabling shared libraries support. If you
15633*** really care for shared libraries, you may want to modify your PATH
15634*** so that a non-GNU linker is found, and then restart.
15635
15636EOF
15637 fi
15638 ;;
15639
15640 amigaos*)
15641 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)'
15642 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15643 hardcode_minus_L_GCJ=yes
15644
15645 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15646 # that the semantics of dynamic libraries on AmigaOS, at least up
15647 # to version 4, is to share data among multiple programs linked
15648 # with the same dynamic library. Since this doesn't match the
15649 # behavior of shared libraries on other platforms, we can't use
15650 # them.
15651 ld_shlibs_GCJ=no
15652 ;;
15653
15654 beos*)
15655 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15656 allow_undefined_flag_GCJ=unsupported
15657 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15658 # support --undefined. This deserves some investigation. FIXME
15659 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15660 else
15661 ld_shlibs_GCJ=no
15662 fi
15663 ;;
15664
15665 cygwin* | mingw* | pw32*)
15666 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15667 # as there is no search path for DLLs.
15668 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15669 allow_undefined_flag_GCJ=unsupported
15670 always_export_symbols_GCJ=no
15671 enable_shared_with_static_runtimes_GCJ=yes
brynerd5e66382006-09-08 02:35:53 +000015672 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
brynercb91a2f2006-08-25 21:14:45 +000015673
15674 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
brynerd5e66382006-09-08 02:35:53 +000015675 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
brynercb91a2f2006-08-25 21:14:45 +000015676 # If the export-symbols file already is a .def file (1st line
15677 # is EXPORTS), use it as is; otherwise, prepend...
15678 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15679 cp $export_symbols $output_objdir/$soname.def;
15680 else
15681 echo EXPORTS > $output_objdir/$soname.def;
15682 cat $export_symbols >> $output_objdir/$soname.def;
15683 fi~
brynerd5e66382006-09-08 02:35:53 +000015684 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
brynercb91a2f2006-08-25 21:14:45 +000015685 else
brynerd5e66382006-09-08 02:35:53 +000015686 ld_shlibs=no
brynercb91a2f2006-08-25 21:14:45 +000015687 fi
15688 ;;
15689
brynerd5e66382006-09-08 02:35:53 +000015690 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000015691 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15692 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15693 wlarc=
15694 else
15695 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15696 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15697 fi
15698 ;;
15699
brynerd5e66382006-09-08 02:35:53 +000015700 solaris* | sysv5*)
brynercb91a2f2006-08-25 21:14:45 +000015701 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15702 ld_shlibs_GCJ=no
15703 cat <<EOF 1>&2
15704
15705*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15706*** create shared libraries on Solaris systems. Therefore, libtool
15707*** is disabling shared libraries support. We urge you to upgrade GNU
15708*** binutils to release 2.9.1 or newer. Another option is to modify
15709*** your PATH or compiler configuration so that the native linker is
15710*** used, and then restart.
15711
15712EOF
15713 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15714 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15715 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15716 else
15717 ld_shlibs_GCJ=no
15718 fi
15719 ;;
15720
15721 sunos4*)
15722 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15723 wlarc=
15724 hardcode_direct_GCJ=yes
15725 hardcode_shlibpath_var_GCJ=no
15726 ;;
15727
brynerd5e66382006-09-08 02:35:53 +000015728 linux*)
15729 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15730 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15731 archive_cmds_GCJ="$tmp_archive_cmds"
15732 supports_anon_versioning=no
15733 case `$LD -v 2>/dev/null` in
15734 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15735 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15736 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15737 *\ 2.11.*) ;; # other 2.11 versions
15738 *) supports_anon_versioning=yes ;;
15739 esac
15740 if test $supports_anon_versioning = yes; then
15741 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15742cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15743$echo "local: *; };" >> $output_objdir/$libname.ver~
15744 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15745 else
15746 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15747 fi
15748 link_all_deplibs_GCJ=no
15749 else
15750 ld_shlibs_GCJ=no
15751 fi
15752 ;;
15753
brynercb91a2f2006-08-25 21:14:45 +000015754 *)
15755 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15756 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15757 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15758 else
15759 ld_shlibs_GCJ=no
15760 fi
15761 ;;
15762 esac
15763
brynerd5e66382006-09-08 02:35:53 +000015764 if test "$ld_shlibs_GCJ" = yes; then
15765 runpath_var=LD_RUN_PATH
15766 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15767 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15768 # ancient GNU ld didn't support --whole-archive et. al.
15769 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15770 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15771 else
15772 whole_archive_flag_spec_GCJ=
15773 fi
brynercb91a2f2006-08-25 21:14:45 +000015774 fi
15775 else
15776 # PORTME fill in a description of your system's linker (not GNU ld)
15777 case $host_os in
15778 aix3*)
15779 allow_undefined_flag_GCJ=unsupported
15780 always_export_symbols_GCJ=yes
15781 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'
15782 # Note: this linker hardcodes the directories in LIBPATH if there
15783 # are no directories specified by -L.
15784 hardcode_minus_L_GCJ=yes
brynerd5e66382006-09-08 02:35:53 +000015785 if test "$GCC" = yes && test -z "$link_static_flag"; then
brynercb91a2f2006-08-25 21:14:45 +000015786 # Neither direct hardcoding nor static linking is supported with a
15787 # broken collect2.
15788 hardcode_direct_GCJ=unsupported
15789 fi
15790 ;;
15791
15792 aix4* | aix5*)
15793 if test "$host_cpu" = ia64; then
15794 # On IA64, the linker does run time linking by default, so we don't
15795 # have to do anything special.
15796 aix_use_runtimelinking=no
15797 exp_sym_flag='-Bexport'
15798 no_entry_flag=""
15799 else
15800 # If we're using GNU nm, then we don't want the "-C" option.
15801 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15802 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15803 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'
15804 else
15805 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'
15806 fi
15807 aix_use_runtimelinking=no
15808
15809 # Test if we are trying to use run time linking or normal
15810 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15811 # need to do runtime linking.
15812 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15813 for ld_flag in $LDFLAGS; do
15814 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15815 aix_use_runtimelinking=yes
15816 break
15817 fi
15818 done
15819 esac
15820
15821 exp_sym_flag='-bexport'
15822 no_entry_flag='-bnoentry'
15823 fi
15824
15825 # When large executables or shared objects are built, AIX ld can
15826 # have problems creating the table of contents. If linking a library
15827 # or program results in "error TOC overflow" add -mminimal-toc to
15828 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15829 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15830
15831 archive_cmds_GCJ=''
15832 hardcode_direct_GCJ=yes
15833 hardcode_libdir_separator_GCJ=':'
15834 link_all_deplibs_GCJ=yes
15835
15836 if test "$GCC" = yes; then
brynerd5e66382006-09-08 02:35:53 +000015837 case $host_os in aix4.012|aix4.012.*)
brynercb91a2f2006-08-25 21:14:45 +000015838 # We only want to do this on AIX 4.2 and lower, the check
15839 # below for broken collect2 doesn't work under 4.3+
15840 collect2name=`${CC} -print-prog-name=collect2`
15841 if test -f "$collect2name" && \
15842 strings "$collect2name" | grep resolve_lib_name >/dev/null
15843 then
15844 # We have reworked collect2
15845 hardcode_direct_GCJ=yes
15846 else
15847 # We have old collect2
15848 hardcode_direct_GCJ=unsupported
15849 # It fails to find uninstalled libraries when the uninstalled
15850 # path is not listed in the libpath. Setting hardcode_minus_L
15851 # to unsupported forces relinking
15852 hardcode_minus_L_GCJ=yes
15853 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15854 hardcode_libdir_separator_GCJ=
15855 fi
15856 esac
15857 shared_flag='-shared'
15858 else
15859 # not using gcc
15860 if test "$host_cpu" = ia64; then
15861 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15862 # chokes on -Wl,-G. The following line is correct:
15863 shared_flag='-G'
15864 else
brynerd5e66382006-09-08 02:35:53 +000015865 if test "$aix_use_runtimelinking" = yes; then
brynercb91a2f2006-08-25 21:14:45 +000015866 shared_flag='${wl}-G'
15867 else
15868 shared_flag='${wl}-bM:SRE'
brynerd5e66382006-09-08 02:35:53 +000015869 fi
brynercb91a2f2006-08-25 21:14:45 +000015870 fi
15871 fi
15872
15873 # It seems that -bexpall does not export symbols beginning with
15874 # underscore (_), so it is better to generate a list of symbols to export.
15875 always_export_symbols_GCJ=yes
15876 if test "$aix_use_runtimelinking" = yes; then
15877 # Warning - without using the other runtime loading flags (-brtl),
15878 # -berok will link without error, but may produce a broken library.
15879 allow_undefined_flag_GCJ='-berok'
15880 # Determine the default libpath from the value encoded in an empty executable.
15881 cat >conftest.$ac_ext <<_ACEOF
15882/* confdefs.h. */
15883_ACEOF
15884cat confdefs.h >>conftest.$ac_ext
15885cat >>conftest.$ac_ext <<_ACEOF
15886/* end confdefs.h. */
15887
15888int
15889main ()
15890{
15891
15892 ;
15893 return 0;
15894}
15895_ACEOF
15896rm -f conftest.$ac_objext conftest$ac_exeext
15897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15898 (eval $ac_link) 2>conftest.er1
15899 ac_status=$?
15900 grep -v '^ *+' conftest.er1 >conftest.err
15901 rm -f conftest.er1
15902 cat conftest.err >&5
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); } &&
brynerd5e66382006-09-08 02:35:53 +000015905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +000015906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15907 (eval $ac_try) 2>&5
15908 ac_status=$?
15909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); }; } &&
15911 { ac_try='test -s conftest$ac_exeext'
15912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15913 (eval $ac_try) 2>&5
15914 ac_status=$?
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); }; }; then
15917
15918aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15919}'`
15920# Check for a 64-bit object if we didn't find anything.
15921if 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; }
15922}'`; fi
15923else
15924 echo "$as_me: failed program was:" >&5
15925sed 's/^/| /' conftest.$ac_ext >&5
15926
15927fi
15928rm -f conftest.err conftest.$ac_objext \
15929 conftest$ac_exeext conftest.$ac_ext
15930if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15931
15932 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
brynerd5e66382006-09-08 02:35:53 +000015933 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"
brynercb91a2f2006-08-25 21:14:45 +000015934 else
15935 if test "$host_cpu" = ia64; then
15936 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15937 allow_undefined_flag_GCJ="-z nodefs"
brynerd5e66382006-09-08 02:35:53 +000015938 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"
brynercb91a2f2006-08-25 21:14:45 +000015939 else
15940 # Determine the default libpath from the value encoded in an empty executable.
15941 cat >conftest.$ac_ext <<_ACEOF
15942/* confdefs.h. */
15943_ACEOF
15944cat confdefs.h >>conftest.$ac_ext
15945cat >>conftest.$ac_ext <<_ACEOF
15946/* end confdefs.h. */
15947
15948int
15949main ()
15950{
15951
15952 ;
15953 return 0;
15954}
15955_ACEOF
15956rm -f conftest.$ac_objext conftest$ac_exeext
15957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15958 (eval $ac_link) 2>conftest.er1
15959 ac_status=$?
15960 grep -v '^ *+' conftest.er1 >conftest.err
15961 rm -f conftest.er1
15962 cat conftest.err >&5
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); } &&
brynerd5e66382006-09-08 02:35:53 +000015965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +000015966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15967 (eval $ac_try) 2>&5
15968 ac_status=$?
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); }; } &&
15971 { ac_try='test -s conftest$ac_exeext'
15972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15973 (eval $ac_try) 2>&5
15974 ac_status=$?
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); }; }; then
15977
15978aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15979}'`
15980# Check for a 64-bit object if we didn't find anything.
15981if 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; }
15982}'`; fi
15983else
15984 echo "$as_me: failed program was:" >&5
15985sed 's/^/| /' conftest.$ac_ext >&5
15986
15987fi
15988rm -f conftest.err conftest.$ac_objext \
15989 conftest$ac_exeext conftest.$ac_ext
15990if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15991
15992 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15993 # Warning - without using the other run time loading flags,
15994 # -berok will link without error, but may produce a broken library.
15995 no_undefined_flag_GCJ=' ${wl}-bernotok'
15996 allow_undefined_flag_GCJ=' ${wl}-berok'
brynerd5e66382006-09-08 02:35:53 +000015997 # -bexpall does not export symbols beginning with underscore (_)
15998 always_export_symbols_GCJ=yes
brynercb91a2f2006-08-25 21:14:45 +000015999 # Exported symbols can be pulled into shared objects from archives
brynerd5e66382006-09-08 02:35:53 +000016000 whole_archive_flag_spec_GCJ=' '
brynercb91a2f2006-08-25 21:14:45 +000016001 archive_cmds_need_lc_GCJ=yes
brynerd5e66382006-09-08 02:35:53 +000016002 # This is similar to how AIX traditionally builds it's shared libraries.
16003 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'
brynercb91a2f2006-08-25 21:14:45 +000016004 fi
16005 fi
16006 ;;
16007
16008 amigaos*)
16009 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)'
16010 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16011 hardcode_minus_L_GCJ=yes
16012 # see comment about different semantics on the GNU ld section
16013 ld_shlibs_GCJ=no
16014 ;;
16015
brynerd5e66382006-09-08 02:35:53 +000016016 bsdi4*)
brynercb91a2f2006-08-25 21:14:45 +000016017 export_dynamic_flag_spec_GCJ=-rdynamic
16018 ;;
16019
16020 cygwin* | mingw* | pw32*)
16021 # When not using gcc, we currently assume that we are using
16022 # Microsoft Visual C++.
16023 # hardcode_libdir_flag_spec is actually meaningless, as there is
16024 # no search path for DLLs.
16025 hardcode_libdir_flag_spec_GCJ=' '
16026 allow_undefined_flag_GCJ=unsupported
16027 # Tell ltmain to make .lib files, not .a files.
16028 libext=lib
16029 # Tell ltmain to make .dll files, not .so files.
16030 shrext_cmds=".dll"
16031 # FIXME: Setting linknames here is a bad hack.
16032 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16033 # The linker will automatically build a .lib file if we build a DLL.
16034 old_archive_From_new_cmds_GCJ='true'
16035 # FIXME: Should let the user specify the lib program.
16036 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
brynerd5e66382006-09-08 02:35:53 +000016037 fix_srcfile_path='`cygpath -w "$srcfile"`'
brynercb91a2f2006-08-25 21:14:45 +000016038 enable_shared_with_static_runtimes_GCJ=yes
16039 ;;
16040
16041 darwin* | rhapsody*)
brynerd5e66382006-09-08 02:35:53 +000016042 if test "$GXX" = yes ; then
mmentovai3261e8b2006-09-06 02:56:44 +000016043 archive_cmds_need_lc_GCJ=no
brynerd5e66382006-09-08 02:35:53 +000016044 case "$host_os" in
16045 rhapsody* | darwin1.[012])
16046 allow_undefined_flag_GCJ='-undefined suppress'
16047 ;;
16048 *) # Darwin 1.3 on
16049 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16050 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16051 else
16052 case ${MACOSX_DEPLOYMENT_TARGET} in
16053 10.[012])
16054 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16055 ;;
16056 10.*)
16057 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16058 ;;
16059 esac
16060 fi
16061 ;;
16062 esac
16063 lt_int_apple_cc_single_mod=no
16064 output_verbose_link_cmd='echo'
16065 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16066 lt_int_apple_cc_single_mod=yes
16067 fi
16068 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16069 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16070 else
16071 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'
16072 fi
16073 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16074 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16075 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16076 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}'
16077 else
16078 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}'
16079 fi
16080 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}'
brynercb91a2f2006-08-25 21:14:45 +000016081 hardcode_direct_GCJ=no
16082 hardcode_automatic_GCJ=yes
16083 hardcode_shlibpath_var_GCJ=unsupported
brynerd5e66382006-09-08 02:35:53 +000016084 whole_archive_flag_spec_GCJ='-all_load $convenience'
brynercb91a2f2006-08-25 21:14:45 +000016085 link_all_deplibs_GCJ=yes
16086 else
brynerd5e66382006-09-08 02:35:53 +000016087 ld_shlibs_GCJ=no
brynercb91a2f2006-08-25 21:14:45 +000016088 fi
16089 ;;
16090
16091 dgux*)
16092 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16093 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16094 hardcode_shlibpath_var_GCJ=no
16095 ;;
16096
16097 freebsd1*)
16098 ld_shlibs_GCJ=no
16099 ;;
16100
16101 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16102 # support. Future versions do this automatically, but an explicit c++rt0.o
16103 # does not break anything, and helps significantly (at the cost of a little
16104 # extra space).
16105 freebsd2.2*)
16106 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16107 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16108 hardcode_direct_GCJ=yes
16109 hardcode_shlibpath_var_GCJ=no
16110 ;;
16111
16112 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16113 freebsd2*)
16114 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16115 hardcode_direct_GCJ=yes
16116 hardcode_minus_L_GCJ=yes
16117 hardcode_shlibpath_var_GCJ=no
16118 ;;
16119
16120 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
brynerd5e66382006-09-08 02:35:53 +000016121 freebsd* | kfreebsd*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000016122 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16123 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16124 hardcode_direct_GCJ=yes
16125 hardcode_shlibpath_var_GCJ=no
16126 ;;
16127
16128 hpux9*)
16129 if test "$GCC" = yes; then
16130 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'
16131 else
16132 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'
16133 fi
16134 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16135 hardcode_libdir_separator_GCJ=:
16136 hardcode_direct_GCJ=yes
16137
16138 # hardcode_minus_L: Not really in the search PATH,
16139 # but as the default location of the library.
16140 hardcode_minus_L_GCJ=yes
16141 export_dynamic_flag_spec_GCJ='${wl}-E'
16142 ;;
16143
brynerd5e66382006-09-08 02:35:53 +000016144 hpux10* | hpux11*)
brynercb91a2f2006-08-25 21:14:45 +000016145 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
brynerd5e66382006-09-08 02:35:53 +000016146 case "$host_cpu" in
16147 hppa*64*|ia64*)
brynercb91a2f2006-08-25 21:14:45 +000016148 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16149 ;;
16150 *)
16151 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16152 ;;
16153 esac
16154 else
brynerd5e66382006-09-08 02:35:53 +000016155 case "$host_cpu" in
16156 hppa*64*|ia64*)
16157 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
brynercb91a2f2006-08-25 21:14:45 +000016158 ;;
16159 *)
brynerd5e66382006-09-08 02:35:53 +000016160 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
brynercb91a2f2006-08-25 21:14:45 +000016161 ;;
16162 esac
16163 fi
16164 if test "$with_gnu_ld" = no; then
brynerd5e66382006-09-08 02:35:53 +000016165 case "$host_cpu" in
16166 hppa*64*)
16167 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
mmentovai3261e8b2006-09-06 02:56:44 +000016168 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
brynerd5e66382006-09-08 02:35:53 +000016169 hardcode_libdir_separator_GCJ=:
mmentovai3261e8b2006-09-06 02:56:44 +000016170 hardcode_direct_GCJ=no
16171 hardcode_shlibpath_var_GCJ=no
bryner07f8ef52006-09-05 19:42:57 +000016172 ;;
brynerd5e66382006-09-08 02:35:53 +000016173 ia64*)
16174 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16175 hardcode_direct_GCJ=no
16176 hardcode_shlibpath_var_GCJ=no
16177
16178 # hardcode_minus_L: Not really in the search PATH,
16179 # but as the default location of the library.
16180 hardcode_minus_L_GCJ=yes
16181 ;;
brynercb91a2f2006-08-25 21:14:45 +000016182 *)
brynerd5e66382006-09-08 02:35:53 +000016183 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16184 hardcode_libdir_separator_GCJ=:
brynercb91a2f2006-08-25 21:14:45 +000016185 hardcode_direct_GCJ=yes
16186 export_dynamic_flag_spec_GCJ='${wl}-E'
16187
16188 # hardcode_minus_L: Not really in the search PATH,
16189 # but as the default location of the library.
16190 hardcode_minus_L_GCJ=yes
16191 ;;
16192 esac
16193 fi
16194 ;;
16195
16196 irix5* | irix6* | nonstopux*)
16197 if test "$GCC" = yes; then
16198 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'
16199 else
16200 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'
16201 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16202 fi
16203 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16204 hardcode_libdir_separator_GCJ=:
16205 link_all_deplibs_GCJ=yes
16206 ;;
16207
brynerd5e66382006-09-08 02:35:53 +000016208 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000016209 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16210 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16211 else
16212 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16213 fi
16214 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16215 hardcode_direct_GCJ=yes
16216 hardcode_shlibpath_var_GCJ=no
16217 ;;
16218
16219 newsos6)
16220 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16221 hardcode_direct_GCJ=yes
16222 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16223 hardcode_libdir_separator_GCJ=:
16224 hardcode_shlibpath_var_GCJ=no
16225 ;;
16226
16227 openbsd*)
16228 hardcode_direct_GCJ=yes
16229 hardcode_shlibpath_var_GCJ=no
16230 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16231 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16232 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16233 export_dynamic_flag_spec_GCJ='${wl}-E'
16234 else
16235 case $host_os in
16236 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16237 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16238 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16239 ;;
16240 *)
16241 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16242 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16243 ;;
16244 esac
16245 fi
16246 ;;
16247
16248 os2*)
16249 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16250 hardcode_minus_L_GCJ=yes
16251 allow_undefined_flag_GCJ=unsupported
16252 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'
16253 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16254 ;;
16255
16256 osf3*)
16257 if test "$GCC" = yes; then
16258 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16259 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'
16260 else
16261 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16262 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'
16263 fi
16264 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16265 hardcode_libdir_separator_GCJ=:
16266 ;;
16267
16268 osf4* | osf5*) # as osf3* with the addition of -msym flag
16269 if test "$GCC" = yes; then
16270 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16271 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'
16272 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16273 else
16274 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16275 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'
16276 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~
brynerd5e66382006-09-08 02:35:53 +000016277 $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'
brynercb91a2f2006-08-25 21:14:45 +000016278
16279 # Both c and cxx compiler support -rpath directly
16280 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16281 fi
16282 hardcode_libdir_separator_GCJ=:
16283 ;;
16284
brynerd5e66382006-09-08 02:35:53 +000016285 sco3.2v5*)
16286 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16287 hardcode_shlibpath_var_GCJ=no
16288 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16289 runpath_var=LD_RUN_PATH
16290 hardcode_runpath_var=yes
16291 ;;
16292
brynercb91a2f2006-08-25 21:14:45 +000016293 solaris*)
16294 no_undefined_flag_GCJ=' -z text'
16295 if test "$GCC" = yes; then
16296 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16297 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16298 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16299 else
16300 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16301 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16302 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16303 fi
16304 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16305 hardcode_shlibpath_var_GCJ=no
16306 case $host_os in
16307 solaris2.[0-5] | solaris2.[0-5].*) ;;
brynerd5e66382006-09-08 02:35:53 +000016308 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16309 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
brynercb91a2f2006-08-25 21:14:45 +000016310 esac
16311 link_all_deplibs_GCJ=yes
16312 ;;
16313
16314 sunos4*)
16315 if test "x$host_vendor" = xsequent; then
16316 # Use $CC to link under sequent, because it throws in some extra .o
16317 # files that make .init and .fini sections work.
16318 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16319 else
16320 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16321 fi
16322 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16323 hardcode_direct_GCJ=yes
16324 hardcode_minus_L_GCJ=yes
16325 hardcode_shlibpath_var_GCJ=no
16326 ;;
16327
16328 sysv4)
16329 case $host_vendor in
16330 sni)
16331 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16332 hardcode_direct_GCJ=yes # is this really true???
16333 ;;
16334 siemens)
16335 ## LD is ld it makes a PLAMLIB
16336 ## CC just makes a GrossModule.
16337 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16338 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16339 hardcode_direct_GCJ=no
16340 ;;
16341 motorola)
16342 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16343 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16344 ;;
16345 esac
16346 runpath_var='LD_RUN_PATH'
16347 hardcode_shlibpath_var_GCJ=no
16348 ;;
16349
16350 sysv4.3*)
16351 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16352 hardcode_shlibpath_var_GCJ=no
16353 export_dynamic_flag_spec_GCJ='-Bexport'
16354 ;;
16355
16356 sysv4*MP*)
16357 if test -d /usr/nec; then
16358 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16359 hardcode_shlibpath_var_GCJ=no
16360 runpath_var=LD_RUN_PATH
16361 hardcode_runpath_var=yes
16362 ld_shlibs_GCJ=yes
16363 fi
16364 ;;
16365
brynerd5e66382006-09-08 02:35:53 +000016366 sysv4.2uw2*)
16367 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16368 hardcode_direct_GCJ=yes
16369 hardcode_minus_L_GCJ=no
brynercb91a2f2006-08-25 21:14:45 +000016370 hardcode_shlibpath_var_GCJ=no
brynerd5e66382006-09-08 02:35:53 +000016371 hardcode_runpath_var=yes
16372 runpath_var=LD_RUN_PATH
bryner07f8ef52006-09-05 19:42:57 +000016373 ;;
16374
brynerd5e66382006-09-08 02:35:53 +000016375 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16376 no_undefined_flag_GCJ='${wl}-z ${wl}text'
mmentovai3261e8b2006-09-06 02:56:44 +000016377 if test "$GCC" = yes; then
brynerd5e66382006-09-08 02:35:53 +000016378 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +000016379 else
brynerd5e66382006-09-08 02:35:53 +000016380 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +000016381 fi
brynerd5e66382006-09-08 02:35:53 +000016382 runpath_var='LD_RUN_PATH'
16383 hardcode_shlibpath_var_GCJ=no
16384 ;;
16385
16386 sysv5*)
16387 no_undefined_flag_GCJ=' -z text'
16388 # $CC -shared without GNU ld will not create a library from C++
16389 # object files and a static libstdc++, better avoid it by now
16390 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16391 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16392 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16393 hardcode_libdir_flag_spec_GCJ=
16394 hardcode_shlibpath_var_GCJ=no
16395 runpath_var='LD_RUN_PATH'
brynercb91a2f2006-08-25 21:14:45 +000016396 ;;
16397
16398 uts4*)
16399 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16400 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16401 hardcode_shlibpath_var_GCJ=no
16402 ;;
16403
16404 *)
16405 ld_shlibs_GCJ=no
16406 ;;
16407 esac
16408 fi
16409
16410echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16411echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16412test "$ld_shlibs_GCJ" = no && can_build_shared=no
16413
brynerd5e66382006-09-08 02:35:53 +000016414variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16415if test "$GCC" = yes; then
16416 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16417fi
16418
brynercb91a2f2006-08-25 21:14:45 +000016419#
16420# Do we need to explicitly link libc?
16421#
16422case "x$archive_cmds_need_lc_GCJ" in
16423x|xyes)
16424 # Assume -lc should be added
16425 archive_cmds_need_lc_GCJ=yes
16426
16427 if test "$enable_shared" = yes && test "$GCC" = yes; then
16428 case $archive_cmds_GCJ in
16429 *'~'*)
16430 # FIXME: we may have to deal with multi-command sequences.
16431 ;;
16432 '$CC '*)
16433 # Test whether the compiler implicitly links with -lc since on some
16434 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16435 # to ld, don't add -lc before -lgcc.
16436 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16437echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16438 $rm conftest*
16439 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16440
16441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16442 (eval $ac_compile) 2>&5
16443 ac_status=$?
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); } 2>conftest.err; then
16446 soname=conftest
16447 lib=conftest
16448 libobjs=conftest.$ac_objext
16449 deplibs=
16450 wl=$lt_prog_compiler_wl_GCJ
16451 compiler_flags=-v
16452 linker_flags=-v
16453 verstring=
16454 output_objdir=.
16455 libname=conftest
16456 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16457 allow_undefined_flag_GCJ=
16458 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16459 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16460 ac_status=$?
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); }
16463 then
16464 archive_cmds_need_lc_GCJ=no
16465 else
16466 archive_cmds_need_lc_GCJ=yes
16467 fi
16468 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16469 else
16470 cat conftest.err 1>&5
16471 fi
16472 $rm conftest*
16473 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16474echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16475 ;;
16476 esac
16477 fi
16478 ;;
16479esac
16480
16481echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16482echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16483library_names_spec=
16484libname_spec='lib$name'
16485soname_spec=
16486shrext_cmds=".so"
16487postinstall_cmds=
16488postuninstall_cmds=
16489finish_cmds=
16490finish_eval=
16491shlibpath_var=
16492shlibpath_overrides_runpath=unknown
16493version_type=none
16494dynamic_linker="$host_os ld.so"
16495sys_lib_dlsearch_path_spec="/lib /usr/lib"
16496if test "$GCC" = yes; then
16497 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16498 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16499 # if the path contains ";" then we assume it to be the separator
16500 # otherwise default to the standard path separator (i.e. ":") - it is
16501 # assumed that no part of a normal pathname contains ";" but that should
16502 # okay in the real world where ";" in dirpaths is itself problematic.
16503 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16504 else
16505 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16506 fi
16507else
16508 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16509fi
16510need_lib_prefix=unknown
16511hardcode_into_libs=no
16512
16513# when you set need_version to no, make sure it does not cause -set_version
16514# flags to be left without arguments
16515need_version=unknown
16516
16517case $host_os in
16518aix3*)
16519 version_type=linux
16520 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16521 shlibpath_var=LIBPATH
16522
16523 # AIX 3 has no versioning support, so we append a major version to the name.
16524 soname_spec='${libname}${release}${shared_ext}$major'
16525 ;;
16526
16527aix4* | aix5*)
16528 version_type=linux
16529 need_lib_prefix=no
16530 need_version=no
16531 hardcode_into_libs=yes
16532 if test "$host_cpu" = ia64; then
16533 # AIX 5 supports IA64
16534 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16535 shlibpath_var=LD_LIBRARY_PATH
16536 else
16537 # With GCC up to 2.95.x, collect2 would create an import file
16538 # for dependence libraries. The import file would start with
16539 # the line `#! .'. This would cause the generated library to
16540 # depend on `.', always an invalid library. This was fixed in
16541 # development snapshots of GCC prior to 3.0.
16542 case $host_os in
16543 aix4 | aix4.[01] | aix4.[01].*)
16544 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16545 echo ' yes '
16546 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16547 :
16548 else
16549 can_build_shared=no
16550 fi
16551 ;;
16552 esac
16553 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16554 # soname into executable. Probably we can add versioning support to
16555 # collect2, so additional links can be useful in future.
16556 if test "$aix_use_runtimelinking" = yes; then
16557 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16558 # instead of lib<name>.a to let people know that these are not
16559 # typical AIX shared libraries.
16560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16561 else
16562 # We preserve .a as extension for shared libraries through AIX4.2
16563 # and later when we are not doing run time linking.
16564 library_names_spec='${libname}${release}.a $libname.a'
16565 soname_spec='${libname}${release}${shared_ext}$major'
16566 fi
16567 shlibpath_var=LIBPATH
16568 fi
16569 ;;
16570
16571amigaos*)
16572 library_names_spec='$libname.ixlibrary $libname.a'
16573 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16574 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'
16575 ;;
16576
16577beos*)
16578 library_names_spec='${libname}${shared_ext}'
16579 dynamic_linker="$host_os ld.so"
16580 shlibpath_var=LIBRARY_PATH
16581 ;;
16582
brynerd5e66382006-09-08 02:35:53 +000016583bsdi4*)
brynercb91a2f2006-08-25 21:14:45 +000016584 version_type=linux
16585 need_version=no
16586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16587 soname_spec='${libname}${release}${shared_ext}$major'
16588 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16589 shlibpath_var=LD_LIBRARY_PATH
16590 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16591 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16592 # the default ld.so.conf also contains /usr/contrib/lib and
16593 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16594 # libtool to hard-code these into programs
16595 ;;
16596
16597cygwin* | mingw* | pw32*)
16598 version_type=windows
16599 shrext_cmds=".dll"
16600 need_version=no
16601 need_lib_prefix=no
16602
16603 case $GCC,$host_os in
16604 yes,cygwin* | yes,mingw* | yes,pw32*)
16605 library_names_spec='$libname.dll.a'
16606 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16607 postinstall_cmds='base_file=`basename \${file}`~
16608 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16609 dldir=$destdir/`dirname \$dlpath`~
16610 test -d \$dldir || mkdir -p \$dldir~
brynerd5e66382006-09-08 02:35:53 +000016611 $install_prog $dir/$dlname \$dldir/$dlname'
brynercb91a2f2006-08-25 21:14:45 +000016612 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16613 dlpath=$dir/\$dldll~
16614 $rm \$dlpath'
16615 shlibpath_overrides_runpath=yes
16616
16617 case $host_os in
16618 cygwin*)
16619 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16620 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16621 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16622 ;;
16623 mingw*)
16624 # MinGW DLLs use traditional 'lib' prefix
16625 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16626 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16627 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16628 # It is most probably a Windows format PATH printed by
16629 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16630 # path with ; separators, and with drive letters. We can handle the
16631 # drive letters (cygwin fileutils understands them), so leave them,
16632 # especially as we might pass files found there to a mingw objdump,
16633 # which wouldn't understand a cygwinified path. Ahh.
16634 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16635 else
16636 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16637 fi
16638 ;;
16639 pw32*)
16640 # pw32 DLLs use 'pw' prefix rather than 'lib'
brynerd5e66382006-09-08 02:35:53 +000016641 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
brynercb91a2f2006-08-25 21:14:45 +000016642 ;;
16643 esac
16644 ;;
16645
16646 *)
16647 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16648 ;;
16649 esac
16650 dynamic_linker='Win32 ld.exe'
16651 # FIXME: first we should search . and the directory the executable is in
16652 shlibpath_var=PATH
16653 ;;
16654
16655darwin* | rhapsody*)
16656 dynamic_linker="$host_os dyld"
16657 version_type=darwin
16658 need_lib_prefix=no
16659 need_version=no
16660 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16661 soname_spec='${libname}${release}${major}$shared_ext'
16662 shlibpath_overrides_runpath=yes
16663 shlibpath_var=DYLD_LIBRARY_PATH
brynerd5e66382006-09-08 02:35:53 +000016664 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
brynercb91a2f2006-08-25 21:14:45 +000016665 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16666 if test "$GCC" = yes; then
16667 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"`
16668 else
16669 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16670 fi
16671 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16672 ;;
16673
16674dgux*)
16675 version_type=linux
16676 need_lib_prefix=no
16677 need_version=no
16678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16679 soname_spec='${libname}${release}${shared_ext}$major'
16680 shlibpath_var=LD_LIBRARY_PATH
16681 ;;
16682
16683freebsd1*)
16684 dynamic_linker=no
16685 ;;
16686
16687kfreebsd*-gnu)
16688 version_type=linux
16689 need_lib_prefix=no
16690 need_version=no
16691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16692 soname_spec='${libname}${release}${shared_ext}$major'
16693 shlibpath_var=LD_LIBRARY_PATH
16694 shlibpath_overrides_runpath=no
16695 hardcode_into_libs=yes
16696 dynamic_linker='GNU ld.so'
16697 ;;
16698
brynerd5e66382006-09-08 02:35:53 +000016699freebsd*)
16700 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
brynercb91a2f2006-08-25 21:14:45 +000016701 version_type=freebsd-$objformat
16702 case $version_type in
16703 freebsd-elf*)
16704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16705 need_version=no
16706 need_lib_prefix=no
16707 ;;
16708 freebsd-*)
16709 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16710 need_version=yes
16711 ;;
16712 esac
16713 shlibpath_var=LD_LIBRARY_PATH
16714 case $host_os in
16715 freebsd2*)
16716 shlibpath_overrides_runpath=yes
16717 ;;
brynerd5e66382006-09-08 02:35:53 +000016718 freebsd3.01* | freebsdelf3.01*)
brynercb91a2f2006-08-25 21:14:45 +000016719 shlibpath_overrides_runpath=yes
16720 hardcode_into_libs=yes
16721 ;;
brynerd5e66382006-09-08 02:35:53 +000016722 *) # from 3.2 on
brynercb91a2f2006-08-25 21:14:45 +000016723 shlibpath_overrides_runpath=no
16724 hardcode_into_libs=yes
16725 ;;
16726 esac
16727 ;;
16728
16729gnu*)
16730 version_type=linux
16731 need_lib_prefix=no
16732 need_version=no
16733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16734 soname_spec='${libname}${release}${shared_ext}$major'
16735 shlibpath_var=LD_LIBRARY_PATH
16736 hardcode_into_libs=yes
16737 ;;
16738
16739hpux9* | hpux10* | hpux11*)
16740 # Give a soname corresponding to the major version so that dld.sl refuses to
16741 # link against other versions.
16742 version_type=sunos
16743 need_lib_prefix=no
16744 need_version=no
brynerd5e66382006-09-08 02:35:53 +000016745 case "$host_cpu" in
brynercb91a2f2006-08-25 21:14:45 +000016746 ia64*)
16747 shrext_cmds='.so'
16748 hardcode_into_libs=yes
16749 dynamic_linker="$host_os dld.so"
16750 shlibpath_var=LD_LIBRARY_PATH
16751 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16753 soname_spec='${libname}${release}${shared_ext}$major'
16754 if test "X$HPUX_IA64_MODE" = X32; then
16755 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16756 else
16757 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16758 fi
16759 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16760 ;;
16761 hppa*64*)
16762 shrext_cmds='.sl'
16763 hardcode_into_libs=yes
16764 dynamic_linker="$host_os dld.sl"
16765 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16766 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16768 soname_spec='${libname}${release}${shared_ext}$major'
16769 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16770 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16771 ;;
16772 *)
16773 shrext_cmds='.sl'
16774 dynamic_linker="$host_os dld.sl"
16775 shlibpath_var=SHLIB_PATH
16776 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16778 soname_spec='${libname}${release}${shared_ext}$major'
16779 ;;
16780 esac
16781 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16782 postinstall_cmds='chmod 555 $lib'
16783 ;;
16784
16785irix5* | irix6* | nonstopux*)
16786 case $host_os in
16787 nonstopux*) version_type=nonstopux ;;
16788 *)
16789 if test "$lt_cv_prog_gnu_ld" = yes; then
16790 version_type=linux
16791 else
16792 version_type=irix
16793 fi ;;
16794 esac
16795 need_lib_prefix=no
16796 need_version=no
16797 soname_spec='${libname}${release}${shared_ext}$major'
16798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16799 case $host_os in
16800 irix5* | nonstopux*)
16801 libsuff= shlibsuff=
16802 ;;
16803 *)
16804 case $LD in # libtool.m4 will add one of these switches to LD
16805 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16806 libsuff= shlibsuff= libmagic=32-bit;;
16807 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16808 libsuff=32 shlibsuff=N32 libmagic=N32;;
16809 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16810 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16811 *) libsuff= shlibsuff= libmagic=never-match;;
16812 esac
16813 ;;
16814 esac
16815 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16816 shlibpath_overrides_runpath=no
16817 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16818 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16819 hardcode_into_libs=yes
16820 ;;
16821
16822# No shared lib support for Linux oldld, aout, or coff.
16823linux*oldld* | linux*aout* | linux*coff*)
16824 dynamic_linker=no
16825 ;;
16826
16827# This must be Linux ELF.
16828linux*)
16829 version_type=linux
16830 need_lib_prefix=no
16831 need_version=no
16832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16833 soname_spec='${libname}${release}${shared_ext}$major'
16834 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16835 shlibpath_var=LD_LIBRARY_PATH
16836 shlibpath_overrides_runpath=no
16837 # This implies no fast_install, which is unacceptable.
16838 # Some rework will be needed to allow for fast_install
16839 # before this can be enabled.
16840 hardcode_into_libs=yes
16841
16842 # Append ld.so.conf contents to the search path
16843 if test -f /etc/ld.so.conf; then
brynerd5e66382006-09-08 02:35:53 +000016844 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
brynercb91a2f2006-08-25 21:14:45 +000016845 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16846 fi
16847
16848 # We used to test for /lib/ld.so.1 and disable shared libraries on
16849 # powerpc, because MkLinux only supported shared libraries with the
16850 # GNU dynamic linker. Since this was broken with cross compilers,
16851 # most powerpc-linux boxes support dynamic linking these days and
16852 # people can always --disable-shared, the test was removed, and we
16853 # assume the GNU/Linux dynamic linker is in use.
16854 dynamic_linker='GNU/Linux ld.so'
16855 ;;
16856
brynerd5e66382006-09-08 02:35:53 +000016857netbsdelf*-gnu)
16858 version_type=linux
16859 need_lib_prefix=no
16860 need_version=no
16861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16862 soname_spec='${libname}${release}${shared_ext}$major'
16863 shlibpath_var=LD_LIBRARY_PATH
16864 shlibpath_overrides_runpath=no
16865 hardcode_into_libs=yes
16866 dynamic_linker='NetBSD ld.elf_so'
16867 ;;
16868
brynercb91a2f2006-08-25 21:14:45 +000016869knetbsd*-gnu)
16870 version_type=linux
16871 need_lib_prefix=no
16872 need_version=no
16873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16874 soname_spec='${libname}${release}${shared_ext}$major'
16875 shlibpath_var=LD_LIBRARY_PATH
16876 shlibpath_overrides_runpath=no
16877 hardcode_into_libs=yes
16878 dynamic_linker='GNU ld.so'
16879 ;;
16880
16881netbsd*)
16882 version_type=sunos
16883 need_lib_prefix=no
16884 need_version=no
16885 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16887 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16888 dynamic_linker='NetBSD (a.out) ld.so'
16889 else
16890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16891 soname_spec='${libname}${release}${shared_ext}$major'
16892 dynamic_linker='NetBSD ld.elf_so'
16893 fi
16894 shlibpath_var=LD_LIBRARY_PATH
16895 shlibpath_overrides_runpath=yes
16896 hardcode_into_libs=yes
16897 ;;
16898
16899newsos6)
16900 version_type=linux
16901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16902 shlibpath_var=LD_LIBRARY_PATH
16903 shlibpath_overrides_runpath=yes
16904 ;;
16905
16906nto-qnx*)
16907 version_type=linux
16908 need_lib_prefix=no
16909 need_version=no
16910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16911 soname_spec='${libname}${release}${shared_ext}$major'
16912 shlibpath_var=LD_LIBRARY_PATH
16913 shlibpath_overrides_runpath=yes
16914 ;;
16915
16916openbsd*)
16917 version_type=sunos
16918 need_lib_prefix=no
brynerd5e66382006-09-08 02:35:53 +000016919 need_version=yes
brynercb91a2f2006-08-25 21:14:45 +000016920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16922 shlibpath_var=LD_LIBRARY_PATH
16923 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16924 case $host_os in
16925 openbsd2.[89] | openbsd2.[89].*)
16926 shlibpath_overrides_runpath=no
16927 ;;
16928 *)
16929 shlibpath_overrides_runpath=yes
16930 ;;
16931 esac
16932 else
16933 shlibpath_overrides_runpath=yes
16934 fi
16935 ;;
16936
16937os2*)
16938 libname_spec='$name'
16939 shrext_cmds=".dll"
16940 need_lib_prefix=no
16941 library_names_spec='$libname${shared_ext} $libname.a'
16942 dynamic_linker='OS/2 ld.exe'
16943 shlibpath_var=LIBPATH
16944 ;;
16945
16946osf3* | osf4* | osf5*)
16947 version_type=osf
16948 need_lib_prefix=no
16949 need_version=no
16950 soname_spec='${libname}${release}${shared_ext}$major'
16951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16952 shlibpath_var=LD_LIBRARY_PATH
16953 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16954 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16955 ;;
16956
brynerd5e66382006-09-08 02:35:53 +000016957sco3.2v5*)
16958 version_type=osf
16959 soname_spec='${libname}${release}${shared_ext}$major'
16960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16961 shlibpath_var=LD_LIBRARY_PATH
16962 ;;
16963
brynercb91a2f2006-08-25 21:14:45 +000016964solaris*)
16965 version_type=linux
16966 need_lib_prefix=no
16967 need_version=no
16968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16969 soname_spec='${libname}${release}${shared_ext}$major'
16970 shlibpath_var=LD_LIBRARY_PATH
16971 shlibpath_overrides_runpath=yes
16972 hardcode_into_libs=yes
16973 # ldd complains unless libraries are executable
16974 postinstall_cmds='chmod +x $lib'
16975 ;;
16976
16977sunos4*)
16978 version_type=sunos
16979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16980 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16981 shlibpath_var=LD_LIBRARY_PATH
16982 shlibpath_overrides_runpath=yes
16983 if test "$with_gnu_ld" = yes; then
16984 need_lib_prefix=no
16985 fi
16986 need_version=yes
16987 ;;
16988
brynerd5e66382006-09-08 02:35:53 +000016989sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
brynercb91a2f2006-08-25 21:14:45 +000016990 version_type=linux
16991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16992 soname_spec='${libname}${release}${shared_ext}$major'
16993 shlibpath_var=LD_LIBRARY_PATH
16994 case $host_vendor in
16995 sni)
16996 shlibpath_overrides_runpath=no
16997 need_lib_prefix=no
16998 export_dynamic_flag_spec='${wl}-Blargedynsym'
16999 runpath_var=LD_RUN_PATH
17000 ;;
17001 siemens)
17002 need_lib_prefix=no
17003 ;;
17004 motorola)
17005 need_lib_prefix=no
17006 need_version=no
17007 shlibpath_overrides_runpath=no
17008 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17009 ;;
17010 esac
17011 ;;
17012
17013sysv4*MP*)
17014 if test -d /usr/nec ;then
17015 version_type=linux
17016 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17017 soname_spec='$libname${shared_ext}.$major'
17018 shlibpath_var=LD_LIBRARY_PATH
17019 fi
17020 ;;
17021
17022uts4*)
17023 version_type=linux
17024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17025 soname_spec='${libname}${release}${shared_ext}$major'
17026 shlibpath_var=LD_LIBRARY_PATH
17027 ;;
17028
17029*)
17030 dynamic_linker=no
17031 ;;
17032esac
17033echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17034echo "${ECHO_T}$dynamic_linker" >&6
17035test "$dynamic_linker" = no && can_build_shared=no
17036
17037echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17038echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17039hardcode_action_GCJ=
17040if test -n "$hardcode_libdir_flag_spec_GCJ" || \
brynerd5e66382006-09-08 02:35:53 +000017041 test -n "$runpath_var GCJ" || \
17042 test "X$hardcode_automatic_GCJ"="Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +000017043
17044 # We can hardcode non-existant directories.
17045 if test "$hardcode_direct_GCJ" != no &&
17046 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17047 # have to relink, otherwise we might link with an installed library
17048 # when we should be linking with a yet-to-be-installed one
17049 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17050 test "$hardcode_minus_L_GCJ" != no; then
17051 # Linking always hardcodes the temporary library directory.
17052 hardcode_action_GCJ=relink
17053 else
17054 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17055 hardcode_action_GCJ=immediate
17056 fi
17057else
17058 # We cannot hardcode anything, or else we can only hardcode existing
17059 # directories.
17060 hardcode_action_GCJ=unsupported
17061fi
17062echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17063echo "${ECHO_T}$hardcode_action_GCJ" >&6
17064
17065if test "$hardcode_action_GCJ" = relink; then
17066 # Fast installation is not supported
17067 enable_fast_install=no
17068elif test "$shlibpath_overrides_runpath" = yes ||
17069 test "$enable_shared" = no; then
17070 # Fast installation is not necessary
17071 enable_fast_install=needless
17072fi
17073
brynerd5e66382006-09-08 02:35:53 +000017074striplib=
17075old_striplib=
17076echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17077echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17078if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17079 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17080 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17081 echo "$as_me:$LINENO: result: yes" >&5
17082echo "${ECHO_T}yes" >&6
17083else
17084# FIXME - insert some real tests, host_os isn't really good enough
17085 case $host_os in
17086 darwin*)
17087 if test -n "$STRIP" ; then
17088 striplib="$STRIP -x"
17089 echo "$as_me:$LINENO: result: yes" >&5
17090echo "${ECHO_T}yes" >&6
17091 else
17092 echo "$as_me:$LINENO: result: no" >&5
17093echo "${ECHO_T}no" >&6
17094fi
17095 ;;
17096 *)
17097 echo "$as_me:$LINENO: result: no" >&5
17098echo "${ECHO_T}no" >&6
17099 ;;
17100 esac
17101fi
17102
17103if test "x$enable_dlopen" != xyes; then
17104 enable_dlopen=unknown
17105 enable_dlopen_self=unknown
17106 enable_dlopen_self_static=unknown
17107else
17108 lt_cv_dlopen=no
17109 lt_cv_dlopen_libs=
17110
17111 case $host_os in
17112 beos*)
17113 lt_cv_dlopen="load_add_on"
17114 lt_cv_dlopen_libs=
17115 lt_cv_dlopen_self=yes
17116 ;;
17117
17118 mingw* | pw32*)
17119 lt_cv_dlopen="LoadLibrary"
17120 lt_cv_dlopen_libs=
17121 ;;
17122
17123 cygwin*)
17124 lt_cv_dlopen="dlopen"
17125 lt_cv_dlopen_libs=
17126 ;;
17127
17128 darwin*)
17129 # if libdl is installed we need to link against it
17130 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17131echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17132if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17133 echo $ECHO_N "(cached) $ECHO_C" >&6
17134else
17135 ac_check_lib_save_LIBS=$LIBS
17136LIBS="-ldl $LIBS"
17137cat >conftest.$ac_ext <<_ACEOF
17138/* confdefs.h. */
17139_ACEOF
17140cat confdefs.h >>conftest.$ac_ext
17141cat >>conftest.$ac_ext <<_ACEOF
17142/* end confdefs.h. */
17143
17144/* Override any gcc2 internal prototype to avoid an error. */
17145#ifdef __cplusplus
17146extern "C"
17147#endif
17148/* We use char because int might match the return type of a gcc2
17149 builtin and then its argument prototype would still apply. */
17150char dlopen ();
17151int
17152main ()
17153{
17154dlopen ();
17155 ;
17156 return 0;
17157}
17158_ACEOF
17159rm -f conftest.$ac_objext conftest$ac_exeext
17160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17161 (eval $ac_link) 2>conftest.er1
17162 ac_status=$?
17163 grep -v '^ *+' conftest.er1 >conftest.err
17164 rm -f conftest.er1
17165 cat conftest.err >&5
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); } &&
17168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17170 (eval $ac_try) 2>&5
17171 ac_status=$?
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); }; } &&
17174 { ac_try='test -s conftest$ac_exeext'
17175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17176 (eval $ac_try) 2>&5
17177 ac_status=$?
17178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); }; }; then
17180 ac_cv_lib_dl_dlopen=yes
17181else
17182 echo "$as_me: failed program was:" >&5
17183sed 's/^/| /' conftest.$ac_ext >&5
17184
17185ac_cv_lib_dl_dlopen=no
17186fi
17187rm -f conftest.err conftest.$ac_objext \
17188 conftest$ac_exeext conftest.$ac_ext
17189LIBS=$ac_check_lib_save_LIBS
17190fi
17191echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17192echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17193if test $ac_cv_lib_dl_dlopen = yes; then
17194 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17195else
17196
17197 lt_cv_dlopen="dyld"
17198 lt_cv_dlopen_libs=
17199 lt_cv_dlopen_self=yes
17200
17201fi
17202
17203 ;;
17204
17205 *)
17206 echo "$as_me:$LINENO: checking for shl_load" >&5
17207echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17208if test "${ac_cv_func_shl_load+set}" = set; then
17209 echo $ECHO_N "(cached) $ECHO_C" >&6
17210else
17211 cat >conftest.$ac_ext <<_ACEOF
17212/* confdefs.h. */
17213_ACEOF
17214cat confdefs.h >>conftest.$ac_ext
17215cat >>conftest.$ac_ext <<_ACEOF
17216/* end confdefs.h. */
17217/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17219#define shl_load innocuous_shl_load
17220
17221/* System header to define __stub macros and hopefully few prototypes,
17222 which can conflict with char shl_load (); below.
17223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17224 <limits.h> exists even on freestanding compilers. */
17225
17226#ifdef __STDC__
17227# include <limits.h>
17228#else
17229# include <assert.h>
17230#endif
17231
17232#undef shl_load
17233
17234/* Override any gcc2 internal prototype to avoid an error. */
17235#ifdef __cplusplus
17236extern "C"
17237{
17238#endif
17239/* We use char because int might match the return type of a gcc2
17240 builtin and then its argument prototype would still apply. */
17241char shl_load ();
17242/* The GNU C library defines this for functions which it implements
17243 to always fail with ENOSYS. Some functions are actually named
17244 something starting with __ and the normal name is an alias. */
17245#if defined (__stub_shl_load) || defined (__stub___shl_load)
17246choke me
17247#else
17248char (*f) () = shl_load;
17249#endif
17250#ifdef __cplusplus
17251}
17252#endif
17253
17254int
17255main ()
17256{
17257return f != shl_load;
17258 ;
17259 return 0;
17260}
17261_ACEOF
17262rm -f conftest.$ac_objext conftest$ac_exeext
17263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17264 (eval $ac_link) 2>conftest.er1
17265 ac_status=$?
17266 grep -v '^ *+' conftest.er1 >conftest.err
17267 rm -f conftest.er1
17268 cat conftest.err >&5
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); } &&
17271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17273 (eval $ac_try) 2>&5
17274 ac_status=$?
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); }; } &&
17277 { ac_try='test -s conftest$ac_exeext'
17278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17279 (eval $ac_try) 2>&5
17280 ac_status=$?
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); }; }; then
17283 ac_cv_func_shl_load=yes
17284else
17285 echo "$as_me: failed program was:" >&5
17286sed 's/^/| /' conftest.$ac_ext >&5
17287
17288ac_cv_func_shl_load=no
17289fi
17290rm -f conftest.err conftest.$ac_objext \
17291 conftest$ac_exeext conftest.$ac_ext
17292fi
17293echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17294echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17295if test $ac_cv_func_shl_load = yes; then
17296 lt_cv_dlopen="shl_load"
17297else
17298 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17299echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17300if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17301 echo $ECHO_N "(cached) $ECHO_C" >&6
17302else
17303 ac_check_lib_save_LIBS=$LIBS
17304LIBS="-ldld $LIBS"
17305cat >conftest.$ac_ext <<_ACEOF
17306/* confdefs.h. */
17307_ACEOF
17308cat confdefs.h >>conftest.$ac_ext
17309cat >>conftest.$ac_ext <<_ACEOF
17310/* end confdefs.h. */
17311
17312/* Override any gcc2 internal prototype to avoid an error. */
17313#ifdef __cplusplus
17314extern "C"
17315#endif
17316/* We use char because int might match the return type of a gcc2
17317 builtin and then its argument prototype would still apply. */
17318char shl_load ();
17319int
17320main ()
17321{
17322shl_load ();
17323 ;
17324 return 0;
17325}
17326_ACEOF
17327rm -f conftest.$ac_objext conftest$ac_exeext
17328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17329 (eval $ac_link) 2>conftest.er1
17330 ac_status=$?
17331 grep -v '^ *+' conftest.er1 >conftest.err
17332 rm -f conftest.er1
17333 cat conftest.err >&5
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); } &&
17336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17338 (eval $ac_try) 2>&5
17339 ac_status=$?
17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); }; } &&
17342 { ac_try='test -s conftest$ac_exeext'
17343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17344 (eval $ac_try) 2>&5
17345 ac_status=$?
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); }; }; then
17348 ac_cv_lib_dld_shl_load=yes
17349else
17350 echo "$as_me: failed program was:" >&5
17351sed 's/^/| /' conftest.$ac_ext >&5
17352
17353ac_cv_lib_dld_shl_load=no
17354fi
17355rm -f conftest.err conftest.$ac_objext \
17356 conftest$ac_exeext conftest.$ac_ext
17357LIBS=$ac_check_lib_save_LIBS
17358fi
17359echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17360echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17361if test $ac_cv_lib_dld_shl_load = yes; then
17362 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17363else
17364 echo "$as_me:$LINENO: checking for dlopen" >&5
17365echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17366if test "${ac_cv_func_dlopen+set}" = set; then
17367 echo $ECHO_N "(cached) $ECHO_C" >&6
17368else
17369 cat >conftest.$ac_ext <<_ACEOF
17370/* confdefs.h. */
17371_ACEOF
17372cat confdefs.h >>conftest.$ac_ext
17373cat >>conftest.$ac_ext <<_ACEOF
17374/* end confdefs.h. */
17375/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17377#define dlopen innocuous_dlopen
17378
17379/* System header to define __stub macros and hopefully few prototypes,
17380 which can conflict with char dlopen (); below.
17381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17382 <limits.h> exists even on freestanding compilers. */
17383
17384#ifdef __STDC__
17385# include <limits.h>
17386#else
17387# include <assert.h>
17388#endif
17389
17390#undef dlopen
17391
17392/* Override any gcc2 internal prototype to avoid an error. */
17393#ifdef __cplusplus
17394extern "C"
17395{
17396#endif
17397/* We use char because int might match the return type of a gcc2
17398 builtin and then its argument prototype would still apply. */
17399char dlopen ();
17400/* The GNU C library defines this for functions which it implements
17401 to always fail with ENOSYS. Some functions are actually named
17402 something starting with __ and the normal name is an alias. */
17403#if defined (__stub_dlopen) || defined (__stub___dlopen)
17404choke me
17405#else
17406char (*f) () = dlopen;
17407#endif
17408#ifdef __cplusplus
17409}
17410#endif
17411
17412int
17413main ()
17414{
17415return f != dlopen;
17416 ;
17417 return 0;
17418}
17419_ACEOF
17420rm -f conftest.$ac_objext conftest$ac_exeext
17421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17422 (eval $ac_link) 2>conftest.er1
17423 ac_status=$?
17424 grep -v '^ *+' conftest.er1 >conftest.err
17425 rm -f conftest.er1
17426 cat conftest.err >&5
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); } &&
17429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431 (eval $ac_try) 2>&5
17432 ac_status=$?
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); }; } &&
17435 { ac_try='test -s conftest$ac_exeext'
17436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437 (eval $ac_try) 2>&5
17438 ac_status=$?
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; }; then
17441 ac_cv_func_dlopen=yes
17442else
17443 echo "$as_me: failed program was:" >&5
17444sed 's/^/| /' conftest.$ac_ext >&5
17445
17446ac_cv_func_dlopen=no
17447fi
17448rm -f conftest.err conftest.$ac_objext \
17449 conftest$ac_exeext conftest.$ac_ext
17450fi
17451echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17452echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17453if test $ac_cv_func_dlopen = yes; then
17454 lt_cv_dlopen="dlopen"
17455else
17456 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17457echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17458if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17459 echo $ECHO_N "(cached) $ECHO_C" >&6
17460else
17461 ac_check_lib_save_LIBS=$LIBS
17462LIBS="-ldl $LIBS"
17463cat >conftest.$ac_ext <<_ACEOF
17464/* confdefs.h. */
17465_ACEOF
17466cat confdefs.h >>conftest.$ac_ext
17467cat >>conftest.$ac_ext <<_ACEOF
17468/* end confdefs.h. */
17469
17470/* Override any gcc2 internal prototype to avoid an error. */
17471#ifdef __cplusplus
17472extern "C"
17473#endif
17474/* We use char because int might match the return type of a gcc2
17475 builtin and then its argument prototype would still apply. */
17476char dlopen ();
17477int
17478main ()
17479{
17480dlopen ();
17481 ;
17482 return 0;
17483}
17484_ACEOF
17485rm -f conftest.$ac_objext conftest$ac_exeext
17486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17487 (eval $ac_link) 2>conftest.er1
17488 ac_status=$?
17489 grep -v '^ *+' conftest.er1 >conftest.err
17490 rm -f conftest.er1
17491 cat conftest.err >&5
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); } &&
17494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17496 (eval $ac_try) 2>&5
17497 ac_status=$?
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); }; } &&
17500 { ac_try='test -s conftest$ac_exeext'
17501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17502 (eval $ac_try) 2>&5
17503 ac_status=$?
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); }; }; then
17506 ac_cv_lib_dl_dlopen=yes
17507else
17508 echo "$as_me: failed program was:" >&5
17509sed 's/^/| /' conftest.$ac_ext >&5
17510
17511ac_cv_lib_dl_dlopen=no
17512fi
17513rm -f conftest.err conftest.$ac_objext \
17514 conftest$ac_exeext conftest.$ac_ext
17515LIBS=$ac_check_lib_save_LIBS
17516fi
17517echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17518echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17519if test $ac_cv_lib_dl_dlopen = yes; then
17520 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17521else
17522 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17523echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17524if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17525 echo $ECHO_N "(cached) $ECHO_C" >&6
17526else
17527 ac_check_lib_save_LIBS=$LIBS
17528LIBS="-lsvld $LIBS"
17529cat >conftest.$ac_ext <<_ACEOF
17530/* confdefs.h. */
17531_ACEOF
17532cat confdefs.h >>conftest.$ac_ext
17533cat >>conftest.$ac_ext <<_ACEOF
17534/* end confdefs.h. */
17535
17536/* Override any gcc2 internal prototype to avoid an error. */
17537#ifdef __cplusplus
17538extern "C"
17539#endif
17540/* We use char because int might match the return type of a gcc2
17541 builtin and then its argument prototype would still apply. */
17542char dlopen ();
17543int
17544main ()
17545{
17546dlopen ();
17547 ;
17548 return 0;
17549}
17550_ACEOF
17551rm -f conftest.$ac_objext conftest$ac_exeext
17552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17553 (eval $ac_link) 2>conftest.er1
17554 ac_status=$?
17555 grep -v '^ *+' conftest.er1 >conftest.err
17556 rm -f conftest.er1
17557 cat conftest.err >&5
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); } &&
17560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17562 (eval $ac_try) 2>&5
17563 ac_status=$?
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); }; } &&
17566 { ac_try='test -s conftest$ac_exeext'
17567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17568 (eval $ac_try) 2>&5
17569 ac_status=$?
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); }; }; then
17572 ac_cv_lib_svld_dlopen=yes
17573else
17574 echo "$as_me: failed program was:" >&5
17575sed 's/^/| /' conftest.$ac_ext >&5
17576
17577ac_cv_lib_svld_dlopen=no
17578fi
17579rm -f conftest.err conftest.$ac_objext \
17580 conftest$ac_exeext conftest.$ac_ext
17581LIBS=$ac_check_lib_save_LIBS
17582fi
17583echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17584echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17585if test $ac_cv_lib_svld_dlopen = yes; then
17586 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17587else
17588 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17589echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17590if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17591 echo $ECHO_N "(cached) $ECHO_C" >&6
17592else
17593 ac_check_lib_save_LIBS=$LIBS
17594LIBS="-ldld $LIBS"
17595cat >conftest.$ac_ext <<_ACEOF
17596/* confdefs.h. */
17597_ACEOF
17598cat confdefs.h >>conftest.$ac_ext
17599cat >>conftest.$ac_ext <<_ACEOF
17600/* end confdefs.h. */
17601
17602/* Override any gcc2 internal prototype to avoid an error. */
17603#ifdef __cplusplus
17604extern "C"
17605#endif
17606/* We use char because int might match the return type of a gcc2
17607 builtin and then its argument prototype would still apply. */
17608char dld_link ();
17609int
17610main ()
17611{
17612dld_link ();
17613 ;
17614 return 0;
17615}
17616_ACEOF
17617rm -f conftest.$ac_objext conftest$ac_exeext
17618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17619 (eval $ac_link) 2>conftest.er1
17620 ac_status=$?
17621 grep -v '^ *+' conftest.er1 >conftest.err
17622 rm -f conftest.er1
17623 cat conftest.err >&5
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); } &&
17626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17628 (eval $ac_try) 2>&5
17629 ac_status=$?
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); }; } &&
17632 { ac_try='test -s conftest$ac_exeext'
17633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634 (eval $ac_try) 2>&5
17635 ac_status=$?
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; }; then
17638 ac_cv_lib_dld_dld_link=yes
17639else
17640 echo "$as_me: failed program was:" >&5
17641sed 's/^/| /' conftest.$ac_ext >&5
17642
17643ac_cv_lib_dld_dld_link=no
17644fi
17645rm -f conftest.err conftest.$ac_objext \
17646 conftest$ac_exeext conftest.$ac_ext
17647LIBS=$ac_check_lib_save_LIBS
17648fi
17649echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17650echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17651if test $ac_cv_lib_dld_dld_link = yes; then
17652 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17653fi
17654
17655
17656fi
17657
17658
17659fi
17660
17661
17662fi
17663
17664
17665fi
17666
17667
17668fi
17669
17670 ;;
17671 esac
17672
17673 if test "x$lt_cv_dlopen" != xno; then
17674 enable_dlopen=yes
17675 else
17676 enable_dlopen=no
17677 fi
17678
17679 case $lt_cv_dlopen in
17680 dlopen)
17681 save_CPPFLAGS="$CPPFLAGS"
17682 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17683
17684 save_LDFLAGS="$LDFLAGS"
17685 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17686
17687 save_LIBS="$LIBS"
17688 LIBS="$lt_cv_dlopen_libs $LIBS"
17689
17690 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17691echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17692if test "${lt_cv_dlopen_self+set}" = set; then
17693 echo $ECHO_N "(cached) $ECHO_C" >&6
17694else
17695 if test "$cross_compiling" = yes; then :
17696 lt_cv_dlopen_self=cross
17697else
17698 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17699 lt_status=$lt_dlunknown
17700 cat > conftest.$ac_ext <<EOF
17701#line 17701 "configure"
17702#include "confdefs.h"
17703
17704#if HAVE_DLFCN_H
17705#include <dlfcn.h>
17706#endif
17707
17708#include <stdio.h>
17709
17710#ifdef RTLD_GLOBAL
17711# define LT_DLGLOBAL RTLD_GLOBAL
17712#else
17713# ifdef DL_GLOBAL
17714# define LT_DLGLOBAL DL_GLOBAL
17715# else
17716# define LT_DLGLOBAL 0
17717# endif
17718#endif
17719
17720/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17721 find out it does not work in some platform. */
17722#ifndef LT_DLLAZY_OR_NOW
17723# ifdef RTLD_LAZY
17724# define LT_DLLAZY_OR_NOW RTLD_LAZY
17725# else
17726# ifdef DL_LAZY
17727# define LT_DLLAZY_OR_NOW DL_LAZY
17728# else
17729# ifdef RTLD_NOW
17730# define LT_DLLAZY_OR_NOW RTLD_NOW
17731# else
17732# ifdef DL_NOW
17733# define LT_DLLAZY_OR_NOW DL_NOW
17734# else
17735# define LT_DLLAZY_OR_NOW 0
17736# endif
17737# endif
17738# endif
17739# endif
17740#endif
17741
17742#ifdef __cplusplus
17743extern "C" void exit (int);
17744#endif
17745
17746void fnord() { int i=42;}
17747int main ()
17748{
17749 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17750 int status = $lt_dlunknown;
17751
17752 if (self)
17753 {
17754 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17755 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17756 /* dlclose (self); */
17757 }
17758
17759 exit (status);
17760}
17761EOF
17762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17763 (eval $ac_link) 2>&5
17764 ac_status=$?
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17767 (./conftest; exit; ) 2>/dev/null
17768 lt_status=$?
17769 case x$lt_status in
17770 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17771 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17772 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17773 esac
17774 else :
17775 # compilation failed
17776 lt_cv_dlopen_self=no
17777 fi
17778fi
17779rm -fr conftest*
17780
17781
17782fi
17783echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17784echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17785
17786 if test "x$lt_cv_dlopen_self" = xyes; then
17787 LDFLAGS="$LDFLAGS $link_static_flag"
17788 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17789echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17790if test "${lt_cv_dlopen_self_static+set}" = set; then
17791 echo $ECHO_N "(cached) $ECHO_C" >&6
17792else
17793 if test "$cross_compiling" = yes; then :
17794 lt_cv_dlopen_self_static=cross
17795else
17796 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17797 lt_status=$lt_dlunknown
17798 cat > conftest.$ac_ext <<EOF
17799#line 17799 "configure"
17800#include "confdefs.h"
17801
17802#if HAVE_DLFCN_H
17803#include <dlfcn.h>
17804#endif
17805
17806#include <stdio.h>
17807
17808#ifdef RTLD_GLOBAL
17809# define LT_DLGLOBAL RTLD_GLOBAL
17810#else
17811# ifdef DL_GLOBAL
17812# define LT_DLGLOBAL DL_GLOBAL
17813# else
17814# define LT_DLGLOBAL 0
17815# endif
17816#endif
17817
17818/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17819 find out it does not work in some platform. */
17820#ifndef LT_DLLAZY_OR_NOW
17821# ifdef RTLD_LAZY
17822# define LT_DLLAZY_OR_NOW RTLD_LAZY
17823# else
17824# ifdef DL_LAZY
17825# define LT_DLLAZY_OR_NOW DL_LAZY
17826# else
17827# ifdef RTLD_NOW
17828# define LT_DLLAZY_OR_NOW RTLD_NOW
17829# else
17830# ifdef DL_NOW
17831# define LT_DLLAZY_OR_NOW DL_NOW
17832# else
17833# define LT_DLLAZY_OR_NOW 0
17834# endif
17835# endif
17836# endif
17837# endif
17838#endif
17839
17840#ifdef __cplusplus
17841extern "C" void exit (int);
17842#endif
17843
17844void fnord() { int i=42;}
17845int main ()
17846{
17847 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17848 int status = $lt_dlunknown;
17849
17850 if (self)
17851 {
17852 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17853 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17854 /* dlclose (self); */
17855 }
17856
17857 exit (status);
17858}
17859EOF
17860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17861 (eval $ac_link) 2>&5
17862 ac_status=$?
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17865 (./conftest; exit; ) 2>/dev/null
17866 lt_status=$?
17867 case x$lt_status in
17868 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17869 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17870 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17871 esac
17872 else :
17873 # compilation failed
17874 lt_cv_dlopen_self_static=no
17875 fi
17876fi
17877rm -fr conftest*
17878
17879
17880fi
17881echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17882echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17883 fi
17884
17885 CPPFLAGS="$save_CPPFLAGS"
17886 LDFLAGS="$save_LDFLAGS"
17887 LIBS="$save_LIBS"
17888 ;;
17889 esac
17890
17891 case $lt_cv_dlopen_self in
17892 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17893 *) enable_dlopen_self=unknown ;;
17894 esac
17895
17896 case $lt_cv_dlopen_self_static in
17897 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17898 *) enable_dlopen_self_static=unknown ;;
17899 esac
17900fi
17901
brynercb91a2f2006-08-25 21:14:45 +000017902
17903# The else clause should only fire when bootstrapping the
17904# libtool distribution, otherwise you forgot to ship ltmain.sh
17905# with your package, and you will get complaints that there are
17906# no rules to generate ltmain.sh.
17907if test -f "$ltmain"; then
17908 # See if we are running on zsh, and set the options which allow our commands through
17909 # without removal of \ escapes.
17910 if test -n "${ZSH_VERSION+set}" ; then
17911 setopt NO_GLOB_SUBST
17912 fi
17913 # Now quote all the things that may contain metacharacters while being
17914 # careful not to overquote the AC_SUBSTed values. We take copies of the
17915 # variables and quote the copies for generation of the libtool script.
brynerd5e66382006-09-08 02:35:53 +000017916 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
brynercb91a2f2006-08-25 21:14:45 +000017917 SED SHELL STRIP \
17918 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17919 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17920 deplibs_check_method reload_flag reload_cmds need_locks \
17921 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17922 lt_cv_sys_global_symbol_to_c_name_address \
17923 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17924 old_postinstall_cmds old_postuninstall_cmds \
17925 compiler_GCJ \
17926 CC_GCJ \
17927 LD_GCJ \
17928 lt_prog_compiler_wl_GCJ \
17929 lt_prog_compiler_pic_GCJ \
17930 lt_prog_compiler_static_GCJ \
17931 lt_prog_compiler_no_builtin_flag_GCJ \
17932 export_dynamic_flag_spec_GCJ \
17933 thread_safe_flag_spec_GCJ \
17934 whole_archive_flag_spec_GCJ \
17935 enable_shared_with_static_runtimes_GCJ \
17936 old_archive_cmds_GCJ \
17937 old_archive_from_new_cmds_GCJ \
17938 predep_objects_GCJ \
17939 postdep_objects_GCJ \
17940 predeps_GCJ \
17941 postdeps_GCJ \
17942 compiler_lib_search_path_GCJ \
17943 archive_cmds_GCJ \
17944 archive_expsym_cmds_GCJ \
17945 postinstall_cmds_GCJ \
17946 postuninstall_cmds_GCJ \
17947 old_archive_from_expsyms_cmds_GCJ \
17948 allow_undefined_flag_GCJ \
17949 no_undefined_flag_GCJ \
17950 export_symbols_cmds_GCJ \
17951 hardcode_libdir_flag_spec_GCJ \
17952 hardcode_libdir_flag_spec_ld_GCJ \
17953 hardcode_libdir_separator_GCJ \
17954 hardcode_automatic_GCJ \
17955 module_cmds_GCJ \
17956 module_expsym_cmds_GCJ \
17957 lt_cv_prog_compiler_c_o_GCJ \
17958 exclude_expsyms_GCJ \
17959 include_expsyms_GCJ; do
17960
17961 case $var in
17962 old_archive_cmds_GCJ | \
17963 old_archive_from_new_cmds_GCJ | \
17964 archive_cmds_GCJ | \
17965 archive_expsym_cmds_GCJ | \
17966 module_cmds_GCJ | \
17967 module_expsym_cmds_GCJ | \
17968 old_archive_from_expsyms_cmds_GCJ | \
17969 export_symbols_cmds_GCJ | \
17970 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17971 postinstall_cmds | postuninstall_cmds | \
17972 old_postinstall_cmds | old_postuninstall_cmds | \
17973 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17974 # Double-quote double-evaled strings.
17975 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17976 ;;
17977 *)
17978 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17979 ;;
17980 esac
17981 done
17982
17983 case $lt_echo in
17984 *'\$0 --fallback-echo"')
17985 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17986 ;;
17987 esac
17988
17989cfgfile="$ofile"
17990
17991 cat <<__EOF__ >> "$cfgfile"
17992# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17993
17994# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17995
17996# Shell to use when invoking shell scripts.
17997SHELL=$lt_SHELL
17998
17999# Whether or not to build shared libraries.
18000build_libtool_libs=$enable_shared
18001
18002# Whether or not to build static libraries.
18003build_old_libs=$enable_static
18004
18005# Whether or not to add -lc for building shared libraries.
18006build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18007
18008# Whether or not to disallow shared libs when runtime libs are static
18009allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18010
18011# Whether or not to optimize for fast installation.
18012fast_install=$enable_fast_install
18013
18014# The host system.
18015host_alias=$host_alias
18016host=$host
18017
18018# An echo program that does not interpret backslashes.
18019echo=$lt_echo
18020
18021# The archiver.
18022AR=$lt_AR
18023AR_FLAGS=$lt_AR_FLAGS
18024
18025# A C compiler.
18026LTCC=$lt_LTCC
18027
18028# A language-specific compiler.
18029CC=$lt_compiler_GCJ
18030
18031# Is the compiler the GNU C compiler?
18032with_gcc=$GCC_GCJ
18033
18034# An ERE matcher.
18035EGREP=$lt_EGREP
18036
18037# The linker used to build libraries.
18038LD=$lt_LD_GCJ
18039
18040# Whether we need hard or soft links.
18041LN_S=$lt_LN_S
18042
18043# A BSD-compatible nm program.
18044NM=$lt_NM
18045
18046# A symbol stripping program
18047STRIP=$lt_STRIP
18048
18049# Used to examine libraries when file_magic_cmd begins "file"
18050MAGIC_CMD=$MAGIC_CMD
18051
18052# Used on cygwin: DLL creation program.
18053DLLTOOL="$DLLTOOL"
18054
18055# Used on cygwin: object dumper.
18056OBJDUMP="$OBJDUMP"
18057
18058# Used on cygwin: assembler.
18059AS="$AS"
18060
18061# The name of the directory that contains temporary libtool files.
18062objdir=$objdir
18063
18064# How to create reloadable object files.
18065reload_flag=$lt_reload_flag
18066reload_cmds=$lt_reload_cmds
18067
18068# How to pass a linker flag through the compiler.
18069wl=$lt_lt_prog_compiler_wl_GCJ
18070
18071# Object file suffix (normally "o").
18072objext="$ac_objext"
18073
18074# Old archive suffix (normally "a").
18075libext="$libext"
18076
18077# Shared library suffix (normally ".so").
18078shrext_cmds='$shrext_cmds'
18079
18080# Executable file suffix (normally "").
18081exeext="$exeext"
18082
18083# Additional compiler flags for building library objects.
18084pic_flag=$lt_lt_prog_compiler_pic_GCJ
18085pic_mode=$pic_mode
18086
18087# What is the maximum length of a command?
18088max_cmd_len=$lt_cv_sys_max_cmd_len
18089
18090# Does compiler simultaneously support -c and -o options?
18091compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18092
brynerd5e66382006-09-08 02:35:53 +000018093# Must we lock files when doing compilation ?
brynercb91a2f2006-08-25 21:14:45 +000018094need_locks=$lt_need_locks
18095
18096# Do we need the lib prefix for modules?
18097need_lib_prefix=$need_lib_prefix
18098
18099# Do we need a version for libraries?
18100need_version=$need_version
18101
18102# Whether dlopen is supported.
18103dlopen_support=$enable_dlopen
18104
18105# Whether dlopen of programs is supported.
18106dlopen_self=$enable_dlopen_self
18107
18108# Whether dlopen of statically linked programs is supported.
18109dlopen_self_static=$enable_dlopen_self_static
18110
18111# Compiler flag to prevent dynamic linking.
18112link_static_flag=$lt_lt_prog_compiler_static_GCJ
18113
18114# Compiler flag to turn off builtin functions.
18115no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18116
18117# Compiler flag to allow reflexive dlopens.
18118export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18119
18120# Compiler flag to generate shared objects directly from archives.
18121whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18122
18123# Compiler flag to generate thread-safe objects.
18124thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18125
18126# Library versioning type.
18127version_type=$version_type
18128
18129# Format of library name prefix.
18130libname_spec=$lt_libname_spec
18131
18132# List of archive names. First name is the real one, the rest are links.
18133# The last name is the one that the linker finds with -lNAME.
18134library_names_spec=$lt_library_names_spec
18135
18136# The coded name of the library, if different from the real name.
18137soname_spec=$lt_soname_spec
18138
18139# Commands used to build and install an old-style archive.
18140RANLIB=$lt_RANLIB
18141old_archive_cmds=$lt_old_archive_cmds_GCJ
18142old_postinstall_cmds=$lt_old_postinstall_cmds
18143old_postuninstall_cmds=$lt_old_postuninstall_cmds
18144
18145# Create an old-style archive from a shared archive.
18146old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18147
18148# Create a temporary old-style archive to link instead of a shared archive.
18149old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18150
18151# Commands used to build and install a shared archive.
18152archive_cmds=$lt_archive_cmds_GCJ
18153archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18154postinstall_cmds=$lt_postinstall_cmds
18155postuninstall_cmds=$lt_postuninstall_cmds
18156
18157# Commands used to build a loadable module (assumed same as above if empty)
18158module_cmds=$lt_module_cmds_GCJ
18159module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18160
18161# Commands to strip libraries.
18162old_striplib=$lt_old_striplib
18163striplib=$lt_striplib
18164
18165# Dependencies to place before the objects being linked to create a
18166# shared library.
18167predep_objects=$lt_predep_objects_GCJ
18168
18169# Dependencies to place after the objects being linked to create a
18170# shared library.
18171postdep_objects=$lt_postdep_objects_GCJ
18172
18173# Dependencies to place before the objects being linked to create a
18174# shared library.
18175predeps=$lt_predeps_GCJ
18176
18177# Dependencies to place after the objects being linked to create a
18178# shared library.
18179postdeps=$lt_postdeps_GCJ
18180
18181# The library search path used internally by the compiler when linking
18182# a shared library.
18183compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18184
18185# Method to check whether dependent libraries are shared objects.
18186deplibs_check_method=$lt_deplibs_check_method
18187
18188# Command to use when deplibs_check_method == file_magic.
18189file_magic_cmd=$lt_file_magic_cmd
18190
18191# Flag that allows shared libraries with undefined symbols to be built.
18192allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18193
18194# Flag that forces no undefined symbols.
18195no_undefined_flag=$lt_no_undefined_flag_GCJ
18196
18197# Commands used to finish a libtool library installation in a directory.
18198finish_cmds=$lt_finish_cmds
18199
18200# Same as above, but a single script fragment to be evaled but not shown.
18201finish_eval=$lt_finish_eval
18202
18203# Take the output of nm and produce a listing of raw symbols and C names.
18204global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18205
18206# Transform the output of nm in a proper C declaration
18207global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18208
18209# Transform the output of nm in a C name address pair
18210global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18211
18212# This is the shared library runtime path variable.
18213runpath_var=$runpath_var
18214
18215# This is the shared library path variable.
18216shlibpath_var=$shlibpath_var
18217
18218# Is shlibpath searched before the hard-coded library search path?
18219shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18220
18221# How to hardcode a shared library path into an executable.
18222hardcode_action=$hardcode_action_GCJ
18223
18224# Whether we should hardcode library paths into libraries.
18225hardcode_into_libs=$hardcode_into_libs
18226
18227# Flag to hardcode \$libdir into a binary during linking.
18228# This must work even if \$libdir does not exist.
18229hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18230
18231# If ld is used when linking, flag to hardcode \$libdir into
18232# a binary during linking. This must work even if \$libdir does
18233# not exist.
18234hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18235
18236# Whether we need a single -rpath flag with a separated argument.
18237hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18238
18239# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18240# resulting binary.
18241hardcode_direct=$hardcode_direct_GCJ
18242
18243# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18244# resulting binary.
18245hardcode_minus_L=$hardcode_minus_L_GCJ
18246
18247# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18248# the resulting binary.
18249hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18250
18251# Set to yes if building a shared library automatically hardcodes DIR into the library
18252# and all subsequent libraries and executables linked against it.
18253hardcode_automatic=$hardcode_automatic_GCJ
18254
18255# Variables whose values should be saved in libtool wrapper scripts and
18256# restored at relink time.
18257variables_saved_for_relink="$variables_saved_for_relink"
18258
18259# Whether libtool must link a program against all its dependency libraries.
18260link_all_deplibs=$link_all_deplibs_GCJ
18261
18262# Compile-time system search path for libraries
18263sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18264
18265# Run-time system search path for libraries
18266sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18267
18268# Fix the shell variable \$srcfile for the compiler.
18269fix_srcfile_path="$fix_srcfile_path_GCJ"
18270
18271# Set to yes if exported symbols are required.
18272always_export_symbols=$always_export_symbols_GCJ
18273
18274# The commands to list exported symbols.
18275export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18276
18277# The commands to extract the exported symbol list from a shared archive.
18278extract_expsyms_cmds=$lt_extract_expsyms_cmds
18279
18280# Symbols that should not be listed in the preloaded symbols.
18281exclude_expsyms=$lt_exclude_expsyms_GCJ
18282
18283# Symbols that must always be exported.
18284include_expsyms=$lt_include_expsyms_GCJ
18285
18286# ### END LIBTOOL TAG CONFIG: $tagname
18287
18288__EOF__
18289
18290
18291else
18292 # If there is no Makefile yet, we rely on a make rule to execute
18293 # `config.status --recheck' to rerun these tests and create the
18294 # libtool script then.
18295 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18296 if test -f "$ltmain_in"; then
18297 test -f Makefile && make "$ltmain"
18298 fi
18299fi
18300
18301
18302ac_ext=c
18303ac_cpp='$CPP $CPPFLAGS'
18304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18306ac_compiler_gnu=$ac_cv_c_compiler_gnu
18307
18308CC="$lt_save_CC"
18309
18310 else
18311 tagname=""
18312 fi
18313 ;;
18314
18315 RC)
18316
18317
18318
18319# Source file extension for RC test sources.
18320ac_ext=rc
18321
18322# Object file extension for compiled RC test sources.
18323objext=o
18324objext_RC=$objext
18325
18326# Code to be used in simple compile tests
18327lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18328
18329# Code to be used in simple link tests
18330lt_simple_link_test_code="$lt_simple_compile_test_code"
18331
18332# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18333
18334# If no C compiler was specified, use CC.
18335LTCC=${LTCC-"$CC"}
18336
18337# Allow CC to be a program name with arguments.
18338compiler=$CC
18339
18340
18341# Allow CC to be a program name with arguments.
18342lt_save_CC="$CC"
18343CC=${RC-"windres"}
18344compiler=$CC
18345compiler_RC=$CC
18346lt_cv_prog_compiler_c_o_RC=yes
18347
18348# The else clause should only fire when bootstrapping the
18349# libtool distribution, otherwise you forgot to ship ltmain.sh
18350# with your package, and you will get complaints that there are
18351# no rules to generate ltmain.sh.
18352if test -f "$ltmain"; then
18353 # See if we are running on zsh, and set the options which allow our commands through
18354 # without removal of \ escapes.
18355 if test -n "${ZSH_VERSION+set}" ; then
18356 setopt NO_GLOB_SUBST
18357 fi
18358 # Now quote all the things that may contain metacharacters while being
18359 # careful not to overquote the AC_SUBSTed values. We take copies of the
18360 # variables and quote the copies for generation of the libtool script.
brynerd5e66382006-09-08 02:35:53 +000018361 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
brynercb91a2f2006-08-25 21:14:45 +000018362 SED SHELL STRIP \
18363 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18364 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18365 deplibs_check_method reload_flag reload_cmds need_locks \
18366 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18367 lt_cv_sys_global_symbol_to_c_name_address \
18368 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18369 old_postinstall_cmds old_postuninstall_cmds \
18370 compiler_RC \
18371 CC_RC \
18372 LD_RC \
18373 lt_prog_compiler_wl_RC \
18374 lt_prog_compiler_pic_RC \
18375 lt_prog_compiler_static_RC \
18376 lt_prog_compiler_no_builtin_flag_RC \
18377 export_dynamic_flag_spec_RC \
18378 thread_safe_flag_spec_RC \
18379 whole_archive_flag_spec_RC \
18380 enable_shared_with_static_runtimes_RC \
18381 old_archive_cmds_RC \
18382 old_archive_from_new_cmds_RC \
18383 predep_objects_RC \
18384 postdep_objects_RC \
18385 predeps_RC \
18386 postdeps_RC \
18387 compiler_lib_search_path_RC \
18388 archive_cmds_RC \
18389 archive_expsym_cmds_RC \
18390 postinstall_cmds_RC \
18391 postuninstall_cmds_RC \
18392 old_archive_from_expsyms_cmds_RC \
18393 allow_undefined_flag_RC \
18394 no_undefined_flag_RC \
18395 export_symbols_cmds_RC \
18396 hardcode_libdir_flag_spec_RC \
18397 hardcode_libdir_flag_spec_ld_RC \
18398 hardcode_libdir_separator_RC \
18399 hardcode_automatic_RC \
18400 module_cmds_RC \
18401 module_expsym_cmds_RC \
18402 lt_cv_prog_compiler_c_o_RC \
18403 exclude_expsyms_RC \
18404 include_expsyms_RC; do
18405
18406 case $var in
18407 old_archive_cmds_RC | \
18408 old_archive_from_new_cmds_RC | \
18409 archive_cmds_RC | \
18410 archive_expsym_cmds_RC | \
18411 module_cmds_RC | \
18412 module_expsym_cmds_RC | \
18413 old_archive_from_expsyms_cmds_RC | \
18414 export_symbols_cmds_RC | \
18415 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18416 postinstall_cmds | postuninstall_cmds | \
18417 old_postinstall_cmds | old_postuninstall_cmds | \
18418 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18419 # Double-quote double-evaled strings.
18420 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18421 ;;
18422 *)
18423 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18424 ;;
18425 esac
18426 done
18427
18428 case $lt_echo in
18429 *'\$0 --fallback-echo"')
18430 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18431 ;;
18432 esac
18433
18434cfgfile="$ofile"
18435
18436 cat <<__EOF__ >> "$cfgfile"
18437# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18438
18439# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18440
18441# Shell to use when invoking shell scripts.
18442SHELL=$lt_SHELL
18443
18444# Whether or not to build shared libraries.
18445build_libtool_libs=$enable_shared
18446
18447# Whether or not to build static libraries.
18448build_old_libs=$enable_static
18449
18450# Whether or not to add -lc for building shared libraries.
18451build_libtool_need_lc=$archive_cmds_need_lc_RC
18452
18453# Whether or not to disallow shared libs when runtime libs are static
18454allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18455
18456# Whether or not to optimize for fast installation.
18457fast_install=$enable_fast_install
18458
18459# The host system.
18460host_alias=$host_alias
18461host=$host
18462
18463# An echo program that does not interpret backslashes.
18464echo=$lt_echo
18465
18466# The archiver.
18467AR=$lt_AR
18468AR_FLAGS=$lt_AR_FLAGS
18469
18470# A C compiler.
18471LTCC=$lt_LTCC
18472
18473# A language-specific compiler.
18474CC=$lt_compiler_RC
18475
18476# Is the compiler the GNU C compiler?
18477with_gcc=$GCC_RC
18478
18479# An ERE matcher.
18480EGREP=$lt_EGREP
18481
18482# The linker used to build libraries.
18483LD=$lt_LD_RC
18484
18485# Whether we need hard or soft links.
18486LN_S=$lt_LN_S
18487
18488# A BSD-compatible nm program.
18489NM=$lt_NM
18490
18491# A symbol stripping program
18492STRIP=$lt_STRIP
18493
18494# Used to examine libraries when file_magic_cmd begins "file"
18495MAGIC_CMD=$MAGIC_CMD
18496
18497# Used on cygwin: DLL creation program.
18498DLLTOOL="$DLLTOOL"
18499
18500# Used on cygwin: object dumper.
18501OBJDUMP="$OBJDUMP"
18502
18503# Used on cygwin: assembler.
18504AS="$AS"
18505
18506# The name of the directory that contains temporary libtool files.
18507objdir=$objdir
18508
18509# How to create reloadable object files.
18510reload_flag=$lt_reload_flag
18511reload_cmds=$lt_reload_cmds
18512
18513# How to pass a linker flag through the compiler.
18514wl=$lt_lt_prog_compiler_wl_RC
18515
18516# Object file suffix (normally "o").
18517objext="$ac_objext"
18518
18519# Old archive suffix (normally "a").
18520libext="$libext"
18521
18522# Shared library suffix (normally ".so").
18523shrext_cmds='$shrext_cmds'
18524
18525# Executable file suffix (normally "").
18526exeext="$exeext"
18527
18528# Additional compiler flags for building library objects.
18529pic_flag=$lt_lt_prog_compiler_pic_RC
18530pic_mode=$pic_mode
18531
18532# What is the maximum length of a command?
18533max_cmd_len=$lt_cv_sys_max_cmd_len
18534
18535# Does compiler simultaneously support -c and -o options?
18536compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18537
brynerd5e66382006-09-08 02:35:53 +000018538# Must we lock files when doing compilation ?
brynercb91a2f2006-08-25 21:14:45 +000018539need_locks=$lt_need_locks
18540
18541# Do we need the lib prefix for modules?
18542need_lib_prefix=$need_lib_prefix
18543
18544# Do we need a version for libraries?
18545need_version=$need_version
18546
18547# Whether dlopen is supported.
18548dlopen_support=$enable_dlopen
18549
18550# Whether dlopen of programs is supported.
18551dlopen_self=$enable_dlopen_self
18552
18553# Whether dlopen of statically linked programs is supported.
18554dlopen_self_static=$enable_dlopen_self_static
18555
18556# Compiler flag to prevent dynamic linking.
18557link_static_flag=$lt_lt_prog_compiler_static_RC
18558
18559# Compiler flag to turn off builtin functions.
18560no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18561
18562# Compiler flag to allow reflexive dlopens.
18563export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18564
18565# Compiler flag to generate shared objects directly from archives.
18566whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18567
18568# Compiler flag to generate thread-safe objects.
18569thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18570
18571# Library versioning type.
18572version_type=$version_type
18573
18574# Format of library name prefix.
18575libname_spec=$lt_libname_spec
18576
18577# List of archive names. First name is the real one, the rest are links.
18578# The last name is the one that the linker finds with -lNAME.
18579library_names_spec=$lt_library_names_spec
18580
18581# The coded name of the library, if different from the real name.
18582soname_spec=$lt_soname_spec
18583
18584# Commands used to build and install an old-style archive.
18585RANLIB=$lt_RANLIB
18586old_archive_cmds=$lt_old_archive_cmds_RC
18587old_postinstall_cmds=$lt_old_postinstall_cmds
18588old_postuninstall_cmds=$lt_old_postuninstall_cmds
18589
18590# Create an old-style archive from a shared archive.
18591old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18592
18593# Create a temporary old-style archive to link instead of a shared archive.
18594old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18595
18596# Commands used to build and install a shared archive.
18597archive_cmds=$lt_archive_cmds_RC
18598archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18599postinstall_cmds=$lt_postinstall_cmds
18600postuninstall_cmds=$lt_postuninstall_cmds
18601
18602# Commands used to build a loadable module (assumed same as above if empty)
18603module_cmds=$lt_module_cmds_RC
18604module_expsym_cmds=$lt_module_expsym_cmds_RC
18605
18606# Commands to strip libraries.
18607old_striplib=$lt_old_striplib
18608striplib=$lt_striplib
18609
18610# Dependencies to place before the objects being linked to create a
18611# shared library.
18612predep_objects=$lt_predep_objects_RC
18613
18614# Dependencies to place after the objects being linked to create a
18615# shared library.
18616postdep_objects=$lt_postdep_objects_RC
18617
18618# Dependencies to place before the objects being linked to create a
18619# shared library.
18620predeps=$lt_predeps_RC
18621
18622# Dependencies to place after the objects being linked to create a
18623# shared library.
18624postdeps=$lt_postdeps_RC
18625
18626# The library search path used internally by the compiler when linking
18627# a shared library.
18628compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18629
18630# Method to check whether dependent libraries are shared objects.
18631deplibs_check_method=$lt_deplibs_check_method
18632
18633# Command to use when deplibs_check_method == file_magic.
18634file_magic_cmd=$lt_file_magic_cmd
18635
18636# Flag that allows shared libraries with undefined symbols to be built.
18637allow_undefined_flag=$lt_allow_undefined_flag_RC
18638
18639# Flag that forces no undefined symbols.
18640no_undefined_flag=$lt_no_undefined_flag_RC
18641
18642# Commands used to finish a libtool library installation in a directory.
18643finish_cmds=$lt_finish_cmds
18644
18645# Same as above, but a single script fragment to be evaled but not shown.
18646finish_eval=$lt_finish_eval
18647
18648# Take the output of nm and produce a listing of raw symbols and C names.
18649global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18650
18651# Transform the output of nm in a proper C declaration
18652global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18653
18654# Transform the output of nm in a C name address pair
18655global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18656
18657# This is the shared library runtime path variable.
18658runpath_var=$runpath_var
18659
18660# This is the shared library path variable.
18661shlibpath_var=$shlibpath_var
18662
18663# Is shlibpath searched before the hard-coded library search path?
18664shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18665
18666# How to hardcode a shared library path into an executable.
18667hardcode_action=$hardcode_action_RC
18668
18669# Whether we should hardcode library paths into libraries.
18670hardcode_into_libs=$hardcode_into_libs
18671
18672# Flag to hardcode \$libdir into a binary during linking.
18673# This must work even if \$libdir does not exist.
18674hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18675
18676# If ld is used when linking, flag to hardcode \$libdir into
18677# a binary during linking. This must work even if \$libdir does
18678# not exist.
18679hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18680
18681# Whether we need a single -rpath flag with a separated argument.
18682hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18683
18684# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18685# resulting binary.
18686hardcode_direct=$hardcode_direct_RC
18687
18688# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18689# resulting binary.
18690hardcode_minus_L=$hardcode_minus_L_RC
18691
18692# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18693# the resulting binary.
18694hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18695
18696# Set to yes if building a shared library automatically hardcodes DIR into the library
18697# and all subsequent libraries and executables linked against it.
18698hardcode_automatic=$hardcode_automatic_RC
18699
18700# Variables whose values should be saved in libtool wrapper scripts and
18701# restored at relink time.
18702variables_saved_for_relink="$variables_saved_for_relink"
18703
18704# Whether libtool must link a program against all its dependency libraries.
18705link_all_deplibs=$link_all_deplibs_RC
18706
18707# Compile-time system search path for libraries
18708sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18709
18710# Run-time system search path for libraries
18711sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18712
18713# Fix the shell variable \$srcfile for the compiler.
18714fix_srcfile_path="$fix_srcfile_path_RC"
18715
18716# Set to yes if exported symbols are required.
18717always_export_symbols=$always_export_symbols_RC
18718
18719# The commands to list exported symbols.
18720export_symbols_cmds=$lt_export_symbols_cmds_RC
18721
18722# The commands to extract the exported symbol list from a shared archive.
18723extract_expsyms_cmds=$lt_extract_expsyms_cmds
18724
18725# Symbols that should not be listed in the preloaded symbols.
18726exclude_expsyms=$lt_exclude_expsyms_RC
18727
18728# Symbols that must always be exported.
18729include_expsyms=$lt_include_expsyms_RC
18730
18731# ### END LIBTOOL TAG CONFIG: $tagname
18732
18733__EOF__
18734
18735
18736else
18737 # If there is no Makefile yet, we rely on a make rule to execute
18738 # `config.status --recheck' to rerun these tests and create the
18739 # libtool script then.
18740 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18741 if test -f "$ltmain_in"; then
18742 test -f Makefile && make "$ltmain"
18743 fi
18744fi
18745
18746
18747ac_ext=c
18748ac_cpp='$CPP $CPPFLAGS'
18749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18751ac_compiler_gnu=$ac_cv_c_compiler_gnu
18752
18753CC="$lt_save_CC"
18754
18755 ;;
18756
18757 *)
18758 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18759echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18760 { (exit 1); exit 1; }; }
18761 ;;
18762 esac
18763
18764 # Append the new tag name to the list of available tags.
18765 if test -n "$tagname" ; then
18766 available_tags="$available_tags $tagname"
18767 fi
18768 fi
18769 done
18770 IFS="$lt_save_ifs"
18771
18772 # Now substitute the updated list of available tags.
18773 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18774 mv "${ofile}T" "$ofile"
18775 chmod +x "$ofile"
18776 else
18777 rm -f "${ofile}T"
18778 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18779echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18780 { (exit 1); exit 1; }; }
18781 fi
18782fi
18783
18784
18785
18786# This can be used to rebuild libtool when needed
18787LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18788
18789# Always use our own libtool.
18790LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18791
18792# Prevent multiple expansion
18793
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813
18814
brynercb91a2f2006-08-25 21:14:45 +000018815echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18816echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18817if test "${ac_cv_header_stdc+set}" = set; then
18818 echo $ECHO_N "(cached) $ECHO_C" >&6
18819else
18820 cat >conftest.$ac_ext <<_ACEOF
18821/* confdefs.h. */
18822_ACEOF
18823cat confdefs.h >>conftest.$ac_ext
18824cat >>conftest.$ac_ext <<_ACEOF
18825/* end confdefs.h. */
18826#include <stdlib.h>
18827#include <stdarg.h>
18828#include <string.h>
18829#include <float.h>
18830
18831int
18832main ()
18833{
18834
18835 ;
18836 return 0;
18837}
18838_ACEOF
18839rm -f conftest.$ac_objext
18840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18841 (eval $ac_compile) 2>conftest.er1
18842 ac_status=$?
18843 grep -v '^ *+' conftest.er1 >conftest.err
18844 rm -f conftest.er1
18845 cat conftest.err >&5
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); } &&
brynerd5e66382006-09-08 02:35:53 +000018848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +000018849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18850 (eval $ac_try) 2>&5
18851 ac_status=$?
18852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); }; } &&
18854 { ac_try='test -s conftest.$ac_objext'
18855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18856 (eval $ac_try) 2>&5
18857 ac_status=$?
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); }; }; then
18860 ac_cv_header_stdc=yes
18861else
18862 echo "$as_me: failed program was:" >&5
18863sed 's/^/| /' conftest.$ac_ext >&5
18864
18865ac_cv_header_stdc=no
18866fi
18867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18868
18869if test $ac_cv_header_stdc = yes; then
18870 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18871 cat >conftest.$ac_ext <<_ACEOF
18872/* confdefs.h. */
18873_ACEOF
18874cat confdefs.h >>conftest.$ac_ext
18875cat >>conftest.$ac_ext <<_ACEOF
18876/* end confdefs.h. */
18877#include <string.h>
18878
18879_ACEOF
18880if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18881 $EGREP "memchr" >/dev/null 2>&1; then
18882 :
18883else
18884 ac_cv_header_stdc=no
18885fi
18886rm -f conftest*
18887
18888fi
18889
18890if test $ac_cv_header_stdc = yes; then
18891 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18892 cat >conftest.$ac_ext <<_ACEOF
18893/* confdefs.h. */
18894_ACEOF
18895cat confdefs.h >>conftest.$ac_ext
18896cat >>conftest.$ac_ext <<_ACEOF
18897/* end confdefs.h. */
18898#include <stdlib.h>
18899
18900_ACEOF
18901if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18902 $EGREP "free" >/dev/null 2>&1; then
18903 :
18904else
18905 ac_cv_header_stdc=no
18906fi
18907rm -f conftest*
18908
18909fi
18910
18911if test $ac_cv_header_stdc = yes; then
18912 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18913 if test "$cross_compiling" = yes; then
18914 :
18915else
18916 cat >conftest.$ac_ext <<_ACEOF
18917/* confdefs.h. */
18918_ACEOF
18919cat confdefs.h >>conftest.$ac_ext
18920cat >>conftest.$ac_ext <<_ACEOF
18921/* end confdefs.h. */
18922#include <ctype.h>
18923#if ((' ' & 0x0FF) == 0x020)
18924# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18925# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18926#else
18927# define ISLOWER(c) \
18928 (('a' <= (c) && (c) <= 'i') \
18929 || ('j' <= (c) && (c) <= 'r') \
18930 || ('s' <= (c) && (c) <= 'z'))
18931# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18932#endif
18933
18934#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18935int
18936main ()
18937{
18938 int i;
18939 for (i = 0; i < 256; i++)
18940 if (XOR (islower (i), ISLOWER (i))
18941 || toupper (i) != TOUPPER (i))
18942 exit(2);
18943 exit (0);
18944}
18945_ACEOF
18946rm -f conftest$ac_exeext
18947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18948 (eval $ac_link) 2>&5
18949 ac_status=$?
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18953 (eval $ac_try) 2>&5
18954 ac_status=$?
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); }; }; then
18957 :
18958else
18959 echo "$as_me: program exited with status $ac_status" >&5
18960echo "$as_me: failed program was:" >&5
18961sed 's/^/| /' conftest.$ac_ext >&5
18962
18963( exit $ac_status )
18964ac_cv_header_stdc=no
18965fi
18966rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18967fi
18968fi
18969fi
18970echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18971echo "${ECHO_T}$ac_cv_header_stdc" >&6
18972if test $ac_cv_header_stdc = yes; then
18973
18974cat >>confdefs.h <<\_ACEOF
18975#define STDC_HEADERS 1
18976_ACEOF
18977
18978fi
18979
18980
brynercb91a2f2006-08-25 21:14:45 +000018981 ac_config_files="$ac_config_files Makefile"
18982
18983cat >confcache <<\_ACEOF
18984# This file is a shell script that caches the results of configure
18985# tests run on this system so they can be shared between configure
18986# scripts and configure runs, see configure's option --config-cache.
18987# It is not useful on other systems. If it contains results you don't
18988# want to keep, you may remove or edit it.
18989#
18990# config.status only pays attention to the cache file if you give it
18991# the --recheck option to rerun configure.
18992#
18993# `ac_cv_env_foo' variables (set or unset) will be overridden when
18994# loading this file, other *unset* `ac_cv_foo' will be assigned the
18995# following values.
18996
18997_ACEOF
18998
18999# The following way of writing the cache mishandles newlines in values,
19000# but we know of no workaround that is simple, portable, and efficient.
19001# So, don't put newlines in cache variables' values.
19002# Ultrix sh set writes to stderr and can't be redirected directly,
19003# and sets the high bit in the cache file unless we assign to the vars.
19004{
19005 (set) 2>&1 |
19006 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19007 *ac_space=\ *)
19008 # `set' does not quote correctly, so add quotes (double-quote
19009 # substitution turns \\\\ into \\, and sed turns \\ into \).
19010 sed -n \
19011 "s/'/'\\\\''/g;
19012 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19013 ;;
19014 *)
19015 # `set' quotes correctly as required by POSIX, so do not add quotes.
19016 sed -n \
19017 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19018 ;;
19019 esac;
19020} |
19021 sed '
19022 t clear
19023 : clear
19024 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19025 t end
19026 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19027 : end' >>confcache
19028if diff $cache_file confcache >/dev/null 2>&1; then :; else
19029 if test -w $cache_file; then
19030 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19031 cat confcache >$cache_file
19032 else
19033 echo "not updating unwritable cache $cache_file"
19034 fi
19035fi
19036rm -f confcache
19037
19038test "x$prefix" = xNONE && prefix=$ac_default_prefix
19039# Let make expand exec_prefix.
19040test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19041
19042# VPATH may cause trouble with some makes, so we remove $(srcdir),
19043# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19044# trailing colons and then remove the whole line if VPATH becomes empty
19045# (actually we leave an empty line to preserve line numbers).
19046if test "x$srcdir" = x.; then
19047 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19048s/:*\$(srcdir):*/:/;
19049s/:*\${srcdir}:*/:/;
19050s/:*@srcdir@:*/:/;
19051s/^\([^=]*=[ ]*\):*/\1/;
19052s/:*$//;
19053s/^[^=]*=[ ]*$//;
19054}'
19055fi
19056
19057DEFS=-DHAVE_CONFIG_H
19058
19059ac_libobjs=
19060ac_ltlibobjs=
19061for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19062 # 1. Remove the extension, and $U if already installed.
19063 ac_i=`echo "$ac_i" |
19064 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19065 # 2. Add them.
19066 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19067 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19068done
19069LIBOBJS=$ac_libobjs
19070
19071LTLIBOBJS=$ac_ltlibobjs
19072
19073
19074if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19075 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19076Usually this means the macro was only invoked conditionally." >&5
19077echo "$as_me: error: conditional \"AMDEP\" was never defined.
19078Usually this means the macro was only invoked conditionally." >&2;}
19079 { (exit 1); exit 1; }; }
19080fi
19081if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19082 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19083Usually this means the macro was only invoked conditionally." >&5
19084echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19085Usually this means the macro was only invoked conditionally." >&2;}
19086 { (exit 1); exit 1; }; }
19087fi
19088if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19089 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19090Usually this means the macro was only invoked conditionally." >&5
19091echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19092Usually this means the macro was only invoked conditionally." >&2;}
19093 { (exit 1); exit 1; }; }
19094fi
19095
19096: ${CONFIG_STATUS=./config.status}
19097ac_clean_files_save=$ac_clean_files
19098ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19099{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19100echo "$as_me: creating $CONFIG_STATUS" >&6;}
19101cat >$CONFIG_STATUS <<_ACEOF
19102#! $SHELL
19103# Generated by $as_me.
19104# Run this file to recreate the current configuration.
19105# Compiler output produced by configure, useful for debugging
19106# configure, is in config.log if it exists.
19107
19108debug=false
19109ac_cs_recheck=false
19110ac_cs_silent=false
19111SHELL=\${CONFIG_SHELL-$SHELL}
19112_ACEOF
19113
19114cat >>$CONFIG_STATUS <<\_ACEOF
19115## --------------------- ##
19116## M4sh Initialization. ##
19117## --------------------- ##
19118
19119# Be Bourne compatible
19120if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19121 emulate sh
19122 NULLCMD=:
19123 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19124 # is contrary to our usage. Disable this feature.
19125 alias -g '${1+"$@"}'='"$@"'
19126elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19127 set -o posix
19128fi
19129DUALCASE=1; export DUALCASE # for MKS sh
19130
19131# Support unset when possible.
19132if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19133 as_unset=unset
19134else
19135 as_unset=false
19136fi
19137
19138
19139# Work around bugs in pre-3.0 UWIN ksh.
19140$as_unset ENV MAIL MAILPATH
19141PS1='$ '
19142PS2='> '
19143PS4='+ '
19144
19145# NLS nuisances.
19146for as_var in \
19147 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19148 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19149 LC_TELEPHONE LC_TIME
19150do
19151 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19152 eval $as_var=C; export $as_var
19153 else
19154 $as_unset $as_var
19155 fi
19156done
19157
19158# Required to use basename.
19159if expr a : '\(a\)' >/dev/null 2>&1; then
19160 as_expr=expr
19161else
19162 as_expr=false
19163fi
19164
19165if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19166 as_basename=basename
19167else
19168 as_basename=false
19169fi
19170
19171
19172# Name of the executable.
19173as_me=`$as_basename "$0" ||
19174$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19175 X"$0" : 'X\(//\)$' \| \
19176 X"$0" : 'X\(/\)$' \| \
19177 . : '\(.\)' 2>/dev/null ||
19178echo X/"$0" |
19179 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19180 /^X\/\(\/\/\)$/{ s//\1/; q; }
19181 /^X\/\(\/\).*/{ s//\1/; q; }
19182 s/.*/./; q'`
19183
19184
19185# PATH needs CR, and LINENO needs CR and PATH.
19186# Avoid depending upon Character Ranges.
19187as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19188as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19189as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19190as_cr_digits='0123456789'
19191as_cr_alnum=$as_cr_Letters$as_cr_digits
19192
19193# The user is always right.
19194if test "${PATH_SEPARATOR+set}" != set; then
19195 echo "#! /bin/sh" >conf$$.sh
19196 echo "exit 0" >>conf$$.sh
19197 chmod +x conf$$.sh
19198 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19199 PATH_SEPARATOR=';'
19200 else
19201 PATH_SEPARATOR=:
19202 fi
19203 rm -f conf$$.sh
19204fi
19205
19206
19207 as_lineno_1=$LINENO
19208 as_lineno_2=$LINENO
19209 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19210 test "x$as_lineno_1" != "x$as_lineno_2" &&
19211 test "x$as_lineno_3" = "x$as_lineno_2" || {
19212 # Find who we are. Look in the path if we contain no path at all
19213 # relative or not.
19214 case $0 in
19215 *[\\/]* ) as_myself=$0 ;;
19216 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19217for as_dir in $PATH
19218do
19219 IFS=$as_save_IFS
19220 test -z "$as_dir" && as_dir=.
19221 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19222done
19223
19224 ;;
19225 esac
19226 # We did not find ourselves, most probably we were run as `sh COMMAND'
19227 # in which case we are not to be found in the path.
19228 if test "x$as_myself" = x; then
19229 as_myself=$0
19230 fi
19231 if test ! -f "$as_myself"; then
19232 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19233echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19234 { (exit 1); exit 1; }; }
19235 fi
19236 case $CONFIG_SHELL in
19237 '')
19238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19239for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19240do
19241 IFS=$as_save_IFS
19242 test -z "$as_dir" && as_dir=.
19243 for as_base in sh bash ksh sh5; do
19244 case $as_dir in
19245 /*)
19246 if ("$as_dir/$as_base" -c '
19247 as_lineno_1=$LINENO
19248 as_lineno_2=$LINENO
19249 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19250 test "x$as_lineno_1" != "x$as_lineno_2" &&
19251 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19252 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19253 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19254 CONFIG_SHELL=$as_dir/$as_base
19255 export CONFIG_SHELL
19256 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19257 fi;;
19258 esac
19259 done
19260done
19261;;
19262 esac
19263
19264 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19265 # uniformly replaced by the line number. The first 'sed' inserts a
19266 # line-number line before each line; the second 'sed' does the real
19267 # work. The second script uses 'N' to pair each line-number line
19268 # with the numbered line, and appends trailing '-' during
19269 # substitution so that $LINENO is not a special case at line end.
19270 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19271 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19272 sed '=' <$as_myself |
19273 sed '
19274 N
19275 s,$,-,
19276 : loop
19277 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19278 t loop
19279 s,-$,,
19280 s,^['$as_cr_digits']*\n,,
19281 ' >$as_me.lineno &&
19282 chmod +x $as_me.lineno ||
19283 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19284echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19285 { (exit 1); exit 1; }; }
19286
19287 # Don't try to exec as it changes $[0], causing all sort of problems
19288 # (the dirname of $[0] is not the place where we might find the
19289 # original and so on. Autoconf is especially sensible to this).
19290 . ./$as_me.lineno
19291 # Exit status is that of the last command.
19292 exit
19293}
19294
19295
19296case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19297 *c*,-n*) ECHO_N= ECHO_C='
19298' ECHO_T=' ' ;;
19299 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19300 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19301esac
19302
19303if expr a : '\(a\)' >/dev/null 2>&1; then
19304 as_expr=expr
19305else
19306 as_expr=false
19307fi
19308
19309rm -f conf$$ conf$$.exe conf$$.file
19310echo >conf$$.file
19311if ln -s conf$$.file conf$$ 2>/dev/null; then
19312 # We could just check for DJGPP; but this test a) works b) is more generic
19313 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19314 if test -f conf$$.exe; then
19315 # Don't use ln at all; we don't have any links
19316 as_ln_s='cp -p'
19317 else
19318 as_ln_s='ln -s'
19319 fi
19320elif ln conf$$.file conf$$ 2>/dev/null; then
19321 as_ln_s=ln
19322else
19323 as_ln_s='cp -p'
19324fi
19325rm -f conf$$ conf$$.exe conf$$.file
19326
19327if mkdir -p . 2>/dev/null; then
19328 as_mkdir_p=:
19329else
19330 test -d ./-p && rmdir ./-p
19331 as_mkdir_p=false
19332fi
19333
19334as_executable_p="test -f"
19335
19336# Sed expression to map a string onto a valid CPP name.
19337as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19338
19339# Sed expression to map a string onto a valid variable name.
19340as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19341
19342
19343# IFS
19344# We need space, tab and new line, in precisely that order.
19345as_nl='
19346'
19347IFS=" $as_nl"
19348
19349# CDPATH.
19350$as_unset CDPATH
19351
19352exec 6>&1
19353
19354# Open the log real soon, to keep \$[0] and so on meaningful, and to
19355# report actual input values of CONFIG_FILES etc. instead of their
19356# values after options handling. Logging --version etc. is OK.
19357exec 5>>config.log
19358{
19359 echo
19360 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19361## Running $as_me. ##
19362_ASBOX
19363} >&5
19364cat >&5 <<_CSEOF
19365
19366This file was extended by airbag $as_me 0.1, which was
19367generated by GNU Autoconf 2.59. Invocation command line was
19368
19369 CONFIG_FILES = $CONFIG_FILES
19370 CONFIG_HEADERS = $CONFIG_HEADERS
19371 CONFIG_LINKS = $CONFIG_LINKS
19372 CONFIG_COMMANDS = $CONFIG_COMMANDS
19373 $ $0 $@
19374
19375_CSEOF
19376echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19377echo >&5
19378_ACEOF
19379
19380# Files that config.status was made for.
19381if test -n "$ac_config_files"; then
19382 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19383fi
19384
19385if test -n "$ac_config_headers"; then
19386 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19387fi
19388
19389if test -n "$ac_config_links"; then
19390 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19391fi
19392
19393if test -n "$ac_config_commands"; then
19394 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19395fi
19396
19397cat >>$CONFIG_STATUS <<\_ACEOF
19398
19399ac_cs_usage="\
19400\`$as_me' instantiates files from templates according to the
19401current configuration.
19402
19403Usage: $0 [OPTIONS] [FILE]...
19404
19405 -h, --help print this help, then exit
19406 -V, --version print version number, then exit
19407 -q, --quiet do not print progress messages
19408 -d, --debug don't remove temporary files
19409 --recheck update $as_me by reconfiguring in the same conditions
19410 --file=FILE[:TEMPLATE]
19411 instantiate the configuration file FILE
19412 --header=FILE[:TEMPLATE]
19413 instantiate the configuration header FILE
19414
19415Configuration files:
19416$config_files
19417
19418Configuration headers:
19419$config_headers
19420
19421Configuration commands:
19422$config_commands
19423
19424Report bugs to <bug-autoconf@gnu.org>."
19425_ACEOF
19426
19427cat >>$CONFIG_STATUS <<_ACEOF
19428ac_cs_version="\\
19429airbag config.status 0.1
19430configured by $0, generated by GNU Autoconf 2.59,
19431 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19432
19433Copyright (C) 2003 Free Software Foundation, Inc.
19434This config.status script is free software; the Free Software Foundation
19435gives unlimited permission to copy, distribute and modify it."
19436srcdir=$srcdir
19437INSTALL="$INSTALL"
19438_ACEOF
19439
19440cat >>$CONFIG_STATUS <<\_ACEOF
19441# If no file are specified by the user, then we need to provide default
19442# value. By we need to know if files were specified by the user.
19443ac_need_defaults=:
19444while test $# != 0
19445do
19446 case $1 in
19447 --*=*)
19448 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19449 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19450 ac_shift=:
19451 ;;
19452 -*)
19453 ac_option=$1
19454 ac_optarg=$2
19455 ac_shift=shift
19456 ;;
19457 *) # This is not an option, so the user has probably given explicit
19458 # arguments.
19459 ac_option=$1
19460 ac_need_defaults=false;;
19461 esac
19462
19463 case $ac_option in
19464 # Handling of the options.
19465_ACEOF
19466cat >>$CONFIG_STATUS <<\_ACEOF
19467 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19468 ac_cs_recheck=: ;;
19469 --version | --vers* | -V )
19470 echo "$ac_cs_version"; exit 0 ;;
19471 --he | --h)
19472 # Conflict between --help and --header
19473 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19474Try \`$0 --help' for more information." >&5
19475echo "$as_me: error: ambiguous option: $1
19476Try \`$0 --help' for more information." >&2;}
19477 { (exit 1); exit 1; }; };;
19478 --help | --hel | -h )
19479 echo "$ac_cs_usage"; exit 0 ;;
19480 --debug | --d* | -d )
19481 debug=: ;;
19482 --file | --fil | --fi | --f )
19483 $ac_shift
19484 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19485 ac_need_defaults=false;;
19486 --header | --heade | --head | --hea )
19487 $ac_shift
19488 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19489 ac_need_defaults=false;;
19490 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19491 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19492 ac_cs_silent=: ;;
19493
19494 # This is an error.
19495 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19496Try \`$0 --help' for more information." >&5
19497echo "$as_me: error: unrecognized option: $1
19498Try \`$0 --help' for more information." >&2;}
19499 { (exit 1); exit 1; }; } ;;
19500
19501 *) ac_config_targets="$ac_config_targets $1" ;;
19502
19503 esac
19504 shift
19505done
19506
19507ac_configure_extra_args=
19508
19509if $ac_cs_silent; then
19510 exec 6>/dev/null
19511 ac_configure_extra_args="$ac_configure_extra_args --silent"
19512fi
19513
19514_ACEOF
19515cat >>$CONFIG_STATUS <<_ACEOF
19516if \$ac_cs_recheck; then
19517 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19518 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19519fi
19520
19521_ACEOF
19522
19523cat >>$CONFIG_STATUS <<_ACEOF
19524#
19525# INIT-COMMANDS section.
19526#
19527
19528AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19529
19530_ACEOF
19531
19532
19533
19534cat >>$CONFIG_STATUS <<\_ACEOF
19535for ac_config_target in $ac_config_targets
19536do
19537 case "$ac_config_target" in
19538 # Handling of arguments.
19539 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19540 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19541 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
19542 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19543echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19544 { (exit 1); exit 1; }; };;
19545 esac
19546done
19547
19548# If the user did not use the arguments to specify the items to instantiate,
19549# then the envvar interface is used. Set only those that are not.
19550# We use the long form for the default assignment because of an extremely
19551# bizarre bug on SunOS 4.1.3.
19552if $ac_need_defaults; then
19553 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19554 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19555 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19556fi
19557
19558# Have a temporary directory for convenience. Make it in the build tree
19559# simply because there is no reason to put it here, and in addition,
19560# creating and moving files from /tmp can sometimes cause problems.
19561# Create a temporary directory, and hook for its removal unless debugging.
19562$debug ||
19563{
19564 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19565 trap '{ (exit 1); exit 1; }' 1 2 13 15
19566}
19567
19568# Create a (secure) tmp directory for tmp files.
19569
19570{
19571 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19572 test -n "$tmp" && test -d "$tmp"
19573} ||
19574{
19575 tmp=./confstat$$-$RANDOM
19576 (umask 077 && mkdir $tmp)
19577} ||
19578{
19579 echo "$me: cannot create a temporary directory in ." >&2
19580 { (exit 1); exit 1; }
19581}
19582
19583_ACEOF
19584
19585cat >>$CONFIG_STATUS <<_ACEOF
19586
19587#
19588# CONFIG_FILES section.
19589#
19590
19591# No need to generate the scripts if there are no CONFIG_FILES.
19592# This happens for instance when ./config.status config.h
19593if test -n "\$CONFIG_FILES"; then
19594 # Protect against being on the right side of a sed subst in config.status.
19595 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19596 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19597s,@SHELL@,$SHELL,;t t
19598s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19599s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19600s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19601s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19602s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19603s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19604s,@exec_prefix@,$exec_prefix,;t t
19605s,@prefix@,$prefix,;t t
19606s,@program_transform_name@,$program_transform_name,;t t
19607s,@bindir@,$bindir,;t t
19608s,@sbindir@,$sbindir,;t t
19609s,@libexecdir@,$libexecdir,;t t
19610s,@datadir@,$datadir,;t t
19611s,@sysconfdir@,$sysconfdir,;t t
19612s,@sharedstatedir@,$sharedstatedir,;t t
19613s,@localstatedir@,$localstatedir,;t t
19614s,@libdir@,$libdir,;t t
19615s,@includedir@,$includedir,;t t
19616s,@oldincludedir@,$oldincludedir,;t t
19617s,@infodir@,$infodir,;t t
19618s,@mandir@,$mandir,;t t
19619s,@build_alias@,$build_alias,;t t
19620s,@host_alias@,$host_alias,;t t
19621s,@target_alias@,$target_alias,;t t
19622s,@DEFS@,$DEFS,;t t
19623s,@ECHO_C@,$ECHO_C,;t t
19624s,@ECHO_N@,$ECHO_N,;t t
19625s,@ECHO_T@,$ECHO_T,;t t
19626s,@LIBS@,$LIBS,;t t
19627s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19628s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19629s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19630s,@CYGPATH_W@,$CYGPATH_W,;t t
19631s,@PACKAGE@,$PACKAGE,;t t
19632s,@VERSION@,$VERSION,;t t
19633s,@ACLOCAL@,$ACLOCAL,;t t
19634s,@AUTOCONF@,$AUTOCONF,;t t
19635s,@AUTOMAKE@,$AUTOMAKE,;t t
19636s,@AUTOHEADER@,$AUTOHEADER,;t t
19637s,@MAKEINFO@,$MAKEINFO,;t t
19638s,@install_sh@,$install_sh,;t t
19639s,@STRIP@,$STRIP,;t t
19640s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19641s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19642s,@mkdir_p@,$mkdir_p,;t t
19643s,@AWK@,$AWK,;t t
19644s,@SET_MAKE@,$SET_MAKE,;t t
19645s,@am__leading_dot@,$am__leading_dot,;t t
19646s,@AMTAR@,$AMTAR,;t t
19647s,@am__tar@,$am__tar,;t t
19648s,@am__untar@,$am__untar,;t t
19649s,@CC@,$CC,;t t
19650s,@CFLAGS@,$CFLAGS,;t t
19651s,@LDFLAGS@,$LDFLAGS,;t t
19652s,@CPPFLAGS@,$CPPFLAGS,;t t
19653s,@ac_ct_CC@,$ac_ct_CC,;t t
19654s,@EXEEXT@,$EXEEXT,;t t
19655s,@OBJEXT@,$OBJEXT,;t t
19656s,@DEPDIR@,$DEPDIR,;t t
19657s,@am__include@,$am__include,;t t
19658s,@am__quote@,$am__quote,;t t
19659s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19660s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19661s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19662s,@CCDEPMODE@,$CCDEPMODE,;t t
19663s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19664s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19665s,@CPP@,$CPP,;t t
19666s,@CXX@,$CXX,;t t
19667s,@CXXFLAGS@,$CXXFLAGS,;t t
19668s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19669s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19670s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
19671s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
mmentovai425d2562006-08-30 20:05:05 +000019672s,@F77@,$F77,;t t
19673s,@FFLAGS@,$FFLAGS,;t t
19674s,@ac_ct_F77@,$ac_ct_F77,;t t
brynercb91a2f2006-08-25 21:14:45 +000019675s,@build@,$build,;t t
19676s,@build_cpu@,$build_cpu,;t t
19677s,@build_vendor@,$build_vendor,;t t
19678s,@build_os@,$build_os,;t t
19679s,@host@,$host,;t t
19680s,@host_cpu@,$host_cpu,;t t
19681s,@host_vendor@,$host_vendor,;t t
19682s,@host_os@,$host_os,;t t
19683s,@EGREP@,$EGREP,;t t
19684s,@LN_S@,$LN_S,;t t
19685s,@ECHO@,$ECHO,;t t
19686s,@AR@,$AR,;t t
19687s,@ac_ct_AR@,$ac_ct_AR,;t t
19688s,@RANLIB@,$RANLIB,;t t
19689s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19690s,@CXXCPP@,$CXXCPP,;t t
brynercb91a2f2006-08-25 21:14:45 +000019691s,@LIBTOOL@,$LIBTOOL,;t t
19692s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
19693s,@LIBOBJS@,$LIBOBJS,;t t
19694s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19695CEOF
19696
19697_ACEOF
19698
19699 cat >>$CONFIG_STATUS <<\_ACEOF
19700 # Split the substitutions into bite-sized pieces for seds with
19701 # small command number limits, like on Digital OSF/1 and HP-UX.
19702 ac_max_sed_lines=48
19703 ac_sed_frag=1 # Number of current file.
19704 ac_beg=1 # First line for current file.
19705 ac_end=$ac_max_sed_lines # Line after last line for current file.
19706 ac_more_lines=:
19707 ac_sed_cmds=
19708 while $ac_more_lines; do
19709 if test $ac_beg -gt 1; then
19710 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19711 else
19712 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19713 fi
19714 if test ! -s $tmp/subs.frag; then
19715 ac_more_lines=false
19716 else
19717 # The purpose of the label and of the branching condition is to
19718 # speed up the sed processing (if there are no `@' at all, there
19719 # is no need to browse any of the substitutions).
19720 # These are the two extra sed commands mentioned above.
19721 (echo ':t
19722 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19723 if test -z "$ac_sed_cmds"; then
19724 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19725 else
19726 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19727 fi
19728 ac_sed_frag=`expr $ac_sed_frag + 1`
19729 ac_beg=$ac_end
19730 ac_end=`expr $ac_end + $ac_max_sed_lines`
19731 fi
19732 done
19733 if test -z "$ac_sed_cmds"; then
19734 ac_sed_cmds=cat
19735 fi
19736fi # test -n "$CONFIG_FILES"
19737
19738_ACEOF
19739cat >>$CONFIG_STATUS <<\_ACEOF
19740for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19741 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19742 case $ac_file in
19743 - | *:- | *:-:* ) # input from stdin
19744 cat >$tmp/stdin
19745 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19746 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19747 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19748 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19749 * ) ac_file_in=$ac_file.in ;;
19750 esac
19751
19752 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19753 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19754$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19755 X"$ac_file" : 'X\(//\)[^/]' \| \
19756 X"$ac_file" : 'X\(//\)$' \| \
19757 X"$ac_file" : 'X\(/\)' \| \
19758 . : '\(.\)' 2>/dev/null ||
19759echo X"$ac_file" |
19760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19761 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19762 /^X\(\/\/\)$/{ s//\1/; q; }
19763 /^X\(\/\).*/{ s//\1/; q; }
19764 s/.*/./; q'`
19765 { if $as_mkdir_p; then
19766 mkdir -p "$ac_dir"
19767 else
19768 as_dir="$ac_dir"
19769 as_dirs=
19770 while test ! -d "$as_dir"; do
19771 as_dirs="$as_dir $as_dirs"
19772 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19773$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19774 X"$as_dir" : 'X\(//\)[^/]' \| \
19775 X"$as_dir" : 'X\(//\)$' \| \
19776 X"$as_dir" : 'X\(/\)' \| \
19777 . : '\(.\)' 2>/dev/null ||
19778echo X"$as_dir" |
19779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19780 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19781 /^X\(\/\/\)$/{ s//\1/; q; }
19782 /^X\(\/\).*/{ s//\1/; q; }
19783 s/.*/./; q'`
19784 done
19785 test ! -n "$as_dirs" || mkdir $as_dirs
19786 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19787echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19788 { (exit 1); exit 1; }; }; }
19789
19790 ac_builddir=.
19791
19792if test "$ac_dir" != .; then
19793 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19794 # A "../" for each directory in $ac_dir_suffix.
19795 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19796else
19797 ac_dir_suffix= ac_top_builddir=
19798fi
19799
19800case $srcdir in
19801 .) # No --srcdir option. We are building in place.
19802 ac_srcdir=.
19803 if test -z "$ac_top_builddir"; then
19804 ac_top_srcdir=.
19805 else
19806 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19807 fi ;;
19808 [\\/]* | ?:[\\/]* ) # Absolute path.
19809 ac_srcdir=$srcdir$ac_dir_suffix;
19810 ac_top_srcdir=$srcdir ;;
19811 *) # Relative path.
19812 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19813 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19814esac
19815
19816# Do not use `cd foo && pwd` to compute absolute paths, because
19817# the directories may not exist.
19818case `pwd` in
19819.) ac_abs_builddir="$ac_dir";;
19820*)
19821 case "$ac_dir" in
19822 .) ac_abs_builddir=`pwd`;;
19823 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19824 *) ac_abs_builddir=`pwd`/"$ac_dir";;
19825 esac;;
19826esac
19827case $ac_abs_builddir in
19828.) ac_abs_top_builddir=${ac_top_builddir}.;;
19829*)
19830 case ${ac_top_builddir}. in
19831 .) ac_abs_top_builddir=$ac_abs_builddir;;
19832 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19833 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19834 esac;;
19835esac
19836case $ac_abs_builddir in
19837.) ac_abs_srcdir=$ac_srcdir;;
19838*)
19839 case $ac_srcdir in
19840 .) ac_abs_srcdir=$ac_abs_builddir;;
19841 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19842 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19843 esac;;
19844esac
19845case $ac_abs_builddir in
19846.) ac_abs_top_srcdir=$ac_top_srcdir;;
19847*)
19848 case $ac_top_srcdir in
19849 .) ac_abs_top_srcdir=$ac_abs_builddir;;
19850 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19851 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19852 esac;;
19853esac
19854
19855
19856 case $INSTALL in
19857 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19858 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19859 esac
19860
19861 # Let's still pretend it is `configure' which instantiates (i.e., don't
19862 # use $as_me), people would be surprised to read:
19863 # /* config.h. Generated by config.status. */
19864 if test x"$ac_file" = x-; then
19865 configure_input=
19866 else
19867 configure_input="$ac_file. "
19868 fi
19869 configure_input=$configure_input"Generated from `echo $ac_file_in |
19870 sed 's,.*/,,'` by configure."
19871
19872 # First look for the input files in the build tree, otherwise in the
19873 # src tree.
19874 ac_file_inputs=`IFS=:
19875 for f in $ac_file_in; do
19876 case $f in
19877 -) echo $tmp/stdin ;;
19878 [\\/$]*)
19879 # Absolute (can't be DOS-style, as IFS=:)
19880 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19881echo "$as_me: error: cannot find input file: $f" >&2;}
19882 { (exit 1); exit 1; }; }
19883 echo "$f";;
19884 *) # Relative
19885 if test -f "$f"; then
19886 # Build tree
19887 echo "$f"
19888 elif test -f "$srcdir/$f"; then
19889 # Source tree
19890 echo "$srcdir/$f"
19891 else
19892 # /dev/null tree
19893 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19894echo "$as_me: error: cannot find input file: $f" >&2;}
19895 { (exit 1); exit 1; }; }
19896 fi;;
19897 esac
19898 done` || { (exit 1); exit 1; }
brynerd5e66382006-09-08 02:35:53 +000019899
19900 if test x"$ac_file" != x-; then
19901 { echo "$as_me:$LINENO: creating $ac_file" >&5
19902echo "$as_me: creating $ac_file" >&6;}
19903 rm -f "$ac_file"
19904 fi
brynercb91a2f2006-08-25 21:14:45 +000019905_ACEOF
19906cat >>$CONFIG_STATUS <<_ACEOF
19907 sed "$ac_vpsub
19908$extrasub
19909_ACEOF
19910cat >>$CONFIG_STATUS <<\_ACEOF
19911:t
19912/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19913s,@configure_input@,$configure_input,;t t
19914s,@srcdir@,$ac_srcdir,;t t
19915s,@abs_srcdir@,$ac_abs_srcdir,;t t
19916s,@top_srcdir@,$ac_top_srcdir,;t t
19917s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19918s,@builddir@,$ac_builddir,;t t
19919s,@abs_builddir@,$ac_abs_builddir,;t t
19920s,@top_builddir@,$ac_top_builddir,;t t
19921s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19922s,@INSTALL@,$ac_INSTALL,;t t
19923" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19924 rm -f $tmp/stdin
19925 if test x"$ac_file" != x-; then
19926 mv $tmp/out $ac_file
19927 else
19928 cat $tmp/out
19929 rm -f $tmp/out
19930 fi
19931
19932done
19933_ACEOF
19934cat >>$CONFIG_STATUS <<\_ACEOF
19935
19936#
19937# CONFIG_HEADER section.
19938#
19939
19940# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19941# NAME is the cpp macro being defined and VALUE is the value it is being given.
19942#
19943# ac_d sets the value in "#define NAME VALUE" lines.
19944ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19945ac_dB='[ ].*$,\1#\2'
19946ac_dC=' '
19947ac_dD=',;t'
19948# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19949ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19950ac_uB='$,\1#\2define\3'
19951ac_uC=' '
19952ac_uD=',;t'
19953
19954for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19955 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19956 case $ac_file in
19957 - | *:- | *:-:* ) # input from stdin
19958 cat >$tmp/stdin
19959 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19960 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19961 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19962 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19963 * ) ac_file_in=$ac_file.in ;;
19964 esac
19965
19966 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19967echo "$as_me: creating $ac_file" >&6;}
19968
19969 # First look for the input files in the build tree, otherwise in the
19970 # src tree.
19971 ac_file_inputs=`IFS=:
19972 for f in $ac_file_in; do
19973 case $f in
19974 -) echo $tmp/stdin ;;
19975 [\\/$]*)
19976 # Absolute (can't be DOS-style, as IFS=:)
19977 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19978echo "$as_me: error: cannot find input file: $f" >&2;}
19979 { (exit 1); exit 1; }; }
19980 # Do quote $f, to prevent DOS paths from being IFS'd.
19981 echo "$f";;
19982 *) # Relative
19983 if test -f "$f"; then
19984 # Build tree
19985 echo "$f"
19986 elif test -f "$srcdir/$f"; then
19987 # Source tree
19988 echo "$srcdir/$f"
19989 else
19990 # /dev/null tree
19991 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19992echo "$as_me: error: cannot find input file: $f" >&2;}
19993 { (exit 1); exit 1; }; }
19994 fi;;
19995 esac
19996 done` || { (exit 1); exit 1; }
19997 # Remove the trailing spaces.
19998 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19999
20000_ACEOF
20001
20002# Transform confdefs.h into two sed scripts, `conftest.defines' and
20003# `conftest.undefs', that substitutes the proper values into
20004# config.h.in to produce config.h. The first handles `#define'
20005# templates, and the second `#undef' templates.
20006# And first: Protect against being on the right side of a sed subst in
20007# config.status. Protect against being in an unquoted here document
20008# in config.status.
20009rm -f conftest.defines conftest.undefs
20010# Using a here document instead of a string reduces the quoting nightmare.
20011# Putting comments in sed scripts is not portable.
20012#
20013# `end' is used to avoid that the second main sed command (meant for
20014# 0-ary CPP macros) applies to n-ary macro definitions.
20015# See the Autoconf documentation for `clear'.
20016cat >confdef2sed.sed <<\_ACEOF
20017s/[\\&,]/\\&/g
20018s,[\\$`],\\&,g
20019t clear
20020: clear
20021s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20022t end
20023s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20024: end
20025_ACEOF
20026# If some macros were called several times there might be several times
20027# the same #defines, which is useless. Nevertheless, we may not want to
20028# sort them, since we want the *last* AC-DEFINE to be honored.
20029uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20030sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20031rm -f confdef2sed.sed
20032
20033# This sed command replaces #undef with comments. This is necessary, for
20034# example, in the case of _POSIX_SOURCE, which is predefined and required
20035# on some systems where configure will not decide to define it.
20036cat >>conftest.undefs <<\_ACEOF
20037s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20038_ACEOF
20039
20040# Break up conftest.defines because some shells have a limit on the size
20041# of here documents, and old seds have small limits too (100 cmds).
20042echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20043echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20044echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20045echo ' :' >>$CONFIG_STATUS
20046rm -f conftest.tail
20047while grep . conftest.defines >/dev/null
20048do
20049 # Write a limited-size here document to $tmp/defines.sed.
20050 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20051 # Speed up: don't consider the non `#define' lines.
20052 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20053 # Work around the forget-to-reset-the-flag bug.
20054 echo 't clr' >>$CONFIG_STATUS
20055 echo ': clr' >>$CONFIG_STATUS
20056 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20057 echo 'CEOF
20058 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20059 rm -f $tmp/in
20060 mv $tmp/out $tmp/in
20061' >>$CONFIG_STATUS
20062 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20063 rm -f conftest.defines
20064 mv conftest.tail conftest.defines
20065done
20066rm -f conftest.defines
20067echo ' fi # grep' >>$CONFIG_STATUS
20068echo >>$CONFIG_STATUS
20069
20070# Break up conftest.undefs because some shells have a limit on the size
20071# of here documents, and old seds have small limits too (100 cmds).
20072echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20073rm -f conftest.tail
20074while grep . conftest.undefs >/dev/null
20075do
20076 # Write a limited-size here document to $tmp/undefs.sed.
20077 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20078 # Speed up: don't consider the non `#undef'
20079 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20080 # Work around the forget-to-reset-the-flag bug.
20081 echo 't clr' >>$CONFIG_STATUS
20082 echo ': clr' >>$CONFIG_STATUS
20083 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20084 echo 'CEOF
20085 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20086 rm -f $tmp/in
20087 mv $tmp/out $tmp/in
20088' >>$CONFIG_STATUS
20089 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20090 rm -f conftest.undefs
20091 mv conftest.tail conftest.undefs
20092done
20093rm -f conftest.undefs
20094
20095cat >>$CONFIG_STATUS <<\_ACEOF
20096 # Let's still pretend it is `configure' which instantiates (i.e., don't
20097 # use $as_me), people would be surprised to read:
20098 # /* config.h. Generated by config.status. */
20099 if test x"$ac_file" = x-; then
20100 echo "/* Generated by configure. */" >$tmp/config.h
20101 else
20102 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20103 fi
20104 cat $tmp/in >>$tmp/config.h
20105 rm -f $tmp/in
20106 if test x"$ac_file" != x-; then
20107 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20108 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20109echo "$as_me: $ac_file is unchanged" >&6;}
20110 else
20111 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20112$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20113 X"$ac_file" : 'X\(//\)[^/]' \| \
20114 X"$ac_file" : 'X\(//\)$' \| \
20115 X"$ac_file" : 'X\(/\)' \| \
20116 . : '\(.\)' 2>/dev/null ||
20117echo X"$ac_file" |
20118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20119 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20120 /^X\(\/\/\)$/{ s//\1/; q; }
20121 /^X\(\/\).*/{ s//\1/; q; }
20122 s/.*/./; q'`
20123 { if $as_mkdir_p; then
20124 mkdir -p "$ac_dir"
20125 else
20126 as_dir="$ac_dir"
20127 as_dirs=
20128 while test ! -d "$as_dir"; do
20129 as_dirs="$as_dir $as_dirs"
20130 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20131$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20132 X"$as_dir" : 'X\(//\)[^/]' \| \
20133 X"$as_dir" : 'X\(//\)$' \| \
20134 X"$as_dir" : 'X\(/\)' \| \
20135 . : '\(.\)' 2>/dev/null ||
20136echo X"$as_dir" |
20137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20138 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20139 /^X\(\/\/\)$/{ s//\1/; q; }
20140 /^X\(\/\).*/{ s//\1/; q; }
20141 s/.*/./; q'`
20142 done
20143 test ! -n "$as_dirs" || mkdir $as_dirs
20144 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20145echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20146 { (exit 1); exit 1; }; }; }
20147
20148 rm -f $ac_file
20149 mv $tmp/config.h $ac_file
20150 fi
20151 else
20152 cat $tmp/config.h
20153 rm -f $tmp/config.h
20154 fi
20155# Compute $ac_file's index in $config_headers.
20156_am_stamp_count=1
20157for _am_header in $config_headers :; do
20158 case $_am_header in
20159 $ac_file | $ac_file:* )
20160 break ;;
20161 * )
20162 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20163 esac
20164done
20165echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20166$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20167 X$ac_file : 'X\(//\)[^/]' \| \
20168 X$ac_file : 'X\(//\)$' \| \
20169 X$ac_file : 'X\(/\)' \| \
20170 . : '\(.\)' 2>/dev/null ||
20171echo X$ac_file |
20172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20173 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20174 /^X\(\/\/\)$/{ s//\1/; q; }
20175 /^X\(\/\).*/{ s//\1/; q; }
20176 s/.*/./; q'`/stamp-h$_am_stamp_count
20177done
20178_ACEOF
20179cat >>$CONFIG_STATUS <<\_ACEOF
20180
20181#
20182# CONFIG_COMMANDS section.
20183#
20184for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20185 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20186 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20187 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20188$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20189 X"$ac_dest" : 'X\(//\)[^/]' \| \
20190 X"$ac_dest" : 'X\(//\)$' \| \
20191 X"$ac_dest" : 'X\(/\)' \| \
20192 . : '\(.\)' 2>/dev/null ||
20193echo X"$ac_dest" |
20194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20195 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20196 /^X\(\/\/\)$/{ s//\1/; q; }
20197 /^X\(\/\).*/{ s//\1/; q; }
20198 s/.*/./; q'`
20199 { if $as_mkdir_p; then
20200 mkdir -p "$ac_dir"
20201 else
20202 as_dir="$ac_dir"
20203 as_dirs=
20204 while test ! -d "$as_dir"; do
20205 as_dirs="$as_dir $as_dirs"
20206 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20207$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20208 X"$as_dir" : 'X\(//\)[^/]' \| \
20209 X"$as_dir" : 'X\(//\)$' \| \
20210 X"$as_dir" : 'X\(/\)' \| \
20211 . : '\(.\)' 2>/dev/null ||
20212echo X"$as_dir" |
20213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20214 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20215 /^X\(\/\/\)$/{ s//\1/; q; }
20216 /^X\(\/\).*/{ s//\1/; q; }
20217 s/.*/./; q'`
20218 done
20219 test ! -n "$as_dirs" || mkdir $as_dirs
20220 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20221echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20222 { (exit 1); exit 1; }; }; }
20223
20224 ac_builddir=.
20225
20226if test "$ac_dir" != .; then
20227 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20228 # A "../" for each directory in $ac_dir_suffix.
20229 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20230else
20231 ac_dir_suffix= ac_top_builddir=
20232fi
20233
20234case $srcdir in
20235 .) # No --srcdir option. We are building in place.
20236 ac_srcdir=.
20237 if test -z "$ac_top_builddir"; then
20238 ac_top_srcdir=.
20239 else
20240 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20241 fi ;;
20242 [\\/]* | ?:[\\/]* ) # Absolute path.
20243 ac_srcdir=$srcdir$ac_dir_suffix;
20244 ac_top_srcdir=$srcdir ;;
20245 *) # Relative path.
20246 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20247 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20248esac
20249
20250# Do not use `cd foo && pwd` to compute absolute paths, because
20251# the directories may not exist.
20252case `pwd` in
20253.) ac_abs_builddir="$ac_dir";;
20254*)
20255 case "$ac_dir" in
20256 .) ac_abs_builddir=`pwd`;;
20257 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20258 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20259 esac;;
20260esac
20261case $ac_abs_builddir in
20262.) ac_abs_top_builddir=${ac_top_builddir}.;;
20263*)
20264 case ${ac_top_builddir}. in
20265 .) ac_abs_top_builddir=$ac_abs_builddir;;
20266 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20267 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20268 esac;;
20269esac
20270case $ac_abs_builddir in
20271.) ac_abs_srcdir=$ac_srcdir;;
20272*)
20273 case $ac_srcdir in
20274 .) ac_abs_srcdir=$ac_abs_builddir;;
20275 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20276 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20277 esac;;
20278esac
20279case $ac_abs_builddir in
20280.) ac_abs_top_srcdir=$ac_top_srcdir;;
20281*)
20282 case $ac_top_srcdir in
20283 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20284 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20285 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20286 esac;;
20287esac
20288
20289
20290 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20291echo "$as_me: executing $ac_dest commands" >&6;}
20292 case $ac_dest in
20293 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20294 # Strip MF so we end up with the name of the file.
20295 mf=`echo "$mf" | sed -e 's/:.*$//'`
20296 # Check whether this is an Automake generated Makefile or not.
20297 # We used to match only the files named `Makefile.in', but
20298 # some people rename them; so instead we look at the file content.
20299 # Grep'ing the first line is not enough: some people post-process
20300 # each Makefile.in and add a new line on top of each file to say so.
20301 # So let's grep whole file.
20302 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20303 dirpart=`(dirname "$mf") 2>/dev/null ||
20304$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20305 X"$mf" : 'X\(//\)[^/]' \| \
20306 X"$mf" : 'X\(//\)$' \| \
20307 X"$mf" : 'X\(/\)' \| \
20308 . : '\(.\)' 2>/dev/null ||
20309echo X"$mf" |
20310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20311 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20312 /^X\(\/\/\)$/{ s//\1/; q; }
20313 /^X\(\/\).*/{ s//\1/; q; }
20314 s/.*/./; q'`
20315 else
20316 continue
20317 fi
20318 # Extract the definition of DEPDIR, am__include, and am__quote
20319 # from the Makefile without running `make'.
20320 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20321 test -z "$DEPDIR" && continue
20322 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20323 test -z "am__include" && continue
20324 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20325 # When using ansi2knr, U may be empty or an underscore; expand it
20326 U=`sed -n 's/^U = //p' < "$mf"`
20327 # Find all dependency output files, they are included files with
20328 # $(DEPDIR) in their names. We invoke sed twice because it is the
20329 # simplest approach to changing $(DEPDIR) to its actual value in the
20330 # expansion.
20331 for file in `sed -n "
20332 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20333 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20334 # Make sure the directory exists.
20335 test -f "$dirpart/$file" && continue
20336 fdir=`(dirname "$file") 2>/dev/null ||
20337$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20338 X"$file" : 'X\(//\)[^/]' \| \
20339 X"$file" : 'X\(//\)$' \| \
20340 X"$file" : 'X\(/\)' \| \
20341 . : '\(.\)' 2>/dev/null ||
20342echo X"$file" |
20343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20344 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20345 /^X\(\/\/\)$/{ s//\1/; q; }
20346 /^X\(\/\).*/{ s//\1/; q; }
20347 s/.*/./; q'`
20348 { if $as_mkdir_p; then
20349 mkdir -p $dirpart/$fdir
20350 else
20351 as_dir=$dirpart/$fdir
20352 as_dirs=
20353 while test ! -d "$as_dir"; do
20354 as_dirs="$as_dir $as_dirs"
20355 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20356$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20357 X"$as_dir" : 'X\(//\)[^/]' \| \
20358 X"$as_dir" : 'X\(//\)$' \| \
20359 X"$as_dir" : 'X\(/\)' \| \
20360 . : '\(.\)' 2>/dev/null ||
20361echo X"$as_dir" |
20362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20363 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20364 /^X\(\/\/\)$/{ s//\1/; q; }
20365 /^X\(\/\).*/{ s//\1/; q; }
20366 s/.*/./; q'`
20367 done
20368 test ! -n "$as_dirs" || mkdir $as_dirs
20369 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20370echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20371 { (exit 1); exit 1; }; }; }
20372
20373 # echo "creating $dirpart/$file"
20374 echo '# dummy' > "$dirpart/$file"
20375 done
20376done
20377 ;;
20378 esac
20379done
20380_ACEOF
20381
20382cat >>$CONFIG_STATUS <<\_ACEOF
20383
20384{ (exit 0); exit 0; }
20385_ACEOF
20386chmod +x $CONFIG_STATUS
20387ac_clean_files=$ac_clean_files_save
20388
20389
20390# configure is writing to config.log, and then calls config.status.
20391# config.status does its own redirection, appending to config.log.
20392# Unfortunately, on DOS this fails, as config.log is still kept open
20393# by configure, so config.status won't be able to write to it; its
20394# output is simply discarded. So we exec the FD to /dev/null,
20395# effectively closing config.log, so it can be properly (re)opened and
20396# appended to by config.status. When coming back to configure, we
20397# need to make the FD available again.
20398if test "$no_create" != yes; then
20399 ac_cs_success=:
20400 ac_config_status_args=
20401 test "$silent" = yes &&
20402 ac_config_status_args="$ac_config_status_args --quiet"
20403 exec 5>/dev/null
20404 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20405 exec 5>>config.log
20406 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20407 # would make configure fail if this is the last instruction.
20408 $ac_cs_success || { (exit 1); exit 1; }
20409fi
20410