]>
Commit | Line | Data |
---|---|---|
b2dad0e3 | 1 | #! /bin/sh |
b2dad0e3 | 2 | # Guess values for system-dependent variables and create Makefiles. |
ec2075e9 | 3 | # Generated by GNU Autoconf 2.59 for package-unused version-unused. |
b2dad0e3 | 4 | # |
ec2075e9 | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
b2dad0e3 BK |
6 | # This configure script is free software; the Free Software Foundation |
7 | # gives unlimited permission to copy, distribute and modify it. | |
ff66d28f PE |
8 | ## --------------------- ## |
9 | ## M4sh Initialization. ## | |
10 | ## --------------------- ## | |
11 | ||
12 | # Be Bourne compatible | |
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
14 | emulate sh | |
15 | NULLCMD=: | |
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
17 | # is contrary to our usage. Disable this feature. | |
18 | alias -g '${1+"$@"}'='"$@"' | |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
20 | set -o posix | |
21 | fi | |
ec2075e9 | 22 | DUALCASE=1; export DUALCASE # for MKS sh |
ff66d28f PE |
23 | |
24 | # Support unset when possible. | |
ec2075e9 | 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ff66d28f PE |
26 | as_unset=unset |
27 | else | |
28 | as_unset=false | |
29 | fi | |
30 | ||
31 | ||
32 | # Work around bugs in pre-3.0 UWIN ksh. | |
33 | $as_unset ENV MAIL MAILPATH | |
34 | PS1='$ ' | |
35 | PS2='> ' | |
36 | PS4='+ ' | |
37 | ||
38 | # NLS nuisances. | |
39 | for as_var in \ | |
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42 | LC_TELEPHONE LC_TIME | |
43 | do | |
ec2075e9 | 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
ff66d28f PE |
45 | eval $as_var=C; export $as_var |
46 | else | |
47 | $as_unset $as_var | |
48 | fi | |
49 | done | |
50 | ||
51 | # Required to use basename. | |
52 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
53 | as_expr=expr | |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
59 | as_basename=basename | |
60 | else | |
61 | as_basename=false | |
62 | fi | |
63 | ||
64 | ||
65 | # Name of the executable. | |
66 | as_me=`$as_basename "$0" || | |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
68 | X"$0" : 'X\(//\)$' \| \ | |
69 | X"$0" : 'X\(/\)$' \| \ | |
70 | . : '\(.\)' 2>/dev/null || | |
71 | echo X/"$0" | | |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
76 | ||
77 | ||
78 | # PATH needs CR, and LINENO needs CR and PATH. | |
79 | # Avoid depending upon Character Ranges. | |
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
83 | as_cr_digits='0123456789' | |
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
85 | ||
86 | # The user is always right. | |
87 | if test "${PATH_SEPARATOR+set}" != set; then | |
88 | echo "#! /bin/sh" >conf$$.sh | |
89 | echo "exit 0" >>conf$$.sh | |
90 | chmod +x conf$$.sh | |
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
92 | PATH_SEPARATOR=';' | |
93 | else | |
94 | PATH_SEPARATOR=: | |
95 | fi | |
96 | rm -f conf$$.sh | |
97 | fi | |
98 | ||
99 | ||
100 | as_lineno_1=$LINENO | |
101 | as_lineno_2=$LINENO | |
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
103 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
104 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
105 | # Find who we are. Look in the path if we contain no path at all | |
106 | # relative or not. | |
107 | case $0 in | |
108 | *[\\/]* ) as_myself=$0 ;; | |
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
110 | for as_dir in $PATH | |
111 | do | |
112 | IFS=$as_save_IFS | |
113 | test -z "$as_dir" && as_dir=. | |
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
115 | done | |
b2dad0e3 | 116 | |
ff66d28f PE |
117 | ;; |
118 | esac | |
119 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
120 | # in which case we are not to be found in the path. | |
121 | if test "x$as_myself" = x; then | |
122 | as_myself=$0 | |
123 | fi | |
124 | if test ! -f "$as_myself"; then | |
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
126 | { (exit 1); exit 1; }; } | |
127 | fi | |
128 | case $CONFIG_SHELL in | |
129 | '') | |
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
132 | do | |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
135 | for as_base in sh bash ksh sh5; do | |
136 | case $as_dir in | |
137 | /*) | |
138 | if ("$as_dir/$as_base" -c ' | |
139 | as_lineno_1=$LINENO | |
140 | as_lineno_2=$LINENO | |
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
142 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
146 | CONFIG_SHELL=$as_dir/$as_base | |
147 | export CONFIG_SHELL | |
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
149 | fi;; | |
150 | esac | |
151 | done | |
152 | done | |
153 | ;; | |
154 | esac | |
155 | ||
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
157 | # uniformly replaced by the line number. The first 'sed' inserts a | |
158 | # line-number line before each line; the second 'sed' does the real | |
159 | # work. The second script uses 'N' to pair each line-number line | |
160 | # with the numbered line, and appends trailing '-' during | |
161 | # substitution so that $LINENO is not a special case at line end. | |
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
164 | sed '=' <$as_myself | | |
165 | sed ' | |
166 | N | |
167 | s,$,-, | |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
170 | t loop | |
171 | s,-$,, | |
172 | s,^['$as_cr_digits']*\n,, | |
173 | ' >$as_me.lineno && | |
174 | chmod +x $as_me.lineno || | |
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
176 | { (exit 1); exit 1; }; } | |
177 | ||
178 | # Don't try to exec as it changes $[0], causing all sort of problems | |
179 | # (the dirname of $[0] is not the place where we might find the | |
180 | # original and so on. Autoconf is especially sensible to this). | |
181 | . ./$as_me.lineno | |
182 | # Exit status is that of the last command. | |
183 | exit | |
184 | } | |
185 | ||
186 | ||
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
188 | *c*,-n*) ECHO_N= ECHO_C=' | |
189 | ' ECHO_T=' ' ;; | |
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
192 | esac | |
193 | ||
194 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
195 | as_expr=expr | |
196 | else | |
197 | as_expr=false | |
198 | fi | |
199 | ||
200 | rm -f conf$$ conf$$.exe conf$$.file | |
201 | echo >conf$$.file | |
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
203 | # We could just check for DJGPP; but this test a) works b) is more generic | |
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
205 | if test -f conf$$.exe; then | |
206 | # Don't use ln at all; we don't have any links | |
207 | as_ln_s='cp -p' | |
208 | else | |
209 | as_ln_s='ln -s' | |
210 | fi | |
211 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
212 | as_ln_s=ln | |
213 | else | |
214 | as_ln_s='cp -p' | |
215 | fi | |
216 | rm -f conf$$ conf$$.exe conf$$.file | |
217 | ||
218 | if mkdir -p . 2>/dev/null; then | |
219 | as_mkdir_p=: | |
220 | else | |
ec2075e9 | 221 | test -d ./-p && rmdir ./-p |
ff66d28f PE |
222 | as_mkdir_p=false |
223 | fi | |
224 | ||
225 | as_executable_p="test -f" | |
226 | ||
227 | # Sed expression to map a string onto a valid CPP name. | |
ec2075e9 | 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ff66d28f PE |
229 | |
230 | # Sed expression to map a string onto a valid variable name. | |
ec2075e9 | 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ff66d28f PE |
232 | |
233 | ||
234 | # IFS | |
235 | # We need space, tab and new line, in precisely that order. | |
236 | as_nl=' | |
237 | ' | |
238 | IFS=" $as_nl" | |
239 | ||
240 | # CDPATH. | |
241 | $as_unset CDPATH | |
242 | ||
243 | ||
1cf3d07d SE |
244 | |
245 | # Check that we are running under the correct shell. | |
246 | SHELL=${CONFIG_SHELL-/bin/sh} | |
247 | ||
248 | case X$lt_ECHO in | |
249 | X*--fallback-echo) | |
250 | # Remove one level of quotation (which was required for Make). | |
251 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
252 | ;; | |
253 | esac | |
254 | ||
255 | ECHO=${lt_ECHO-echo} | |
256 | if test "X$1" = X--no-reexec; then | |
257 | # Discard the --no-reexec flag, and continue. | |
258 | shift | |
259 | elif test "X$1" = X--fallback-echo; then | |
260 | # Avoid inline document here, it may be left over | |
261 | : | |
262 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | |
263 | # Yippee, $ECHO works! | |
264 | : | |
265 | else | |
266 | # Restart under the correct shell. | |
267 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
268 | fi | |
269 | ||
270 | if test "X$1" = X--fallback-echo; then | |
271 | # used as fallback echo | |
272 | shift | |
273 | cat <<_LT_EOF | |
274 | $* | |
275 | _LT_EOF | |
276 | exit 0 | |
277 | fi | |
278 | ||
279 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
280 | # if CDPATH is set. | |
281 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
282 | ||
283 | if test -z "$lt_ECHO"; then | |
284 | if test "X${echo_test_string+set}" != Xset; then | |
285 | # find a string as large as possible, as long as the shell can cope with it | |
286 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
287 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
288 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && | |
289 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | |
290 | then | |
291 | break | |
292 | fi | |
293 | done | |
294 | fi | |
295 | ||
296 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
297 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
298 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
299 | : | |
300 | else | |
301 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
302 | # backslashes. This makes it impossible to quote backslashes using | |
303 | # echo "$something" | sed 's/\\/\\\\/g' | |
304 | # | |
305 | # So, first we look for a working echo in the user's PATH. | |
306 | ||
307 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
308 | for dir in $PATH /usr/ucb; do | |
309 | IFS="$lt_save_ifs" | |
310 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
311 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
312 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
313 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
314 | ECHO="$dir/echo" | |
315 | break | |
316 | fi | |
317 | done | |
318 | IFS="$lt_save_ifs" | |
319 | ||
320 | if test "X$ECHO" = Xecho; then | |
321 | # We didn't find a better echo, so look for alternatives. | |
322 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | |
323 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | |
324 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
325 | # This shell has a builtin print -r that does the trick. | |
326 | ECHO='print -r' | |
327 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | |
328 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
329 | # If we have ksh, try running configure again with it. | |
330 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
331 | export ORIGINAL_CONFIG_SHELL | |
332 | CONFIG_SHELL=/bin/ksh | |
333 | export CONFIG_SHELL | |
334 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
335 | else | |
336 | # Try using printf. | |
337 | ECHO='printf %s\n' | |
338 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
339 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
340 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
341 | # Cool, printf works | |
342 | : | |
343 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
344 | test "X$echo_testing_string" = 'X\t' && | |
345 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
346 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
347 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
348 | export CONFIG_SHELL | |
349 | SHELL="$CONFIG_SHELL" | |
350 | export SHELL | |
351 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
352 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
353 | test "X$echo_testing_string" = 'X\t' && | |
354 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
355 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
356 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
357 | else | |
358 | # maybe with a smaller string... | |
359 | prev=: | |
360 | ||
361 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
362 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | |
363 | then | |
364 | break | |
365 | fi | |
366 | prev="$cmd" | |
367 | done | |
368 | ||
369 | if test "$prev" != 'sed 50q "$0"'; then | |
370 | echo_test_string=`eval $prev` | |
371 | export echo_test_string | |
372 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
373 | else | |
374 | # Oops. We lost completely, so just stick with echo. | |
375 | ECHO=echo | |
376 | fi | |
377 | fi | |
378 | fi | |
379 | fi | |
380 | fi | |
381 | fi | |
382 | ||
383 | # Copy echo and quote the copy suitably for passing to libtool from | |
384 | # the Makefile, instead of quoting the original, which is used later. | |
385 | lt_ECHO=$ECHO | |
386 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
387 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
388 | fi | |
389 | ||
390 | ||
391 | ||
392 | ||
ff66d28f PE |
393 | # Name of the host. |
394 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
395 | # so uname gets run too. | |
396 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
397 | ||
398 | exec 6>&1 | |
399 | ||
400 | # | |
401 | # Initializations. | |
402 | # | |
b2dad0e3 | 403 | ac_default_prefix=/usr/local |
ff66d28f PE |
404 | ac_config_libobj_dir=. |
405 | cross_compiling=no | |
406 | subdirs= | |
407 | MFLAGS= | |
408 | MAKEFLAGS= | |
409 | SHELL=${CONFIG_SHELL-/bin/sh} | |
410 | ||
411 | # Maximum number of lines to put in a shell here document. | |
412 | # This variable seems obsolete. It should probably be removed, and | |
413 | # only ac_max_sed_lines should be used. | |
414 | : ${ac_max_here_lines=38} | |
415 | ||
416 | # Identity of this package. | |
fbe057bb PE |
417 | PACKAGE_NAME='package-unused' |
418 | PACKAGE_TARNAME='libstdc++' | |
ff66d28f | 419 | PACKAGE_VERSION='version-unused' |
fbe057bb | 420 | PACKAGE_STRING='package-unused version-unused' |
ff66d28f PE |
421 | PACKAGE_BUGREPORT='' |
422 | ||
423 | ac_unique_file="src/ios.cc" | |
424 | # Factoring default headers for most tests. | |
425 | ac_includes_default="\ | |
426 | #include <stdio.h> | |
427 | #if HAVE_SYS_TYPES_H | |
428 | # include <sys/types.h> | |
429 | #endif | |
430 | #if HAVE_SYS_STAT_H | |
431 | # include <sys/stat.h> | |
432 | #endif | |
433 | #if STDC_HEADERS | |
434 | # include <stdlib.h> | |
435 | # include <stddef.h> | |
436 | #else | |
437 | # if HAVE_STDLIB_H | |
438 | # include <stdlib.h> | |
439 | # endif | |
440 | #endif | |
441 | #if HAVE_STRING_H | |
442 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
443 | # include <memory.h> | |
444 | # endif | |
445 | # include <string.h> | |
446 | #endif | |
447 | #if HAVE_STRINGS_H | |
448 | # include <strings.h> | |
449 | #endif | |
450 | #if HAVE_INTTYPES_H | |
451 | # include <inttypes.h> | |
452 | #else | |
453 | # if HAVE_STDINT_H | |
454 | # include <stdint.h> | |
455 | # endif | |
456 | #endif | |
457 | #if HAVE_UNISTD_H | |
458 | # include <unistd.h> | |
459 | #endif" | |
460 | ||
1cf3d07d | 461 | ac_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 libtool_VERSION multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA 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 glibcxx_builddir glibcxx_srcdir toplevel_srcdir CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LN_S AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CPP CPPFLAGS EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM lt_ECHO LDFLAGS CXXCPP enable_shared enable_static GLIBCXX_HOSTED_TRUE GLIBCXX_HOSTED_FALSE GLIBCXX_BUILD_PCH_TRUE GLIBCXX_BUILD_PCH_FALSE glibcxx_PCHFLAGS CSTDIO_H BASIC_FILE_H BASIC_FILE_CC check_msgfmt glibcxx_MOFILES glibcxx_POFILES glibcxx_localedir USE_NLS CLOCALE_H CMESSAGES_H CCODECVT_CC CCOLLATE_CC CCTYPE_CC CMESSAGES_CC CMONEY_CC CNUMERIC_CC CTIME_H CTIME_CC CLOCALE_CC CLOCALE_INTERNAL_H ALLOCATOR_H ALLOCATOR_NAME C_INCLUDE_DIR GLIBCXX_C_HEADERS_C_TRUE GLIBCXX_C_HEADERS_C_FALSE GLIBCXX_C_HEADERS_C_STD_TRUE GLIBCXX_C_HEADERS_C_STD_FALSE GLIBCXX_C_HEADERS_C_GLOBAL_TRUE GLIBCXX_C_HEADERS_C_GLOBAL_FALSE GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE GLIBCXX_C_HEADERS_EXTRA_TRUE GLIBCXX_C_HEADERS_EXTRA_FALSE DEBUG_FLAGS GLIBCXX_BUILD_DEBUG_TRUE GLIBCXX_BUILD_DEBUG_FALSE EXTRA_CXX_FLAGS glibcxx_thread_h WERROR SECTION_FLAGS SECTION_LDFLAGS OPT_LDFLAGS LIBMATHOBJS LIBICONV LTLIBICONV SYMVER_FILE port_specific_symbol_files ENABLE_SYMVERS_TRUE ENABLE_SYMVERS_FALSE ENABLE_SYMVERS_GNU_TRUE ENABLE_SYMVERS_GNU_FALSE ENABLE_SYMVERS_GNU_NAMESPACE_TRUE ENABLE_SYMVERS_GNU_NAMESPACE_FALSE ENABLE_SYMVERS_DARWIN_TRUE ENABLE_SYMVERS_DARWIN_FALSE ENABLE_VISIBILITY_TRUE ENABLE_VISIBILITY_FALSE GLIBCXX_LDBL_COMPAT_TRUE GLIBCXX_LDBL_COMPAT_FALSE baseline_dir ATOMICITY_SRCDIR ATOMIC_WORD_SRCDIR CPU_DEFINES_SRCDIR ABI_TWEAKS_SRCDIR OS_INC_SRCDIR glibcxx_prefixdir gxx_include_dir glibcxx_toolexecdir glibcxx_toolexeclibdir GLIBCXX_INCLUDES TOPLEVEL_INCLUDES OPTIMIZE_CXXFLAGS WARN_FLAGS LIBSUPCXX_PICFLAGS LIBOBJS LTLIBOBJS' |
ff66d28f | 462 | ac_subst_files='' |
b2dad0e3 BK |
463 | |
464 | # Initialize some variables set by options. | |
ff66d28f PE |
465 | ac_init_help= |
466 | ac_init_version=false | |
b2dad0e3 BK |
467 | # The variables have the same names as the options, with |
468 | # dashes changed to underlines. | |
ff66d28f | 469 | cache_file=/dev/null |
b2dad0e3 | 470 | exec_prefix=NONE |
b2dad0e3 | 471 | no_create= |
b2dad0e3 BK |
472 | no_recursion= |
473 | prefix=NONE | |
474 | program_prefix=NONE | |
475 | program_suffix=NONE | |
476 | program_transform_name=s,x,x, | |
477 | silent= | |
478 | site= | |
479 | srcdir= | |
b2dad0e3 BK |
480 | verbose= |
481 | x_includes=NONE | |
482 | x_libraries=NONE | |
ff66d28f PE |
483 | |
484 | # Installation directory options. | |
485 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
486 | # and all the variables that are supposed to be based on exec_prefix | |
487 | # by default will actually change. | |
488 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
b2dad0e3 BK |
489 | bindir='${exec_prefix}/bin' |
490 | sbindir='${exec_prefix}/sbin' | |
491 | libexecdir='${exec_prefix}/libexec' | |
492 | datadir='${prefix}/share' | |
493 | sysconfdir='${prefix}/etc' | |
494 | sharedstatedir='${prefix}/com' | |
495 | localstatedir='${prefix}/var' | |
496 | libdir='${exec_prefix}/lib' | |
497 | includedir='${prefix}/include' | |
498 | oldincludedir='/usr/include' | |
499 | infodir='${prefix}/info' | |
500 | mandir='${prefix}/man' | |
501 | ||
b2dad0e3 BK |
502 | ac_prev= |
503 | for ac_option | |
504 | do | |
b2dad0e3 BK |
505 | # If the previous option needs an argument, assign it. |
506 | if test -n "$ac_prev"; then | |
507 | eval "$ac_prev=\$ac_option" | |
508 | ac_prev= | |
509 | continue | |
510 | fi | |
511 | ||
ff66d28f | 512 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
b2dad0e3 BK |
513 | |
514 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
515 | ||
ff66d28f | 516 | case $ac_option in |
b2dad0e3 BK |
517 | |
518 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
519 | ac_prev=bindir ;; | |
520 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ff66d28f | 521 | bindir=$ac_optarg ;; |
b2dad0e3 BK |
522 | |
523 | -build | --build | --buil | --bui | --bu) | |
ff66d28f | 524 | ac_prev=build_alias ;; |
b2dad0e3 | 525 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ff66d28f | 526 | build_alias=$ac_optarg ;; |
b2dad0e3 BK |
527 | |
528 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
529 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
530 | ac_prev=cache_file ;; | |
531 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
532 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ff66d28f PE |
533 | cache_file=$ac_optarg ;; |
534 | ||
535 | --config-cache | -C) | |
536 | cache_file=config.cache ;; | |
b2dad0e3 BK |
537 | |
538 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
539 | ac_prev=datadir ;; | |
540 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
541 | | --da=*) | |
ff66d28f | 542 | datadir=$ac_optarg ;; |
b2dad0e3 BK |
543 | |
544 | -disable-* | --disable-*) | |
ff66d28f | 545 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
b2dad0e3 | 546 | # Reject names that are not valid shell variable names. |
ff66d28f PE |
547 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
548 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
549 | { (exit 1); exit 1; }; } | |
550 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
551 | eval "enable_$ac_feature=no" ;; | |
b2dad0e3 BK |
552 | |
553 | -enable-* | --enable-*) | |
ff66d28f | 554 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
b2dad0e3 | 555 | # Reject names that are not valid shell variable names. |
ff66d28f PE |
556 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
557 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
558 | { (exit 1); exit 1; }; } | |
559 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
560 | case $ac_option in | |
561 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
b2dad0e3 BK |
562 | *) ac_optarg=yes ;; |
563 | esac | |
ff66d28f | 564 | eval "enable_$ac_feature='$ac_optarg'" ;; |
b2dad0e3 BK |
565 | |
566 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
567 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
568 | | --exec | --exe | --ex) | |
569 | ac_prev=exec_prefix ;; | |
570 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
571 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
572 | | --exec=* | --exe=* | --ex=*) | |
ff66d28f | 573 | exec_prefix=$ac_optarg ;; |
b2dad0e3 BK |
574 | |
575 | -gas | --gas | --ga | --g) | |
576 | # Obsolete; use --with-gas. | |
577 | with_gas=yes ;; | |
578 | ||
ff66d28f PE |
579 | -help | --help | --hel | --he | -h) |
580 | ac_init_help=long ;; | |
581 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
582 | ac_init_help=recursive ;; | |
583 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
584 | ac_init_help=short ;; | |
b2dad0e3 BK |
585 | |
586 | -host | --host | --hos | --ho) | |
ff66d28f | 587 | ac_prev=host_alias ;; |
b2dad0e3 | 588 | -host=* | --host=* | --hos=* | --ho=*) |
ff66d28f | 589 | host_alias=$ac_optarg ;; |
b2dad0e3 BK |
590 | |
591 | -includedir | --includedir | --includedi | --included | --include \ | |
592 | | --includ | --inclu | --incl | --inc) | |
593 | ac_prev=includedir ;; | |
594 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
595 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ff66d28f | 596 | includedir=$ac_optarg ;; |
b2dad0e3 BK |
597 | |
598 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
599 | ac_prev=infodir ;; | |
600 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ff66d28f | 601 | infodir=$ac_optarg ;; |
b2dad0e3 BK |
602 | |
603 | -libdir | --libdir | --libdi | --libd) | |
604 | ac_prev=libdir ;; | |
605 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ff66d28f | 606 | libdir=$ac_optarg ;; |
b2dad0e3 BK |
607 | |
608 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
609 | | --libexe | --libex | --libe) | |
610 | ac_prev=libexecdir ;; | |
611 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
612 | | --libexe=* | --libex=* | --libe=*) | |
ff66d28f | 613 | libexecdir=$ac_optarg ;; |
b2dad0e3 BK |
614 | |
615 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
616 | | --localstate | --localstat | --localsta | --localst \ | |
617 | | --locals | --local | --loca | --loc | --lo) | |
618 | ac_prev=localstatedir ;; | |
619 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
620 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
621 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
ff66d28f | 622 | localstatedir=$ac_optarg ;; |
b2dad0e3 BK |
623 | |
624 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
625 | ac_prev=mandir ;; | |
626 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ff66d28f | 627 | mandir=$ac_optarg ;; |
b2dad0e3 BK |
628 | |
629 | -nfp | --nfp | --nf) | |
630 | # Obsolete; use --without-fp. | |
631 | with_fp=no ;; | |
632 | ||
633 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ff66d28f | 634 | | --no-cr | --no-c | -n) |
b2dad0e3 BK |
635 | no_create=yes ;; |
636 | ||
637 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
638 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
639 | no_recursion=yes ;; | |
640 | ||
641 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
642 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
643 | | --oldin | --oldi | --old | --ol | --o) | |
644 | ac_prev=oldincludedir ;; | |
645 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
646 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
647 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ff66d28f | 648 | oldincludedir=$ac_optarg ;; |
b2dad0e3 BK |
649 | |
650 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
651 | ac_prev=prefix ;; | |
652 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ff66d28f | 653 | prefix=$ac_optarg ;; |
b2dad0e3 BK |
654 | |
655 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
656 | | --program-pre | --program-pr | --program-p) | |
657 | ac_prev=program_prefix ;; | |
658 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
659 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ff66d28f | 660 | program_prefix=$ac_optarg ;; |
b2dad0e3 BK |
661 | |
662 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
663 | | --program-suf | --program-su | --program-s) | |
664 | ac_prev=program_suffix ;; | |
665 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
666 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ff66d28f | 667 | program_suffix=$ac_optarg ;; |
b2dad0e3 BK |
668 | |
669 | -program-transform-name | --program-transform-name \ | |
670 | | --program-transform-nam | --program-transform-na \ | |
671 | | --program-transform-n | --program-transform- \ | |
672 | | --program-transform | --program-transfor \ | |
673 | | --program-transfo | --program-transf \ | |
674 | | --program-trans | --program-tran \ | |
675 | | --progr-tra | --program-tr | --program-t) | |
676 | ac_prev=program_transform_name ;; | |
677 | -program-transform-name=* | --program-transform-name=* \ | |
678 | | --program-transform-nam=* | --program-transform-na=* \ | |
679 | | --program-transform-n=* | --program-transform-=* \ | |
680 | | --program-transform=* | --program-transfor=* \ | |
681 | | --program-transfo=* | --program-transf=* \ | |
682 | | --program-trans=* | --program-tran=* \ | |
683 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ff66d28f | 684 | program_transform_name=$ac_optarg ;; |
b2dad0e3 BK |
685 | |
686 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
687 | | -silent | --silent | --silen | --sile | --sil) | |
688 | silent=yes ;; | |
689 | ||
690 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
691 | ac_prev=sbindir ;; | |
692 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
693 | | --sbi=* | --sb=*) | |
ff66d28f | 694 | sbindir=$ac_optarg ;; |
b2dad0e3 BK |
695 | |
696 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
697 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
698 | | --sharedst | --shareds | --shared | --share | --shar \ | |
699 | | --sha | --sh) | |
700 | ac_prev=sharedstatedir ;; | |
701 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
702 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
703 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
704 | | --sha=* | --sh=*) | |
ff66d28f | 705 | sharedstatedir=$ac_optarg ;; |
b2dad0e3 BK |
706 | |
707 | -site | --site | --sit) | |
708 | ac_prev=site ;; | |
709 | -site=* | --site=* | --sit=*) | |
ff66d28f | 710 | site=$ac_optarg ;; |
b2dad0e3 BK |
711 | |
712 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
713 | ac_prev=srcdir ;; | |
714 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ff66d28f | 715 | srcdir=$ac_optarg ;; |
b2dad0e3 BK |
716 | |
717 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
718 | | --syscon | --sysco | --sysc | --sys | --sy) | |
719 | ac_prev=sysconfdir ;; | |
720 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
721 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ff66d28f | 722 | sysconfdir=$ac_optarg ;; |
b2dad0e3 BK |
723 | |
724 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ff66d28f | 725 | ac_prev=target_alias ;; |
b2dad0e3 | 726 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ff66d28f | 727 | target_alias=$ac_optarg ;; |
b2dad0e3 BK |
728 | |
729 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
730 | verbose=yes ;; | |
731 | ||
ff66d28f PE |
732 | -version | --version | --versio | --versi | --vers | -V) |
733 | ac_init_version=: ;; | |
b2dad0e3 BK |
734 | |
735 | -with-* | --with-*) | |
ff66d28f | 736 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
b2dad0e3 | 737 | # Reject names that are not valid shell variable names. |
ff66d28f PE |
738 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
739 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
740 | { (exit 1); exit 1; }; } | |
b2dad0e3 | 741 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
ff66d28f PE |
742 | case $ac_option in |
743 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
b2dad0e3 BK |
744 | *) ac_optarg=yes ;; |
745 | esac | |
ff66d28f | 746 | eval "with_$ac_package='$ac_optarg'" ;; |
b2dad0e3 BK |
747 | |
748 | -without-* | --without-*) | |
ff66d28f | 749 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
b2dad0e3 | 750 | # Reject names that are not valid shell variable names. |
ff66d28f PE |
751 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
752 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
753 | { (exit 1); exit 1; }; } | |
754 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
755 | eval "with_$ac_package=no" ;; | |
b2dad0e3 BK |
756 | |
757 | --x) | |
758 | # Obsolete; use --with-x. | |
759 | with_x=yes ;; | |
760 | ||
761 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
762 | | --x-incl | --x-inc | --x-in | --x-i) | |
763 | ac_prev=x_includes ;; | |
764 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
765 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ff66d28f | 766 | x_includes=$ac_optarg ;; |
b2dad0e3 BK |
767 | |
768 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
769 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
770 | ac_prev=x_libraries ;; | |
771 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
772 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ff66d28f | 773 | x_libraries=$ac_optarg ;; |
b2dad0e3 | 774 | |
ff66d28f PE |
775 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
776 | Try \`$0 --help' for more information." >&2 | |
777 | { (exit 1); exit 1; }; } | |
b2dad0e3 BK |
778 | ;; |
779 | ||
ff66d28f PE |
780 | *=*) |
781 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
782 | # Reject names that are not valid shell variable names. | |
783 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
784 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
785 | { (exit 1); exit 1; }; } | |
786 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
787 | eval "$ac_envvar='$ac_optarg'" | |
788 | export $ac_envvar ;; | |
789 | ||
b2dad0e3 | 790 | *) |
ff66d28f PE |
791 | # FIXME: should be removed in autoconf 3.0. |
792 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
793 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
794 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
795 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
b2dad0e3 BK |
796 | ;; |
797 | ||
798 | esac | |
799 | done | |
800 | ||
801 | if test -n "$ac_prev"; then | |
ff66d28f PE |
802 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
803 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
804 | { (exit 1); exit 1; }; } | |
b2dad0e3 | 805 | fi |
b2dad0e3 | 806 | |
ff66d28f PE |
807 | # Be sure to have absolute paths. |
808 | for ac_var in exec_prefix prefix | |
809 | do | |
810 | eval ac_val=$`echo $ac_var` | |
811 | case $ac_val in | |
812 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
813 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
814 | { (exit 1); exit 1; }; };; | |
815 | esac | |
816 | done | |
b2dad0e3 | 817 | |
ff66d28f PE |
818 | # Be sure to have absolute paths. |
819 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
ec2075e9 | 820 | localstatedir libdir includedir oldincludedir infodir mandir |
b2dad0e3 | 821 | do |
ff66d28f PE |
822 | eval ac_val=$`echo $ac_var` |
823 | case $ac_val in | |
824 | [\\/$]* | ?:[\\/]* ) ;; | |
825 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
826 | { (exit 1); exit 1; }; };; | |
b2dad0e3 BK |
827 | esac |
828 | done | |
829 | ||
ff66d28f PE |
830 | # There might be people who depend on the old broken behavior: `$host' |
831 | # used to hold the argument of --host etc. | |
832 | # FIXME: To remove some day. | |
833 | build=$build_alias | |
834 | host=$host_alias | |
835 | target=$target_alias | |
b2dad0e3 | 836 | |
ff66d28f PE |
837 | # FIXME: To remove some day. |
838 | if test "x$host_alias" != x; then | |
839 | if test "x$build_alias" = x; then | |
840 | cross_compiling=maybe | |
841 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
842 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
843 | elif test "x$build_alias" != "x$host_alias"; then | |
844 | cross_compiling=yes | |
845 | fi | |
846 | fi | |
847 | ||
848 | ac_tool_prefix= | |
849 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
850 | ||
851 | test "$silent" = yes && exec 6>/dev/null | |
b2dad0e3 | 852 | |
b2dad0e3 BK |
853 | |
854 | # Find the source files, if location was not specified. | |
855 | if test -z "$srcdir"; then | |
856 | ac_srcdir_defaulted=yes | |
857 | # Try the directory containing this script, then its parent. | |
ff66d28f PE |
858 | ac_confdir=`(dirname "$0") 2>/dev/null || |
859 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ec2075e9 BK |
860 | X"$0" : 'X\(//\)[^/]' \| \ |
861 | X"$0" : 'X\(//\)$' \| \ | |
862 | X"$0" : 'X\(/\)' \| \ | |
863 | . : '\(.\)' 2>/dev/null || | |
ff66d28f PE |
864 | echo X"$0" | |
865 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
866 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
867 | /^X\(\/\/\)$/{ s//\1/; q; } | |
868 | /^X\(\/\).*/{ s//\1/; q; } | |
869 | s/.*/./; q'` | |
b2dad0e3 BK |
870 | srcdir=$ac_confdir |
871 | if test ! -r $srcdir/$ac_unique_file; then | |
872 | srcdir=.. | |
873 | fi | |
874 | else | |
875 | ac_srcdir_defaulted=no | |
876 | fi | |
877 | if test ! -r $srcdir/$ac_unique_file; then | |
878 | if test "$ac_srcdir_defaulted" = yes; then | |
ff66d28f PE |
879 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
880 | { (exit 1); exit 1; }; } | |
b2dad0e3 | 881 | else |
ff66d28f PE |
882 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
883 | { (exit 1); exit 1; }; } | |
884 | fi | |
885 | fi | |
886 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | |
887 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
888 | { (exit 1); exit 1; }; } | |
889 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
890 | ac_env_build_alias_set=${build_alias+set} | |
891 | ac_env_build_alias_value=$build_alias | |
892 | ac_cv_env_build_alias_set=${build_alias+set} | |
893 | ac_cv_env_build_alias_value=$build_alias | |
894 | ac_env_host_alias_set=${host_alias+set} | |
895 | ac_env_host_alias_value=$host_alias | |
896 | ac_cv_env_host_alias_set=${host_alias+set} | |
897 | ac_cv_env_host_alias_value=$host_alias | |
898 | ac_env_target_alias_set=${target_alias+set} | |
899 | ac_env_target_alias_value=$target_alias | |
900 | ac_cv_env_target_alias_set=${target_alias+set} | |
901 | ac_cv_env_target_alias_value=$target_alias | |
ff66d28f PE |
902 | ac_env_CPP_set=${CPP+set} |
903 | ac_env_CPP_value=$CPP | |
904 | ac_cv_env_CPP_set=${CPP+set} | |
905 | ac_cv_env_CPP_value=$CPP | |
464aea98 JM |
906 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
907 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
908 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
909 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
1cf3d07d SE |
910 | ac_env_CXX_set=${CXX+set} |
911 | ac_env_CXX_value=$CXX | |
912 | ac_cv_env_CXX_set=${CXX+set} | |
913 | ac_cv_env_CXX_value=$CXX | |
914 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
915 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
916 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
917 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
918 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
919 | ac_env_LDFLAGS_value=$LDFLAGS | |
920 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
921 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
464aea98 JM |
922 | ac_env_CXXCPP_set=${CXXCPP+set} |
923 | ac_env_CXXCPP_value=$CXXCPP | |
924 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
925 | ac_cv_env_CXXCPP_value=$CXXCPP | |
ff66d28f PE |
926 | |
927 | # | |
928 | # Report the --help message. | |
929 | # | |
930 | if test "$ac_init_help" = "long"; then | |
931 | # Omit some internal or obsolete options to make the list less imposing. | |
932 | # This message is too long to be a string in the A/UX 3.1 sh. | |
933 | cat <<_ACEOF | |
fbe057bb | 934 | \`configure' configures package-unused version-unused to adapt to many kinds of systems. |
ff66d28f PE |
935 | |
936 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
937 | ||
938 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
939 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
940 | ||
941 | Defaults for the options are specified in brackets. | |
942 | ||
943 | Configuration: | |
944 | -h, --help display this help and exit | |
945 | --help=short display options specific to this package | |
946 | --help=recursive display the short help of all the included packages | |
947 | -V, --version display version information and exit | |
948 | -q, --quiet, --silent do not print \`checking...' messages | |
949 | --cache-file=FILE cache test results in FILE [disabled] | |
950 | -C, --config-cache alias for \`--cache-file=config.cache' | |
951 | -n, --no-create do not create output files | |
952 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
953 | ||
954 | _ACEOF | |
955 | ||
956 | cat <<_ACEOF | |
957 | Installation directories: | |
958 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec2075e9 | 959 | [$ac_default_prefix] |
ff66d28f | 960 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec2075e9 | 961 | [PREFIX] |
ff66d28f PE |
962 | |
963 | By default, \`make install' will install all the files in | |
964 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
965 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
966 | for instance \`--prefix=\$HOME'. | |
967 | ||
968 | For better control, use the options below. | |
969 | ||
970 | Fine tuning of the installation directories: | |
971 | --bindir=DIR user executables [EPREFIX/bin] | |
972 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
973 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
974 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
975 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
976 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
977 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
978 | --libdir=DIR object code libraries [EPREFIX/lib] | |
979 | --includedir=DIR C header files [PREFIX/include] | |
980 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
981 | --infodir=DIR info documentation [PREFIX/info] | |
982 | --mandir=DIR man documentation [PREFIX/man] | |
983 | _ACEOF | |
984 | ||
985 | cat <<\_ACEOF | |
986 | ||
987 | Program names: | |
988 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
989 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
990 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
991 | ||
992 | System types: | |
993 | --build=BUILD configure for building on BUILD [guessed] | |
994 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
995 | --target=TARGET configure for building compilers for TARGET [HOST] | |
996 | _ACEOF | |
997 | fi | |
998 | ||
999 | if test -n "$ac_init_help"; then | |
1000 | case $ac_init_help in | |
fbe057bb | 1001 | short | recursive ) echo "Configuration of package-unused version-unused:";; |
ff66d28f PE |
1002 | esac |
1003 | cat <<\_ACEOF | |
1004 | ||
1005 | Optional Features: | |
1006 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1007 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
7eaf73d7 KC |
1008 | --enable-multilib build many library versions (default) |
1009 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1010 | (and sometimes confusing) to the casual installer | |
1cf3d07d SE |
1011 | --enable-shared[=PKGS] |
1012 | build shared libraries [default=yes] | |
1013 | --enable-static[=PKGS] | |
1014 | build static libraries [default=yes] | |
1015 | --enable-fast-install[=PKGS] | |
1016 | optimize for fast installation [default=yes] | |
ff66d28f | 1017 | --disable-libtool-lock avoid locking (might break parallel builds) |
92eabea2 PE |
1018 | --disable-hosted-libstdcxx |
1019 | only build freestanding C++ runtime support | |
ff66d28f | 1020 | --enable-sjlj-exceptions |
517da0ce MM |
1021 | force use of builtin_setjmp for exceptions |
1022 | [default=auto] | |
1023 | --enable-libstdcxx-pch build pre-compiled libstdc++ headers | |
1024 | [default=$is_hosted] | |
1025 | --enable-cstdio=PACKAGE use target-specific I/O package | |
1026 | [default=stdio] | |
ff66d28f | 1027 | --enable-clocale[=MODEL] |
517da0ce MM |
1028 | use MODEL for target locale package |
1029 | [default=auto] | |
1030 | --enable-nls use Native Language Support (default) | |
8b0d6051 BK |
1031 | --enable-libstdcxx-allocator=KIND |
1032 | use KIND for target std::allocator base | |
1033 | [default=auto] | |
517da0ce MM |
1034 | --enable-cheaders=KIND construct "C" headers for g++ |
1035 | [default=$c_model] | |
347669a0 BK |
1036 | --enable-long-long enable template specializations for 'long long' |
1037 | [default=yes] | |
1038 | --enable-wchar_t enable template specializations for 'wchar_t' | |
517da0ce | 1039 | [default=yes] |
8a9b2875 PC |
1040 | --enable-c99 turns on ISO/IEC 9899:1999 support |
1041 | [default=yes] | |
517da0ce | 1042 | --enable-concept-checks use Boost-derived template checks [default=no] |
ff66d28f | 1043 | --enable-libstdcxx-debug-flags=FLAGS |
517da0ce MM |
1044 | pass compiler FLAGS when building debug library |
1045 | [default="-g3 -O0"] | |
ff66d28f PE |
1046 | --enable-libstdcxx-debug |
1047 | build extra debug library [default=no] | |
1048 | --enable-cxx-flags=FLAGS | |
517da0ce MM |
1049 | pass compiler FLAGS when building library |
1050 | [default=] | |
1165dc50 PC |
1051 | --enable-fully-dynamic-string |
1052 | do not put empty strings in per-process static | |
1053 | memory [default=no] | |
2fb31455 | 1054 | --enable-tls Use thread-local storage [default=yes] |
5f34ed87 | 1055 | --disable-rpath do not hardcode runtime library paths |
517da0ce MM |
1056 | --enable-symvers=STYLE enables symbol versioning of the shared library |
1057 | [default=yes] | |
98e615b4 | 1058 | --enable-visibility enables visibility safe usage [default=yes] |
ff66d28f | 1059 | --enable-version-specific-runtime-libs |
517da0ce MM |
1060 | Specify that runtime libraries should be installed |
1061 | in a compiler-specific directory | |
ff66d28f PE |
1062 | |
1063 | Optional Packages: | |
1064 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1065 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1066 | --with-target-subdir=SUBDIR | |
1067 | configuring in a subdirectory | |
517da0ce MM |
1068 | --with-cross-host=HOST configuring with a cross compiler |
1069 | --with-newlib assume newlib as a system C library | |
1cf3d07d SE |
1070 | --with-pic try to use only PIC/non-PIC objects [default=use |
1071 | both] | |
1072 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
ff66d28f | 1073 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
4ffe6e87 BK |
1074 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
1075 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
ff66d28f PE |
1076 | --with-gxx-include-dir=DIR |
1077 | installation directory for include files | |
1078 | ||
1079 | Some influential environment variables: | |
517da0ce MM |
1080 | CC C compiler command |
1081 | CFLAGS C compiler flags | |
1082 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1083 | nonstandard directory <lib dir> | |
1084 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1085 | headers in a nonstandard directory <include dir> | |
1086 | CXX C++ compiler command | |
1087 | CXXFLAGS C++ compiler flags | |
517da0ce | 1088 | CPP C preprocessor |
464aea98 | 1089 | CXXCPP C++ preprocessor |
ff66d28f PE |
1090 | |
1091 | Use these variables to override the choices made by `configure' or to help | |
1092 | it to find libraries and programs with nonstandard names/locations. | |
1093 | ||
1094 | _ACEOF | |
1095 | fi | |
1096 | ||
1097 | if test "$ac_init_help" = "recursive"; then | |
1098 | # If there are subdirs, report their specific --help. | |
1099 | ac_popdir=`pwd` | |
1100 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1101 | test -d $ac_dir || continue | |
1102 | ac_builddir=. | |
1103 | ||
1104 | if test "$ac_dir" != .; then | |
1105 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1106 | # A "../" for each directory in $ac_dir_suffix. | |
1107 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1108 | else | |
1109 | ac_dir_suffix= ac_top_builddir= | |
1110 | fi | |
1111 | ||
1112 | case $srcdir in | |
1113 | .) # No --srcdir option. We are building in place. | |
1114 | ac_srcdir=. | |
1115 | if test -z "$ac_top_builddir"; then | |
1116 | ac_top_srcdir=. | |
1117 | else | |
1118 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1119 | fi ;; | |
1120 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1121 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1122 | ac_top_srcdir=$srcdir ;; | |
1123 | *) # Relative path. | |
1124 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1125 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1126 | esac | |
ec2075e9 BK |
1127 | |
1128 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1129 | # the directories may not exist. | |
1130 | case `pwd` in | |
1131 | .) ac_abs_builddir="$ac_dir";; | |
1132 | *) | |
1133 | case "$ac_dir" in | |
1134 | .) ac_abs_builddir=`pwd`;; | |
1135 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1136 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1137 | esac;; | |
1138 | esac | |
1139 | case $ac_abs_builddir in | |
1140 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1141 | *) | |
1142 | case ${ac_top_builddir}. in | |
1143 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1144 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1145 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1146 | esac;; | |
1147 | esac | |
1148 | case $ac_abs_builddir in | |
1149 | .) ac_abs_srcdir=$ac_srcdir;; | |
1150 | *) | |
1151 | case $ac_srcdir in | |
1152 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1153 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1154 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1155 | esac;; | |
1156 | esac | |
1157 | case $ac_abs_builddir in | |
1158 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1159 | *) | |
1160 | case $ac_top_srcdir in | |
1161 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1162 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1163 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1164 | esac;; | |
1165 | esac | |
ff66d28f PE |
1166 | |
1167 | cd $ac_dir | |
1168 | # Check for guested configure; otherwise get Cygnus style configure. | |
1169 | if test -f $ac_srcdir/configure.gnu; then | |
1170 | echo | |
1171 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1172 | elif test -f $ac_srcdir/configure; then | |
1173 | echo | |
1174 | $SHELL $ac_srcdir/configure --help=recursive | |
1175 | elif test -f $ac_srcdir/configure.ac || | |
ec2075e9 | 1176 | test -f $ac_srcdir/configure.in; then |
ff66d28f PE |
1177 | echo |
1178 | $ac_configure --help | |
1179 | else | |
1180 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1181 | fi | |
5b043f08 | 1182 | cd $ac_popdir |
ff66d28f PE |
1183 | done |
1184 | fi | |
1185 | ||
1186 | test -n "$ac_init_help" && exit 0 | |
1187 | if $ac_init_version; then | |
1188 | cat <<\_ACEOF | |
fbe057bb | 1189 | package-unused configure version-unused |
ec2075e9 | 1190 | generated by GNU Autoconf 2.59 |
ff66d28f | 1191 | |
ec2075e9 | 1192 | Copyright (C) 2003 Free Software Foundation, Inc. |
ff66d28f PE |
1193 | This configure script is free software; the Free Software Foundation |
1194 | gives unlimited permission to copy, distribute and modify it. | |
1195 | _ACEOF | |
1196 | exit 0 | |
b2dad0e3 | 1197 | fi |
ff66d28f PE |
1198 | exec 5>config.log |
1199 | cat >&5 <<_ACEOF | |
1200 | This file contains any messages produced by compilers while | |
1201 | running configure, to aid debugging if configure makes a mistake. | |
1202 | ||
fbe057bb | 1203 | It was created by package-unused $as_me version-unused, which was |
ec2075e9 | 1204 | generated by GNU Autoconf 2.59. Invocation command line was |
ff66d28f PE |
1205 | |
1206 | $ $0 $@ | |
1207 | ||
1208 | _ACEOF | |
1209 | { | |
1210 | cat <<_ASUNAME | |
1211 | ## --------- ## | |
1212 | ## Platform. ## | |
1213 | ## --------- ## | |
1214 | ||
1215 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1216 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1217 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1218 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1219 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1220 | ||
1221 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1222 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1223 | ||
1224 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1225 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1226 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1227 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1228 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1229 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1230 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1231 | ||
1232 | _ASUNAME | |
1233 | ||
1234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1235 | for as_dir in $PATH | |
1236 | do | |
1237 | IFS=$as_save_IFS | |
1238 | test -z "$as_dir" && as_dir=. | |
1239 | echo "PATH: $as_dir" | |
1240 | done | |
1241 | ||
1242 | } >&5 | |
1243 | ||
1244 | cat >&5 <<_ACEOF | |
1245 | ||
1246 | ||
1247 | ## ----------- ## | |
1248 | ## Core tests. ## | |
1249 | ## ----------- ## | |
1250 | ||
1251 | _ACEOF | |
1252 | ||
1253 | ||
1254 | # Keep a trace of the command line. | |
1255 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1256 | # Strip out --silent because we don't want to record it for future runs. | |
1257 | # Also quote any args containing shell meta-characters. | |
1258 | # Make two passes to allow for proper duplicate-argument suppression. | |
1259 | ac_configure_args= | |
1260 | ac_configure_args0= | |
1261 | ac_configure_args1= | |
1262 | ac_sep= | |
1263 | ac_must_keep_next=false | |
1264 | for ac_pass in 1 2 | |
1265 | do | |
1266 | for ac_arg | |
1267 | do | |
1268 | case $ac_arg in | |
1269 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1270 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1271 | | -silent | --silent | --silen | --sile | --sil) | |
1272 | continue ;; | |
1273 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1274 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1275 | esac | |
1276 | case $ac_pass in | |
1277 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1278 | 2) | |
1279 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1280 | if test $ac_must_keep_next = true; then | |
ec2075e9 | 1281 | ac_must_keep_next=false # Got value, back to normal. |
ff66d28f | 1282 | else |
ec2075e9 BK |
1283 | case $ac_arg in |
1284 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1285 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1286 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1287 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1288 | case "$ac_configure_args0 " in | |
1289 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1290 | esac | |
1291 | ;; | |
1292 | -* ) ac_must_keep_next=true ;; | |
1293 | esac | |
ff66d28f PE |
1294 | fi |
1295 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1296 | # Get rid of the leading space. | |
1297 | ac_sep=" " | |
1298 | ;; | |
1299 | esac | |
1300 | done | |
1301 | done | |
1302 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1303 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1304 | ||
1305 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1306 | # config.log. We remove comments because anyway the quotes in there | |
1307 | # would cause problems or look ugly. | |
1308 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1309 | # such as our DU 5.0 friend, will then `close' the trap. | |
1310 | trap 'exit_status=$? | |
1311 | # Save into config.log some information that might help in debugging. | |
1312 | { | |
1313 | echo | |
1314 | ||
1315 | cat <<\_ASBOX | |
1316 | ## ---------------- ## | |
1317 | ## Cache variables. ## | |
1318 | ## ---------------- ## | |
1319 | _ASBOX | |
1320 | echo | |
1321 | # The following way of writing the cache mishandles newlines in values, | |
1322 | { | |
1323 | (set) 2>&1 | | |
1324 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1325 | *ac_space=\ *) | |
1326 | sed -n \ | |
ec2075e9 BK |
1327 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1328 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
ff66d28f PE |
1329 | ;; |
1330 | *) | |
1331 | sed -n \ | |
ec2075e9 | 1332 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
ff66d28f PE |
1333 | ;; |
1334 | esac; | |
1335 | } | |
1336 | echo | |
1337 | ||
1338 | cat <<\_ASBOX | |
1339 | ## ----------------- ## | |
1340 | ## Output variables. ## | |
1341 | ## ----------------- ## | |
1342 | _ASBOX | |
1343 | echo | |
1344 | for ac_var in $ac_subst_vars | |
1345 | do | |
1346 | eval ac_val=$`echo $ac_var` | |
1347 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1348 | done | sort | |
1349 | echo | |
1350 | ||
1351 | if test -n "$ac_subst_files"; then | |
1352 | cat <<\_ASBOX | |
1353 | ## ------------- ## | |
1354 | ## Output files. ## | |
1355 | ## ------------- ## | |
1356 | _ASBOX | |
1357 | echo | |
1358 | for ac_var in $ac_subst_files | |
1359 | do | |
1360 | eval ac_val=$`echo $ac_var` | |
ec2075e9 | 1361 | echo "$ac_var='"'"'$ac_val'"'"'" |
ff66d28f PE |
1362 | done | sort |
1363 | echo | |
1364 | fi | |
1365 | ||
1366 | if test -s confdefs.h; then | |
1367 | cat <<\_ASBOX | |
1368 | ## ----------- ## | |
1369 | ## confdefs.h. ## | |
1370 | ## ----------- ## | |
1371 | _ASBOX | |
1372 | echo | |
1373 | sed "/^$/d" confdefs.h | sort | |
1374 | echo | |
1375 | fi | |
1376 | test "$ac_signal" != 0 && | |
1377 | echo "$as_me: caught signal $ac_signal" | |
1378 | echo "$as_me: exit $exit_status" | |
1379 | } >&5 | |
ec2075e9 | 1380 | rm -f core *.core && |
ff66d28f PE |
1381 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1382 | exit $exit_status | |
1383 | ' 0 | |
1384 | for ac_signal in 1 2 13 15; do | |
1385 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1386 | done | |
1387 | ac_signal=0 | |
1388 | ||
1389 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1390 | rm -rf conftest* confdefs.h | |
1391 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1392 | echo >confdefs.h | |
1393 | ||
1394 | # Predefined preprocessor variables. | |
1395 | ||
1396 | cat >>confdefs.h <<_ACEOF | |
1397 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1398 | _ACEOF | |
1399 | ||
1400 | ||
1401 | cat >>confdefs.h <<_ACEOF | |
1402 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1403 | _ACEOF | |
1404 | ||
1405 | ||
1406 | cat >>confdefs.h <<_ACEOF | |
1407 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1408 | _ACEOF | |
1409 | ||
b2dad0e3 | 1410 | |
ff66d28f PE |
1411 | cat >>confdefs.h <<_ACEOF |
1412 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1413 | _ACEOF | |
1414 | ||
1415 | ||
1416 | cat >>confdefs.h <<_ACEOF | |
1417 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1418 | _ACEOF | |
1419 | ||
1420 | ||
1421 | # Let the site file select an alternate cache file if it wants to. | |
b2dad0e3 | 1422 | # Prefer explicitly selected file to automatically selected ones. |
a0f27776 PE |
1423 | if test -z "$CONFIG_SITE"; then |
1424 | if test "x$prefix" != xNONE; then | |
1425 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1426 | else | |
1427 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
b2dad0e3 BK |
1428 | fi |
1429 | fi | |
1430 | for ac_site_file in $CONFIG_SITE; do | |
1431 | if test -r "$ac_site_file"; then | |
ff66d28f PE |
1432 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1433 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1434 | sed 's/^/| /' "$ac_site_file" >&5 | |
b2dad0e3 BK |
1435 | . "$ac_site_file" |
1436 | fi | |
1437 | done | |
1438 | ||
1439 | if test -r "$cache_file"; then | |
ff66d28f PE |
1440 | # Some versions of bash will fail to source /dev/null (special |
1441 | # files actually), so we avoid doing that. | |
1442 | if test -f "$cache_file"; then | |
1443 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1444 | echo "$as_me: loading cache $cache_file" >&6;} | |
1445 | case $cache_file in | |
1446 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1447 | *) . ./$cache_file;; | |
1448 | esac | |
1449 | fi | |
b2dad0e3 | 1450 | else |
ff66d28f PE |
1451 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1452 | echo "$as_me: creating cache $cache_file" >&6;} | |
1453 | >$cache_file | |
1454 | fi | |
1455 | ||
1456 | # Check that the precious variables saved in the cache have kept the same | |
1457 | # value. | |
1458 | ac_cache_corrupted=false | |
1459 | for ac_var in `(set) 2>&1 | | |
ec2075e9 | 1460 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
ff66d28f PE |
1461 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1462 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1463 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1464 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1465 | case $ac_old_set,$ac_new_set in | |
1466 | set,) | |
1467 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1468 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1469 | ac_cache_corrupted=: ;; | |
1470 | ,set) | |
1471 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1472 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1473 | ac_cache_corrupted=: ;; | |
1474 | ,);; | |
1475 | *) | |
1476 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ec2075e9 | 1477 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
ff66d28f | 1478 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ec2075e9 | 1479 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
ff66d28f | 1480 | echo "$as_me: former value: $ac_old_val" >&2;} |
ec2075e9 | 1481 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
ff66d28f | 1482 | echo "$as_me: current value: $ac_new_val" >&2;} |
ec2075e9 | 1483 | ac_cache_corrupted=: |
ff66d28f PE |
1484 | fi;; |
1485 | esac | |
1486 | # Pass precious variables to config.status. | |
1487 | if test "$ac_new_set" = set; then | |
1488 | case $ac_new_val in | |
1489 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1490 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1491 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1492 | esac | |
1493 | case " $ac_configure_args " in | |
1494 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1495 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1496 | esac | |
1497 | fi | |
1498 | done | |
1499 | if $ac_cache_corrupted; then | |
1500 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1501 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1502 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1503 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1504 | { (exit 1); exit 1; }; } | |
b2dad0e3 BK |
1505 | fi |
1506 | ||
1507 | ac_ext=c | |
b2dad0e3 | 1508 | ac_cpp='$CPP $CPPFLAGS' |
ff66d28f PE |
1509 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1510 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1511 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b2dad0e3 BK |
1512 | |
1513 | ||
e2c20fae | 1514 | |
6706f116 | 1515 | |
33590f13 BK |
1516 | |
1517 | ||
1518 | ||
aebb8c22 | 1519 | |
aebb8c22 | 1520 | |
ff66d28f PE |
1521 | |
1522 | ||
1523 | ||
1524 | ||
1525 | ||
1526 | ||
1527 | ||
1528 | ||
1529 | ||
1530 | ||
1531 | ||
1532 | ||
1533 | ||
1534 | ||
1535 | ||
1536 | ||
1537 | ||
1538 | ||
1539 | ||
1540 | ac_config_headers="$ac_config_headers config.h" | |
1541 | ||
1542 | ||
1543 | # This works around the fact that libtool configuration may change LD | |
1544 | # for this particular configuration, but some shells, instead of | |
1545 | # keeping the changes in LD private, export them just because LD is | |
1546 | # exported. Only used at the end of this file. | |
1547 | ### am handles this now? ORIGINAL_LD_FOR_MULTILIBS=$LD | |
1548 | ||
1549 | # For libtool versioning info, format is CURRENT:REVISION:AGE | |
5dddb7e5 | 1550 | libtool_VERSION=6:10:0 |
ff66d28f PE |
1551 | |
1552 | ||
1553 | # Find the rest of the source tree framework. | |
076e5443 | 1554 | # Default to --enable-multilib |
ff66d28f PE |
1555 | # Check whether --enable-multilib or --disable-multilib was given. |
1556 | if test "${enable_multilib+set}" = set; then | |
1557 | enableval="$enable_multilib" | |
1558 | case "$enableval" in | |
1559 | yes) multilib=yes ;; | |
1560 | no) multilib=no ;; | |
1561 | *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5 | |
1562 | echo "$as_me: error: bad value $enableval for multilib option" >&2;} | |
1563 | { (exit 1); exit 1; }; } ;; | |
1564 | esac | |
1565 | else | |
1566 | multilib=yes | |
1567 | fi; | |
1568 | ||
1569 | # We may get other options which we leave undocumented: | |
1570 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
1571 | # See config-ml.in if you want the gory details. | |
1572 | ||
1573 | if test "$srcdir" = "."; then | |
1574 | if test "$with_target_subdir" != "."; then | |
1575 | multi_basedir="$srcdir/$with_multisrctop../.." | |
1576 | else | |
1577 | multi_basedir="$srcdir/$with_multisrctop.." | |
1578 | fi | |
1579 | else | |
1580 | multi_basedir="$srcdir/.." | |
1581 | fi | |
1582 | ||
1583 | ||
5b043f08 GK |
1584 | # Even if the default multilib is not a cross compilation, |
1585 | # it may be that some of the other multilibs are. | |
1586 | if test $cross_compiling = no && test $multilib = yes \ | |
1587 | && test "x${with_multisubdir}" != x ; then | |
1588 | cross_compiling=maybe | |
1589 | fi | |
1590 | ||
ff66d28f PE |
1591 | ac_config_commands="$ac_config_commands default-1" |
1592 | ||
1593 | ||
076e5443 PB |
1594 | # Gets build, host, target, *_vendor, *_cpu, *_os, etc. |
1595 | # | |
1596 | # You will slowly go insane if you do not grok the following fact: when | |
1597 | # building v3 as part of the compiler, the top-level /target/ becomes the | |
1598 | # library's /host/. configure then causes --target to default to --host, | |
1599 | # exactly like any other package using autoconf. Therefore, 'target' and | |
1600 | # 'host' will always be the same. This makes sense both for native and | |
1601 | # cross compilers, just think about it for a little while. :-) | |
1602 | # | |
1603 | # Also, if v3 is being configured as part of a cross compiler, the top-level | |
1604 | # configure script will pass the "real" host as $with_cross_host. | |
1605 | # | |
1606 | # Do not delete or change the following two lines. For why, see | |
1607 | # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html | |
1608 | ac_aux_dir= | |
1609 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
ff66d28f PE |
1610 | if test -f $ac_dir/install-sh; then |
1611 | ac_aux_dir=$ac_dir | |
1612 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1613 | break | |
1614 | elif test -f $ac_dir/install.sh; then | |
1615 | ac_aux_dir=$ac_dir | |
b2dad0e3 BK |
1616 | ac_install_sh="$ac_aux_dir/install.sh -c" |
1617 | break | |
ff66d28f PE |
1618 | elif test -f $ac_dir/shtool; then |
1619 | ac_aux_dir=$ac_dir | |
1620 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1621 | break | |
b2dad0e3 BK |
1622 | fi |
1623 | done | |
1624 | if test -z "$ac_aux_dir"; then | |
076e5443 PB |
1625 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
1626 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
ff66d28f | 1627 | { (exit 1); exit 1; }; } |
b2dad0e3 | 1628 | fi |
ff66d28f PE |
1629 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1630 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1631 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1632 | ||
ff66d28f PE |
1633 | # Make sure we can run config.sub. |
1634 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1635 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1636 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1637 | { (exit 1); exit 1; }; } | |
1638 | ||
1639 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1640 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1641 | if test "${ac_cv_build+set}" = set; then | |
1642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1643 | else | |
1644 | ac_cv_build_alias=$build_alias | |
1645 | test -z "$ac_cv_build_alias" && | |
1646 | ac_cv_build_alias=`$ac_config_guess` | |
1647 | test -z "$ac_cv_build_alias" && | |
1648 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1649 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1650 | { (exit 1); exit 1; }; } | |
1651 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1652 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1653 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1654 | { (exit 1); exit 1; }; } | |
1655 | ||
1656 | fi | |
1657 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1658 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1659 | build=$ac_cv_build | |
1660 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1661 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1662 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1663 | ||
1664 | ||
1665 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1666 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1667 | if test "${ac_cv_host+set}" = set; then | |
1668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1669 | else | |
1670 | ac_cv_host_alias=$host_alias | |
1671 | test -z "$ac_cv_host_alias" && | |
1672 | ac_cv_host_alias=$ac_cv_build_alias | |
1673 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1674 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1675 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1676 | { (exit 1); exit 1; }; } | |
1677 | ||
1678 | fi | |
1679 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1680 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1681 | host=$ac_cv_host | |
1682 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1683 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1684 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1685 | ||
1686 | ||
1687 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1688 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1689 | if test "${ac_cv_target+set}" = set; then | |
1690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1691 | else | |
1692 | ac_cv_target_alias=$target_alias | |
1693 | test "x$ac_cv_target_alias" = "x" && | |
1694 | ac_cv_target_alias=$ac_cv_host_alias | |
1695 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1696 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1697 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1698 | { (exit 1); exit 1; }; } | |
1699 | ||
1700 | fi | |
1701 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1702 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1703 | target=$ac_cv_target | |
1704 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1705 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1706 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
b2dad0e3 | 1707 | |
b2dad0e3 BK |
1708 | |
1709 | # The aliases save the names the user supplied, while $host etc. | |
1710 | # will get canonicalized. | |
ff66d28f PE |
1711 | test -n "$target_alias" && |
1712 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1713 | NONENONEs,x,x, && | |
1714 | program_prefix=${target_alias}- | |
1715 | target_alias=${target_alias-$host_alias} | |
1716 | ||
1717 | # Handy for debugging: | |
1718 | #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5 | |
1719 | ||
0df3f383 PE |
1720 | if test "$build" != "$host"; then |
1721 | # We are being configured with some form of cross compiler. | |
1722 | GLIBCXX_IS_NATIVE=false | |
0646b059 GK |
1723 | case "$host","$target" in |
1724 | # Darwin crosses can use the host system's libraries and headers, | |
1725 | # because of the fat library support. Of course, it must be the | |
1726 | # same version of Darwin on both sides. Allow the user to | |
1727 | # just say --target=foo-darwin without a version number to mean | |
1728 | # "the version on this system". | |
1729 | *-*-darwin*,*-*-darwin*) | |
1730 | hostos=`echo $host | sed 's/.*-darwin/darwin/'` | |
1731 | targetos=`echo $target | sed 's/.*-darwin/darwin/'` | |
1732 | if test $hostos = $targetos -o $targetos = darwin ; then | |
1733 | GLIBCXX_IS_NATIVE=true | |
1734 | fi | |
1735 | ;; | |
1736 | ||
1737 | *) | |
3a24bf5d | 1738 | |
0646b059 GK |
1739 | ;; |
1740 | esac | |
0df3f383 PE |
1741 | else |
1742 | GLIBCXX_IS_NATIVE=true | |
1743 | fi | |
1744 | ||
ff66d28f PE |
1745 | # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the |
1746 | # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. | |
1747 | # 1.x: minimum required version | |
1748 | # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch | |
1749 | # of other PACKAGE_* variables will, however, and there's nothing | |
fbe057bb | 1750 | # we can do about that; they come from AC_INIT). |
ff66d28f PE |
1751 | # foreign: we don't follow the normal rules for GNU packages (no COPYING |
1752 | # file in the top srcdir, etc, etc), so stop complaining. | |
1753 | # no-dependencies: turns off auto dependency generation (just for now) | |
2d52e9e3 PE |
1754 | # -Wall: turns on all automake warnings... |
1755 | # -Wno-portability: ...except this one, since GNU make is now required. | |
a60945f8 | 1756 | am__api_version="1.9" |
ff66d28f PE |
1757 | # Find a good install program. We prefer a C program (faster), |
1758 | # so one script is as good as another. But avoid the broken or | |
1759 | # incompatible versions: | |
1760 | # SysV /etc/install, /usr/sbin/install | |
1761 | # SunOS /usr/etc/install | |
1762 | # IRIX /sbin/install | |
1763 | # AIX /bin/install | |
1764 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1765 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1766 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1767 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ec2075e9 | 1768 | # OS/2's system install, which has a completely different semantic |
ff66d28f PE |
1769 | # ./install, which can be erroneously created by make from ./install.sh. |
1770 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
1771 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
1772 | if test -z "$INSTALL"; then | |
1773 | if test "${ac_cv_path_install+set}" = set; then | |
1774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1775 | else | |
1776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1777 | for as_dir in $PATH | |
1778 | do | |
1779 | IFS=$as_save_IFS | |
1780 | test -z "$as_dir" && as_dir=. | |
1781 | # Account for people who put trailing slashes in PATH elements. | |
1782 | case $as_dir/ in | |
1783 | ./ | .// | /cC/* | \ | |
1784 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ec2075e9 | 1785 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
ff66d28f PE |
1786 | /usr/ucb/* ) ;; |
1787 | *) | |
1788 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1789 | # Don't use installbsd from OSF since it installs stuff as root | |
1790 | # by default. | |
1791 | for ac_prog in ginstall scoinst install; do | |
1792 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ec2075e9 BK |
1793 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
1794 | if test $ac_prog = install && | |
1795 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1796 | # AIX install. It has an incompatible calling convention. | |
1797 | : | |
1798 | elif test $ac_prog = install && | |
1799 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1800 | # program-specific install script used by HP pwplus--don't use. | |
1801 | : | |
1802 | else | |
1803 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1804 | break 3 | |
1805 | fi | |
1806 | fi | |
ff66d28f PE |
1807 | done |
1808 | done | |
1809 | ;; | |
b2dad0e3 | 1810 | esac |
ff66d28f | 1811 | done |
b2dad0e3 BK |
1812 | |
1813 | ||
b2dad0e3 | 1814 | fi |
ff66d28f PE |
1815 | if test "${ac_cv_path_install+set}" = set; then |
1816 | INSTALL=$ac_cv_path_install | |
1817 | else | |
1818 | # As a last resort, use the slow shell script. We don't cache a | |
1819 | # path for INSTALL within a source directory, because that will | |
1820 | # break other packages using the cache if that directory is | |
1821 | # removed, or if the path is relative. | |
1822 | INSTALL=$ac_install_sh | |
1823 | fi | |
1824 | fi | |
1825 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
1826 | echo "${ECHO_T}$INSTALL" >&6 | |
b2dad0e3 | 1827 | |
ff66d28f PE |
1828 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
1829 | # It thinks the first close brace ends the variable substitution. | |
1830 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
b2dad0e3 | 1831 | |
ff66d28f | 1832 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
b2dad0e3 | 1833 | |
ff66d28f | 1834 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
b2dad0e3 | 1835 | |
ff66d28f PE |
1836 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
1837 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
1838 | # Just in case | |
1839 | sleep 1 | |
1840 | echo timestamp > conftest.file | |
1841 | # Do `set' in a subshell so we don't clobber the current shell's | |
1842 | # arguments. Must try -L first in case configure is actually a | |
1843 | # symlink; some systems play weird games with the mod time of symlinks | |
1844 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1845 | # directory). | |
1846 | if ( | |
1847 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
1848 | if test "$*" = "X"; then | |
1849 | # -L didn't work. | |
1850 | set X `ls -t $srcdir/configure conftest.file` | |
1851 | fi | |
1852 | rm -f conftest.file | |
1853 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
1854 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
b2dad0e3 | 1855 | |
ff66d28f PE |
1856 | # If neither matched, then we have a broken ls. This can happen |
1857 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1858 | # broken ls alias from the environment. This has actually | |
1859 | # happened. Such a system could not be considered "sane". | |
1860 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
1861 | alias in your environment" >&5 | |
1862 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1863 | alias in your environment" >&2;} | |
1864 | { (exit 1); exit 1; }; } | |
1865 | fi | |
b2dad0e3 | 1866 | |
ff66d28f PE |
1867 | test "$2" = conftest.file |
1868 | ) | |
1869 | then | |
1870 | # Ok. | |
1871 | : | |
33590f13 | 1872 | else |
ff66d28f PE |
1873 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
1874 | Check your system clock" >&5 | |
1875 | echo "$as_me: error: newly created file is older than distributed files! | |
1876 | Check your system clock" >&2;} | |
1877 | { (exit 1); exit 1; }; } | |
33590f13 | 1878 | fi |
ff66d28f PE |
1879 | echo "$as_me:$LINENO: result: yes" >&5 |
1880 | echo "${ECHO_T}yes" >&6 | |
1881 | test "$program_prefix" != NONE && | |
1882 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1883 | # Use a double $ so make ignores it. | |
1884 | test "$program_suffix" != NONE && | |
1885 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1886 | # Double any \ or $. echo might interpret backslashes. | |
1887 | # By default was `s,x,x', remove it if useless. | |
1888 | cat <<\_ACEOF >conftest.sed | |
1889 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1890 | _ACEOF | |
1891 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1892 | rm conftest.sed | |
b2dad0e3 | 1893 | |
ff66d28f PE |
1894 | # expand $ac_aux_dir to an absolute path |
1895 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
33590f13 | 1896 | |
ff66d28f PE |
1897 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
1898 | # Use eval to expand $SHELL | |
1899 | if eval "$MISSING --run true"; then | |
1900 | am_missing_run="$MISSING --run " | |
b2dad0e3 | 1901 | else |
ff66d28f PE |
1902 | am_missing_run= |
1903 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
1904 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
33590f13 BK |
1905 | fi |
1906 | ||
7eaf73d7 | 1907 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
a60945f8 PC |
1908 | # We used to keeping the `.' as first argument, in order to |
1909 | # allow $(mkdir_p) to be used without argument. As in | |
7eaf73d7 | 1910 | # $(mkdir_p) $(somedir) |
a60945f8 PC |
1911 | # where $(somedir) is conditionally defined. However this is wrong |
1912 | # for two reasons: | |
1913 | # 1. if the package is installed by a user who cannot write `.' | |
1914 | # make install will fail, | |
1915 | # 2. the above comment should most certainly read | |
1916 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
1917 | # so it does not work when $(somedir) is undefined and | |
1918 | # $(DESTDIR) is not. | |
1919 | # To support the latter case, we have to write | |
1920 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
1921 | # so the `.' trick is pointless. | |
1922 | mkdir_p='mkdir -p --' | |
7eaf73d7 KC |
1923 | else |
1924 | # On NextStep and OpenStep, the `mkdir' command does not | |
1925 | # recognize any option. It will interpret all options as | |
1926 | # directories to create, and then abort because `.' already | |
1927 | # exists. | |
1928 | for d in ./-p ./--version; | |
1929 | do | |
1930 | test -d $d && rmdir $d | |
1931 | done | |
1932 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
1933 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
1934 | mkdir_p='$(mkinstalldirs)' | |
1935 | else | |
1936 | mkdir_p='$(install_sh) -d' | |
1937 | fi | |
1938 | fi | |
1939 | ||
ff66d28f | 1940 | for ac_prog in gawk mawk nawk awk |
c98b201b | 1941 | do |
ff66d28f | 1942 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
c98b201b | 1943 | set dummy $ac_prog; ac_word=$2 |
ff66d28f PE |
1944 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1945 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1946 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1947 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c98b201b PE |
1948 | else |
1949 | if test -n "$AWK"; then | |
1950 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1951 | else | |
ff66d28f PE |
1952 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1953 | for as_dir in $PATH | |
1954 | do | |
1955 | IFS=$as_save_IFS | |
1956 | test -z "$as_dir" && as_dir=. | |
1957 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1958 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1959 | ac_cv_prog_AWK="$ac_prog" | |
1960 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1961 | break 2 | |
1962 | fi | |
1963 | done | |
1964 | done | |
1965 | ||
c98b201b PE |
1966 | fi |
1967 | fi | |
ff66d28f | 1968 | AWK=$ac_cv_prog_AWK |
c98b201b | 1969 | if test -n "$AWK"; then |
ff66d28f PE |
1970 | echo "$as_me:$LINENO: result: $AWK" >&5 |
1971 | echo "${ECHO_T}$AWK" >&6 | |
c98b201b | 1972 | else |
ff66d28f PE |
1973 | echo "$as_me:$LINENO: result: no" >&5 |
1974 | echo "${ECHO_T}no" >&6 | |
c98b201b PE |
1975 | fi |
1976 | ||
ff66d28f | 1977 | test -n "$AWK" && break |
c98b201b PE |
1978 | done |
1979 | ||
ff66d28f PE |
1980 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
1981 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ec2075e9 | 1982 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
ff66d28f PE |
1983 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
1984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1985 | else | |
1986 | cat >conftest.make <<\_ACEOF | |
1987 | all: | |
1988 | @echo 'ac_maketemp="$(MAKE)"' | |
1989 | _ACEOF | |
1990 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1991 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1992 | if test -n "$ac_maketemp"; then | |
1993 | eval ac_cv_prog_make_${ac_make}_set=yes | |
33590f13 | 1994 | else |
ff66d28f | 1995 | eval ac_cv_prog_make_${ac_make}_set=no |
33590f13 | 1996 | fi |
ff66d28f | 1997 | rm -f conftest.make |
33590f13 | 1998 | fi |
ff66d28f PE |
1999 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
2000 | echo "$as_me:$LINENO: result: yes" >&5 | |
2001 | echo "${ECHO_T}yes" >&6 | |
2002 | SET_MAKE= | |
33590f13 | 2003 | else |
ff66d28f PE |
2004 | echo "$as_me:$LINENO: result: no" >&5 |
2005 | echo "${ECHO_T}no" >&6 | |
2006 | SET_MAKE="MAKE=${MAKE-make}" | |
33590f13 BK |
2007 | fi |
2008 | ||
ff66d28f PE |
2009 | rm -rf .tst 2>/dev/null |
2010 | mkdir .tst 2>/dev/null | |
2011 | if test -d .tst; then | |
2012 | am__leading_dot=. | |
2013 | else | |
2014 | am__leading_dot=_ | |
2015 | fi | |
2016 | rmdir .tst 2>/dev/null | |
33590f13 | 2017 | |
7eaf73d7 | 2018 | # test to see if srcdir already configured |
ff66d28f PE |
2019 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
2020 | test -f $srcdir/config.status; then | |
2021 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
2022 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
2023 | { (exit 1); exit 1; }; } | |
33590f13 BK |
2024 | fi |
2025 | ||
ff66d28f PE |
2026 | # test whether we have cygpath |
2027 | if test -z "$CYGPATH_W"; then | |
2028 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2029 | CYGPATH_W='cygpath -w' | |
2030 | else | |
2031 | CYGPATH_W=echo | |
2032 | fi | |
33590f13 BK |
2033 | fi |
2034 | ||
2035 | ||
ff66d28f | 2036 | # Define the identity of the package. |
fbe057bb | 2037 | PACKAGE='libstdc++' |
ff66d28f | 2038 | VERSION='version-unused' |
b731048b BK |
2039 | |
2040 | ||
ff66d28f | 2041 | # Some tools Automake needs. |
33590f13 | 2042 | |
ff66d28f | 2043 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
33590f13 | 2044 | |
33590f13 | 2045 | |
ff66d28f | 2046 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
33590f13 | 2047 | |
ff66d28f PE |
2048 | |
2049 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2050 | ||
2051 | ||
2052 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2053 | ||
2054 | ||
2055 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2056 | ||
ff66d28f PE |
2057 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
2058 | ||
2059 | # Installed binaries are usually stripped using `strip' when the user | |
2060 | # run `make install-strip'. However `strip' might not be the right | |
2061 | # tool to use in cross-compilation environments, therefore Automake | |
2062 | # will honor the `STRIP' environment variable to overrule this program. | |
2063 | if test "$cross_compiling" != no; then | |
2064 | if test -n "$ac_tool_prefix"; then | |
2065 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2066 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2067 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2068 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2069 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
2070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33590f13 | 2071 | else |
ff66d28f PE |
2072 | if test -n "$STRIP"; then |
2073 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
33590f13 | 2074 | else |
ff66d28f PE |
2075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2076 | for as_dir in $PATH | |
2077 | do | |
2078 | IFS=$as_save_IFS | |
2079 | test -z "$as_dir" && as_dir=. | |
2080 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2081 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2082 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2083 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2084 | break 2 | |
2085 | fi | |
2086 | done | |
2087 | done | |
2088 | ||
33590f13 BK |
2089 | fi |
2090 | fi | |
ff66d28f PE |
2091 | STRIP=$ac_cv_prog_STRIP |
2092 | if test -n "$STRIP"; then | |
2093 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2094 | echo "${ECHO_T}$STRIP" >&6 | |
33590f13 | 2095 | else |
ff66d28f PE |
2096 | echo "$as_me:$LINENO: result: no" >&5 |
2097 | echo "${ECHO_T}no" >&6 | |
33590f13 BK |
2098 | fi |
2099 | ||
ff66d28f PE |
2100 | fi |
2101 | if test -z "$ac_cv_prog_STRIP"; then | |
2102 | ac_ct_STRIP=$STRIP | |
2103 | # Extract the first word of "strip", so it can be a program name with args. | |
2104 | set dummy strip; ac_word=$2 | |
2105 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2106 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2107 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33590f13 | 2109 | else |
ff66d28f PE |
2110 | if test -n "$ac_ct_STRIP"; then |
2111 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
33590f13 | 2112 | else |
ff66d28f PE |
2113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2114 | for as_dir in $PATH | |
2115 | do | |
2116 | IFS=$as_save_IFS | |
2117 | test -z "$as_dir" && as_dir=. | |
2118 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2119 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2120 | ac_cv_prog_ac_ct_STRIP="strip" | |
2121 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2122 | break 2 | |
b2dad0e3 | 2123 | fi |
ff66d28f PE |
2124 | done |
2125 | done | |
2126 | ||
2127 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
b2dad0e3 BK |
2128 | fi |
2129 | fi | |
ff66d28f PE |
2130 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
2131 | if test -n "$ac_ct_STRIP"; then | |
2132 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2133 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
b2dad0e3 | 2134 | else |
ff66d28f PE |
2135 | echo "$as_me:$LINENO: result: no" >&5 |
2136 | echo "${ECHO_T}no" >&6 | |
b2dad0e3 BK |
2137 | fi |
2138 | ||
ff66d28f | 2139 | STRIP=$ac_ct_STRIP |
b2dad0e3 | 2140 | else |
ff66d28f | 2141 | STRIP="$ac_cv_prog_STRIP" |
b2dad0e3 | 2142 | fi |
ff66d28f | 2143 | |
b2dad0e3 | 2144 | fi |
ff66d28f | 2145 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
b2dad0e3 | 2146 | |
ff66d28f PE |
2147 | # We need awk for the "check" target. The system "awk" is bad on |
2148 | # some platforms. | |
a60945f8 PC |
2149 | # Always define AMTAR for backward compatibility. |
2150 | ||
2151 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2152 | ||
2153 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2154 | ||
2155 | ||
b2dad0e3 | 2156 | |
b2dad0e3 | 2157 | |
b2dad0e3 | 2158 | |
ff66d28f | 2159 | |
3a24bf5d KC |
2160 | |
2161 | ||
2162 | ||
2163 | ||
ff66d28f PE |
2164 | # Runs configure.host, finds CC, CXX, and assorted other critical bits. Sets |
2165 | # up critical shell variables. | |
2166 | ||
464aea98 JM |
2167 | ac_ext=c |
2168 | ac_cpp='$CPP $CPPFLAGS' | |
2169 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2170 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2171 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2172 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
2173 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
2174 | # On Suns, sometimes $CPP names a directory. | |
2175 | if test -n "$CPP" && test -d "$CPP"; then | |
2176 | CPP= | |
2177 | fi | |
2178 | if test -z "$CPP"; then | |
2179 | if test "${ac_cv_prog_CPP+set}" = set; then | |
2180 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2181 | else | |
2182 | # Double quotes because CPP needs to be expanded | |
2183 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2184 | do | |
2185 | ac_preproc_ok=false | |
2186 | for ac_c_preproc_warn_flag in '' yes | |
2187 | do | |
2188 | # Use a header file that comes with gcc, so configuring glibc | |
2189 | # with a fresh cross-compiler works. | |
2190 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2191 | # <limits.h> exists even on freestanding compilers. | |
2192 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2193 | # not just through cpp. "Syntax error" is here to catch this case. | |
2194 | cat >conftest.$ac_ext <<_ACEOF | |
2195 | /* confdefs.h. */ | |
2196 | _ACEOF | |
2197 | cat confdefs.h >>conftest.$ac_ext | |
2198 | cat >>conftest.$ac_ext <<_ACEOF | |
2199 | /* end confdefs.h. */ | |
2200 | #ifdef __STDC__ | |
2201 | # include <limits.h> | |
2202 | #else | |
2203 | # include <assert.h> | |
2204 | #endif | |
2205 | Syntax error | |
2206 | _ACEOF | |
2207 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2208 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2209 | ac_status=$? | |
2210 | grep -v '^ *+' conftest.er1 >conftest.err | |
2211 | rm -f conftest.er1 | |
2212 | cat conftest.err >&5 | |
2213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2214 | (exit $ac_status); } >/dev/null; then | |
2215 | if test -s conftest.err; then | |
2216 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2217 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2218 | else | |
2219 | ac_cpp_err= | |
2220 | fi | |
2221 | else | |
2222 | ac_cpp_err=yes | |
2223 | fi | |
2224 | if test -z "$ac_cpp_err"; then | |
2225 | : | |
2226 | else | |
2227 | echo "$as_me: failed program was:" >&5 | |
2228 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2229 | ||
2230 | # Broken: fails on valid input. | |
2231 | continue | |
2232 | fi | |
2233 | rm -f conftest.err conftest.$ac_ext | |
2234 | ||
2235 | # OK, works on sane cases. Now check whether non-existent headers | |
2236 | # can be detected and how. | |
2237 | cat >conftest.$ac_ext <<_ACEOF | |
2238 | /* confdefs.h. */ | |
2239 | _ACEOF | |
2240 | cat confdefs.h >>conftest.$ac_ext | |
2241 | cat >>conftest.$ac_ext <<_ACEOF | |
2242 | /* end confdefs.h. */ | |
2243 | #include <ac_nonexistent.h> | |
2244 | _ACEOF | |
2245 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2246 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2247 | ac_status=$? | |
2248 | grep -v '^ *+' conftest.er1 >conftest.err | |
2249 | rm -f conftest.er1 | |
2250 | cat conftest.err >&5 | |
2251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2252 | (exit $ac_status); } >/dev/null; then | |
2253 | if test -s conftest.err; then | |
2254 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2255 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2256 | else | |
2257 | ac_cpp_err= | |
2258 | fi | |
2259 | else | |
2260 | ac_cpp_err=yes | |
2261 | fi | |
2262 | if test -z "$ac_cpp_err"; then | |
2263 | # Broken: success on invalid input. | |
2264 | continue | |
2265 | else | |
2266 | echo "$as_me: failed program was:" >&5 | |
2267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2268 | ||
2269 | # Passes both tests. | |
2270 | ac_preproc_ok=: | |
2271 | break | |
2272 | fi | |
2273 | rm -f conftest.err conftest.$ac_ext | |
2274 | ||
2275 | done | |
2276 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2277 | rm -f conftest.err conftest.$ac_ext | |
2278 | if $ac_preproc_ok; then | |
2279 | break | |
2280 | fi | |
2281 | ||
2282 | done | |
2283 | ac_cv_prog_CPP=$CPP | |
2284 | ||
2285 | fi | |
2286 | CPP=$ac_cv_prog_CPP | |
2287 | else | |
2288 | ac_cv_prog_CPP=$CPP | |
2289 | fi | |
2290 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
2291 | echo "${ECHO_T}$CPP" >&6 | |
2292 | ac_preproc_ok=false | |
2293 | for ac_c_preproc_warn_flag in '' yes | |
2294 | do | |
2295 | # Use a header file that comes with gcc, so configuring glibc | |
2296 | # with a fresh cross-compiler works. | |
2297 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2298 | # <limits.h> exists even on freestanding compilers. | |
2299 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2300 | # not just through cpp. "Syntax error" is here to catch this case. | |
2301 | cat >conftest.$ac_ext <<_ACEOF | |
2302 | /* confdefs.h. */ | |
2303 | _ACEOF | |
2304 | cat confdefs.h >>conftest.$ac_ext | |
2305 | cat >>conftest.$ac_ext <<_ACEOF | |
2306 | /* end confdefs.h. */ | |
2307 | #ifdef __STDC__ | |
2308 | # include <limits.h> | |
2309 | #else | |
2310 | # include <assert.h> | |
2311 | #endif | |
2312 | Syntax error | |
2313 | _ACEOF | |
2314 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2315 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2316 | ac_status=$? | |
2317 | grep -v '^ *+' conftest.er1 >conftest.err | |
2318 | rm -f conftest.er1 | |
2319 | cat conftest.err >&5 | |
2320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2321 | (exit $ac_status); } >/dev/null; then | |
2322 | if test -s conftest.err; then | |
2323 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2324 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2325 | else | |
2326 | ac_cpp_err= | |
2327 | fi | |
2328 | else | |
2329 | ac_cpp_err=yes | |
2330 | fi | |
2331 | if test -z "$ac_cpp_err"; then | |
2332 | : | |
2333 | else | |
2334 | echo "$as_me: failed program was:" >&5 | |
2335 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2336 | ||
2337 | # Broken: fails on valid input. | |
2338 | continue | |
2339 | fi | |
2340 | rm -f conftest.err conftest.$ac_ext | |
2341 | ||
2342 | # OK, works on sane cases. Now check whether non-existent headers | |
2343 | # can be detected and how. | |
2344 | cat >conftest.$ac_ext <<_ACEOF | |
2345 | /* confdefs.h. */ | |
2346 | _ACEOF | |
2347 | cat confdefs.h >>conftest.$ac_ext | |
2348 | cat >>conftest.$ac_ext <<_ACEOF | |
2349 | /* end confdefs.h. */ | |
2350 | #include <ac_nonexistent.h> | |
2351 | _ACEOF | |
2352 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2353 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2354 | ac_status=$? | |
2355 | grep -v '^ *+' conftest.er1 >conftest.err | |
2356 | rm -f conftest.er1 | |
2357 | cat conftest.err >&5 | |
2358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2359 | (exit $ac_status); } >/dev/null; then | |
2360 | if test -s conftest.err; then | |
2361 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2362 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2363 | else | |
2364 | ac_cpp_err= | |
2365 | fi | |
2366 | else | |
2367 | ac_cpp_err=yes | |
2368 | fi | |
2369 | if test -z "$ac_cpp_err"; then | |
2370 | # Broken: success on invalid input. | |
2371 | continue | |
2372 | else | |
2373 | echo "$as_me: failed program was:" >&5 | |
2374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2375 | ||
2376 | # Passes both tests. | |
2377 | ac_preproc_ok=: | |
2378 | break | |
2379 | fi | |
2380 | rm -f conftest.err conftest.$ac_ext | |
2381 | ||
2382 | done | |
2383 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2384 | rm -f conftest.err conftest.$ac_ext | |
2385 | if $ac_preproc_ok; then | |
2386 | : | |
2387 | else | |
2388 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
2389 | See \`config.log' for more details." >&5 | |
2390 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
2391 | See \`config.log' for more details." >&2;} | |
2392 | { (exit 1); exit 1; }; } | |
2393 | fi | |
2394 | ||
2395 | ac_ext=c | |
2396 | ac_cpp='$CPP $CPPFLAGS' | |
2397 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2398 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2399 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2400 | ||
2401 | ||
2402 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
2403 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
2404 | if test "${ac_cv_prog_egrep+set}" = set; then | |
2405 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2406 | else | |
2407 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
2408 | then ac_cv_prog_egrep='grep -E' | |
2409 | else ac_cv_prog_egrep='egrep' | |
2410 | fi | |
2411 | fi | |
2412 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
2413 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
2414 | EGREP=$ac_cv_prog_egrep | |
2415 | ||
2416 | ||
2417 | ||
82ba99d5 PE |
2418 | # Keep these sync'd with the list in Makefile.am. The first provides an |
2419 | # expandable list at autoconf time; the second provides an expandable list | |
2420 | # (i.e., shell variable) at configure time. | |
2421 | ||
2422 | SUBDIRS='include libmath libsupc++ src po testsuite' | |
2423 | ||
ff66d28f PE |
2424 | # These need to be absolute paths, yet at the same time need to |
2425 | # canonicalize only relative paths, because then amd will not unmount | |
2426 | # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd. | |
2427 | glibcxx_builddir=`${PWDCMD-pwd}` | |
2428 | case $srcdir in | |
2429 | \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;; | |
2430 | *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;; | |
2431 | esac | |
2432 | toplevel_srcdir=${glibcxx_srcdir}/.. | |
2433 | ||
2434 | ||
2435 | ||
2436 | ||
2437 | # We use these options to decide which functions to include. They are | |
2438 | # set from the top level. | |
2439 | ||
2440 | # Check whether --with-target-subdir or --without-target-subdir was given. | |
2441 | if test "${with_target_subdir+set}" = set; then | |
2442 | withval="$with_target_subdir" | |
2443 | ||
2444 | fi; | |
2445 | ||
2446 | ||
2447 | # Check whether --with-cross-host or --without-cross-host was given. | |
2448 | if test "${with_cross_host+set}" = set; then | |
2449 | withval="$with_cross_host" | |
2450 | ||
2451 | fi; | |
2452 | ||
2453 | ||
2454 | # Check whether --with-newlib or --without-newlib was given. | |
2455 | if test "${with_newlib+set}" = set; then | |
2456 | withval="$with_newlib" | |
2457 | ||
2458 | fi; | |
2459 | ||
f6dda651 PE |
2460 | # We're almost certainly being configured before anything else which uses |
2461 | # C++, so all of our AC_PROG_* discoveries will be cached. It's vital that | |
2462 | # we not cache the value of CXX that we "discover" here, because it's set | |
2463 | # to something unique for us and libjava. Other target libraries need to | |
2464 | # find CXX for themselves. We yank the rug out from under the normal AC_* | |
2465 | # process by sneakily renaming the cache variable. This also lets us debug | |
2466 | # the value of "our" CXX in postmortems. | |
2467 | # | |
2468 | # We must also force CXX to /not/ be a precious variable, otherwise the | |
2469 | # wrong (non-multilib-adjusted) value will be used in multilibs. This | |
2470 | # little trick also affects CPPFLAGS, CXXFLAGS, and LDFLAGS. And as a side | |
2471 | # effect, CXXFLAGS is no longer automagically subst'd, so we have to do | |
2472 | # that ourselves. Un-preciousing AC_PROG_CC also affects CC and CFLAGS. | |
2473 | # | |
2474 | # -fno-builtin must be present here so that a non-conflicting form of | |
2475 | # std::exit can be guessed by AC_PROG_CXX, and used in later tests. | |
2476 | ||
2477 | ||
2478 | ||
2479 | ||
2480 | save_CXXFLAGS="$CXXFLAGS" | |
2481 | CXXFLAGS="$CXXFLAGS -fno-builtin" | |
ff66d28f PE |
2482 | ac_ext=c |
2483 | ac_cpp='$CPP $CPPFLAGS' | |
2484 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2485 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2486 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2487 | if test -n "$ac_tool_prefix"; then | |
2488 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2489 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2490 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2491 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2492 | if test "${ac_cv_prog_CC+set}" = set; then | |
2493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 | 2494 | else |
ff66d28f PE |
2495 | if test -n "$CC"; then |
2496 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
b2dad0e3 | 2497 | else |
ff66d28f PE |
2498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2499 | for as_dir in $PATH | |
2500 | do | |
2501 | IFS=$as_save_IFS | |
2502 | test -z "$as_dir" && as_dir=. | |
2503 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2504 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2505 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2506 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2507 | break 2 | |
2508 | fi | |
2509 | done | |
2510 | done | |
2511 | ||
b2dad0e3 BK |
2512 | fi |
2513 | fi | |
ff66d28f PE |
2514 | CC=$ac_cv_prog_CC |
2515 | if test -n "$CC"; then | |
2516 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2517 | echo "${ECHO_T}$CC" >&6 | |
b2dad0e3 | 2518 | else |
ff66d28f PE |
2519 | echo "$as_me:$LINENO: result: no" >&5 |
2520 | echo "${ECHO_T}no" >&6 | |
b2dad0e3 BK |
2521 | fi |
2522 | ||
ff66d28f PE |
2523 | fi |
2524 | if test -z "$ac_cv_prog_CC"; then | |
2525 | ac_ct_CC=$CC | |
2526 | # Extract the first word of "gcc", so it can be a program name with args. | |
2527 | set dummy gcc; ac_word=$2 | |
2528 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2529 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2530 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 | 2532 | else |
ff66d28f PE |
2533 | if test -n "$ac_ct_CC"; then |
2534 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
b2dad0e3 | 2535 | else |
ff66d28f PE |
2536 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2537 | for as_dir in $PATH | |
2538 | do | |
2539 | IFS=$as_save_IFS | |
2540 | test -z "$as_dir" && as_dir=. | |
2541 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2542 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2543 | ac_cv_prog_ac_ct_CC="gcc" | |
2544 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2545 | break 2 | |
2546 | fi | |
2547 | done | |
2548 | done | |
2549 | ||
b2dad0e3 BK |
2550 | fi |
2551 | fi | |
ff66d28f PE |
2552 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2553 | if test -n "$ac_ct_CC"; then | |
2554 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2555 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
b2dad0e3 | 2556 | else |
ff66d28f PE |
2557 | echo "$as_me:$LINENO: result: no" >&5 |
2558 | echo "${ECHO_T}no" >&6 | |
b2dad0e3 | 2559 | fi |
b2dad0e3 | 2560 | |
ff66d28f PE |
2561 | CC=$ac_ct_CC |
2562 | else | |
2563 | CC="$ac_cv_prog_CC" | |
b2dad0e3 BK |
2564 | fi |
2565 | ||
ff66d28f PE |
2566 | if test -z "$CC"; then |
2567 | if test -n "$ac_tool_prefix"; then | |
2568 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2569 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2570 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2571 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2572 | if test "${ac_cv_prog_CC+set}" = set; then | |
2573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2574 | else | |
2575 | if test -n "$CC"; then | |
2576 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2577 | else | |
2578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2579 | for as_dir in $PATH | |
2580 | do | |
2581 | IFS=$as_save_IFS | |
2582 | test -z "$as_dir" && as_dir=. | |
2583 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2584 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2585 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2586 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2587 | break 2 | |
b2dad0e3 | 2588 | fi |
ff66d28f PE |
2589 | done |
2590 | done | |
93b85586 | 2591 | |
ff66d28f PE |
2592 | fi |
2593 | fi | |
2594 | CC=$ac_cv_prog_CC | |
2595 | if test -n "$CC"; then | |
2596 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2597 | echo "${ECHO_T}$CC" >&6 | |
974e336b | 2598 | else |
ff66d28f PE |
2599 | echo "$as_me:$LINENO: result: no" >&5 |
2600 | echo "${ECHO_T}no" >&6 | |
2601 | fi | |
974e336b | 2602 | |
974e336b | 2603 | fi |
ff66d28f PE |
2604 | if test -z "$ac_cv_prog_CC"; then |
2605 | ac_ct_CC=$CC | |
2606 | # Extract the first word of "cc", so it can be a program name with args. | |
2607 | set dummy cc; ac_word=$2 | |
2608 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2609 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2610 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2612 | else | |
2613 | if test -n "$ac_ct_CC"; then | |
2614 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2615 | else | |
2616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2617 | for as_dir in $PATH | |
2618 | do | |
2619 | IFS=$as_save_IFS | |
2620 | test -z "$as_dir" && as_dir=. | |
2621 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2622 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2623 | ac_cv_prog_ac_ct_CC="cc" | |
2624 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2625 | break 2 | |
2626 | fi | |
2627 | done | |
2628 | done | |
33590f13 | 2629 | |
974e336b | 2630 | fi |
ff66d28f PE |
2631 | fi |
2632 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2633 | if test -n "$ac_ct_CC"; then | |
2634 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2635 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
33590f13 | 2636 | else |
ff66d28f PE |
2637 | echo "$as_me:$LINENO: result: no" >&5 |
2638 | echo "${ECHO_T}no" >&6 | |
33590f13 BK |
2639 | fi |
2640 | ||
ff66d28f PE |
2641 | CC=$ac_ct_CC |
2642 | else | |
2643 | CC="$ac_cv_prog_CC" | |
2644 | fi | |
33590f13 | 2645 | |
ff66d28f PE |
2646 | fi |
2647 | if test -z "$CC"; then | |
2648 | # Extract the first word of "cc", so it can be a program name with args. | |
2649 | set dummy cc; ac_word=$2 | |
2650 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2651 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2652 | if test "${ac_cv_prog_CC+set}" = set; then | |
2653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 | 2654 | else |
ff66d28f PE |
2655 | if test -n "$CC"; then |
2656 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
b2dad0e3 | 2657 | else |
ff66d28f PE |
2658 | ac_prog_rejected=no |
2659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2660 | for as_dir in $PATH | |
2661 | do | |
2662 | IFS=$as_save_IFS | |
2663 | test -z "$as_dir" && as_dir=. | |
2664 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2665 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2666 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2667 | ac_prog_rejected=yes | |
2668 | continue | |
2669 | fi | |
2670 | ac_cv_prog_CC="cc" | |
2671 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2672 | break 2 | |
2673 | fi | |
2674 | done | |
2675 | done | |
2676 | ||
2677 | if test $ac_prog_rejected = yes; then | |
2678 | # We found a bogon in the path, so make sure we never use it. | |
2679 | set dummy $ac_cv_prog_CC | |
2680 | shift | |
2681 | if test $# != 0; then | |
2682 | # We chose a different compiler from the bogus one. | |
2683 | # However, it has the same basename, so the bogon will be chosen | |
2684 | # first if we set CC to just the basename; use the full file name. | |
2685 | shift | |
2686 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2687 | fi | |
b2dad0e3 BK |
2688 | fi |
2689 | fi | |
ff66d28f PE |
2690 | fi |
2691 | CC=$ac_cv_prog_CC | |
2692 | if test -n "$CC"; then | |
2693 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2694 | echo "${ECHO_T}$CC" >&6 | |
b2dad0e3 | 2695 | else |
ff66d28f PE |
2696 | echo "$as_me:$LINENO: result: no" >&5 |
2697 | echo "${ECHO_T}no" >&6 | |
b2dad0e3 BK |
2698 | fi |
2699 | ||
ff66d28f PE |
2700 | fi |
2701 | if test -z "$CC"; then | |
2702 | if test -n "$ac_tool_prefix"; then | |
2703 | for ac_prog in cl | |
2704 | do | |
2705 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2706 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2707 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2708 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2709 | if test "${ac_cv_prog_CC+set}" = set; then | |
2710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 | 2711 | else |
ff66d28f PE |
2712 | if test -n "$CC"; then |
2713 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
b2dad0e3 | 2714 | else |
ff66d28f PE |
2715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2716 | for as_dir in $PATH | |
2717 | do | |
2718 | IFS=$as_save_IFS | |
2719 | test -z "$as_dir" && as_dir=. | |
2720 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2721 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2722 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2723 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2724 | break 2 | |
2725 | fi | |
2726 | done | |
2727 | done | |
2728 | ||
b2dad0e3 BK |
2729 | fi |
2730 | fi | |
ff66d28f PE |
2731 | CC=$ac_cv_prog_CC |
2732 | if test -n "$CC"; then | |
2733 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2734 | echo "${ECHO_T}$CC" >&6 | |
b2dad0e3 | 2735 | else |
ff66d28f PE |
2736 | echo "$as_me:$LINENO: result: no" >&5 |
2737 | echo "${ECHO_T}no" >&6 | |
b2dad0e3 BK |
2738 | fi |
2739 | ||
ff66d28f PE |
2740 | test -n "$CC" && break |
2741 | done | |
2742 | fi | |
2743 | if test -z "$CC"; then | |
2744 | ac_ct_CC=$CC | |
2745 | for ac_prog in cl | |
2746 | do | |
2747 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2748 | set dummy $ac_prog; ac_word=$2 | |
2749 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2750 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2751 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 | 2753 | else |
ff66d28f PE |
2754 | if test -n "$ac_ct_CC"; then |
2755 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
b2dad0e3 | 2756 | else |
ff66d28f PE |
2757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2758 | for as_dir in $PATH | |
2759 | do | |
2760 | IFS=$as_save_IFS | |
2761 | test -z "$as_dir" && as_dir=. | |
2762 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2763 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2764 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2765 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2766 | break 2 | |
2767 | fi | |
2768 | done | |
2769 | done | |
2770 | ||
b2dad0e3 BK |
2771 | fi |
2772 | fi | |
ff66d28f PE |
2773 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2774 | if test -n "$ac_ct_CC"; then | |
2775 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2776 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
b2dad0e3 | 2777 | else |
ff66d28f PE |
2778 | echo "$as_me:$LINENO: result: no" >&5 |
2779 | echo "${ECHO_T}no" >&6 | |
b2dad0e3 BK |
2780 | fi |
2781 | ||
ff66d28f PE |
2782 | test -n "$ac_ct_CC" && break |
2783 | done | |
b2dad0e3 | 2784 | |
ff66d28f PE |
2785 | CC=$ac_ct_CC |
2786 | fi | |
2787 | ||
2788 | fi | |
2789 | ||
2790 | ||
2791 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2792 | See \`config.log' for more details." >&5 | |
2793 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2794 | See \`config.log' for more details." >&2;} | |
2795 | { (exit 1); exit 1; }; } | |
2796 | ||
2797 | # Provide some information about the compiler. | |
2798 | echo "$as_me:$LINENO:" \ | |
2799 | "checking for C compiler version" >&5 | |
2800 | ac_compiler=`set X $ac_compile; echo $2` | |
2801 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2802 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2803 | ac_status=$? | |
2804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2805 | (exit $ac_status); } | |
2806 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2807 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2808 | ac_status=$? | |
2809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2810 | (exit $ac_status); } | |
2811 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2812 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2813 | ac_status=$? | |
2814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2815 | (exit $ac_status); } | |
2816 | ||
2817 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
2818 | /* confdefs.h. */ |
2819 | _ACEOF | |
2820 | cat confdefs.h >>conftest.$ac_ext | |
2821 | cat >>conftest.$ac_ext <<_ACEOF | |
2822 | /* end confdefs.h. */ | |
2823 | ||
3a24bf5d KC |
2824 | int |
2825 | main () | |
2826 | { | |
2827 | ||
2828 | ; | |
2829 | return 0; | |
2830 | } | |
2831 | _ACEOF | |
2832 | # FIXME: Cleanup? | |
2833 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2834 | (eval $ac_link) 2>&5 | |
2835 | ac_status=$? | |
2836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2837 | (exit $ac_status); }; then | |
2838 | gcc_no_link=no | |
2839 | else | |
2840 | gcc_no_link=yes | |
2841 | fi | |
2842 | ||
2843 | if test x$gcc_no_link = xyes; then | |
2844 | # Setting cross_compile will disable run tests; it will | |
2845 | # also disable AC_CHECK_FILE but that's generally | |
2846 | # correct if we can't link. | |
2847 | cross_compiling=yes | |
2848 | EXEEXT= | |
2849 | else | |
2850 | cat >conftest.$ac_ext <<_ACEOF | |
2851 | /* confdefs.h. */ | |
2852 | _ACEOF | |
2853 | cat confdefs.h >>conftest.$ac_ext | |
2854 | cat >>conftest.$ac_ext <<_ACEOF | |
2855 | /* end confdefs.h. */ | |
2856 | ||
ff66d28f PE |
2857 | int |
2858 | main () | |
2859 | { | |
2860 | ||
2861 | ; | |
2862 | return 0; | |
2863 | } | |
2864 | _ACEOF | |
2865 | ac_clean_files_save=$ac_clean_files | |
2866 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2867 | # Try to create an executable without -o first, disregard a.out. | |
2868 | # It will help us diagnose broken compilers, and finding out an intuition | |
2869 | # of exeext. | |
ec2075e9 BK |
2870 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2871 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
ff66d28f PE |
2872 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2873 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
2874 | (eval $ac_link_default) 2>&5 | |
2875 | ac_status=$? | |
2876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2877 | (exit $ac_status); }; then | |
2878 | # Find the output, starting from the most likely. This scheme is | |
2879 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2880 | # resort. | |
2881 | ||
2882 | # Be careful to initialize this variable, since it used to be cached. | |
2883 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2884 | ac_cv_exeext= | |
2885 | # b.out is created by i960 compilers. | |
2886 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
2887 | do | |
2888 | test -f "$ac_file" || continue | |
2889 | case $ac_file in | |
2890 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ec2075e9 | 2891 | ;; |
ff66d28f | 2892 | conftest.$ac_ext ) |
ec2075e9 BK |
2893 | # This is the source file. |
2894 | ;; | |
ff66d28f | 2895 | [ab].out ) |
ec2075e9 BK |
2896 | # We found the default executable, but exeext='' is most |
2897 | # certainly right. | |
2898 | break;; | |
ff66d28f | 2899 | *.* ) |
ec2075e9 BK |
2900 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2901 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
2902 | # but it would be cool to find out if it's true. Does anybody | |
2903 | # maintain Libtool? --akim. | |
2904 | export ac_cv_exeext | |
2905 | break;; | |
ff66d28f | 2906 | * ) |
ec2075e9 | 2907 | break;; |
ff66d28f PE |
2908 | esac |
2909 | done | |
b2dad0e3 | 2910 | else |
ff66d28f PE |
2911 | echo "$as_me: failed program was:" >&5 |
2912 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2913 | ||
2914 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2915 | See \`config.log' for more details." >&5 | |
2916 | echo "$as_me: error: C compiler cannot create executables | |
2917 | See \`config.log' for more details." >&2;} | |
2918 | { (exit 77); exit 77; }; } | |
2919 | fi | |
2920 | ||
2921 | ac_exeext=$ac_cv_exeext | |
2922 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2923 | echo "${ECHO_T}$ac_file" >&6 | |
2924 | ||
2925 | # Check the compiler produces executables we can run. If not, either | |
2926 | # the compiler is broken, or we cross compile. | |
2927 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2928 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2929 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2930 | # If not cross compiling, check that we can run a simple program. | |
2931 | if test "$cross_compiling" != yes; then | |
2932 | if { ac_try='./$ac_file' | |
2933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2934 | (eval $ac_try) 2>&5 | |
2935 | ac_status=$? | |
2936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2937 | (exit $ac_status); }; }; then | |
2938 | cross_compiling=no | |
2939 | else | |
2940 | if test "$cross_compiling" = maybe; then | |
2941 | cross_compiling=yes | |
2942 | else | |
2943 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2944 | If you meant to cross compile, use \`--host'. | |
2945 | See \`config.log' for more details." >&5 | |
2946 | echo "$as_me: error: cannot run C compiled programs. | |
2947 | If you meant to cross compile, use \`--host'. | |
2948 | See \`config.log' for more details." >&2;} | |
2949 | { (exit 1); exit 1; }; } | |
b2dad0e3 | 2950 | fi |
ff66d28f | 2951 | fi |
b2dad0e3 | 2952 | fi |
ff66d28f PE |
2953 | echo "$as_me:$LINENO: result: yes" >&5 |
2954 | echo "${ECHO_T}yes" >&6 | |
2955 | ||
2956 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2957 | ac_clean_files=$ac_clean_files_save | |
2958 | # Check the compiler produces executables we can run. If not, either | |
2959 | # the compiler is broken, or we cross compile. | |
2960 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2961 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2962 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2963 | echo "${ECHO_T}$cross_compiling" >&6 | |
2964 | ||
2965 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2966 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2967 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2968 | (eval $ac_link) 2>&5 | |
2969 | ac_status=$? | |
2970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2971 | (exit $ac_status); }; then | |
2972 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2973 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2974 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2975 | # `rm'. | |
2976 | for ac_file in conftest.exe conftest conftest.*; do | |
2977 | test -f "$ac_file" || continue | |
2978 | case $ac_file in | |
2979 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
2980 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ec2075e9 BK |
2981 | export ac_cv_exeext |
2982 | break;; | |
ff66d28f PE |
2983 | * ) break;; |
2984 | esac | |
2985 | done | |
b2dad0e3 | 2986 | else |
ff66d28f PE |
2987 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2988 | See \`config.log' for more details." >&5 | |
2989 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2990 | See \`config.log' for more details." >&2;} | |
2991 | { (exit 1); exit 1; }; } | |
b2dad0e3 BK |
2992 | fi |
2993 | ||
ff66d28f PE |
2994 | rm -f conftest$ac_cv_exeext |
2995 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2996 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2997 | ||
2998 | rm -f conftest.$ac_ext | |
2999 | EXEEXT=$ac_cv_exeext | |
3000 | ac_exeext=$EXEEXT | |
3a24bf5d | 3001 | fi |
ff66d28f PE |
3002 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3003 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
3004 | if test "${ac_cv_objext+set}" = set; then | |
3005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3006 | else | |
3007 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
3008 | /* confdefs.h. */ |
3009 | _ACEOF | |
3010 | cat confdefs.h >>conftest.$ac_ext | |
3011 | cat >>conftest.$ac_ext <<_ACEOF | |
3012 | /* end confdefs.h. */ | |
3013 | ||
3014 | int | |
3015 | main () | |
3016 | { | |
3017 | ||
3018 | ; | |
3019 | return 0; | |
3020 | } | |
3021 | _ACEOF | |
3022 | rm -f conftest.o conftest.obj | |
3023 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3024 | (eval $ac_compile) 2>&5 | |
3025 | ac_status=$? | |
3026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3027 | (exit $ac_status); }; then | |
3028 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
3029 | case $ac_file in | |
3030 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
3031 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3032 | break;; | |
3033 | esac | |
3034 | done | |
b2dad0e3 | 3035 | else |
ff66d28f PE |
3036 | echo "$as_me: failed program was:" >&5 |
3037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3038 | ||
3039 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
3040 | See \`config.log' for more details." >&5 | |
3041 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
3042 | See \`config.log' for more details." >&2;} | |
3043 | { (exit 1); exit 1; }; } | |
46840bcd | 3044 | fi |
ff66d28f PE |
3045 | |
3046 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
46840bcd | 3047 | fi |
ff66d28f PE |
3048 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3049 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
3050 | OBJEXT=$ac_cv_objext | |
3051 | ac_objext=$OBJEXT | |
3052 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
3053 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
3054 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
3055 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3056 | else | |
3057 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
3058 | /* confdefs.h. */ |
3059 | _ACEOF | |
3060 | cat confdefs.h >>conftest.$ac_ext | |
3061 | cat >>conftest.$ac_ext <<_ACEOF | |
3062 | /* end confdefs.h. */ | |
46840bcd | 3063 | |
ff66d28f PE |
3064 | int |
3065 | main () | |
3066 | { | |
3067 | #ifndef __GNUC__ | |
3068 | choke me | |
3069 | #endif | |
3070 | ||
3071 | ; | |
3072 | return 0; | |
3073 | } | |
3074 | _ACEOF | |
3075 | rm -f conftest.$ac_objext | |
3076 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 3077 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 3078 | ac_status=$? |
ec2075e9 BK |
3079 | grep -v '^ *+' conftest.er1 >conftest.err |
3080 | rm -f conftest.er1 | |
3081 | cat conftest.err >&5 | |
ff66d28f PE |
3082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3083 | (exit $ac_status); } && | |
5b043f08 GK |
3084 | { ac_try='test -z "$ac_c_werror_flag" |
3085 | || test ! -s conftest.err' | |
ec2075e9 BK |
3086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3087 | (eval $ac_try) 2>&5 | |
3088 | ac_status=$? | |
3089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3090 | (exit $ac_status); }; } && | |
3091 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
3092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3093 | (eval $ac_try) 2>&5 | |
3094 | ac_status=$? | |
3095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3096 | (exit $ac_status); }; }; then | |
3097 | ac_compiler_gnu=yes | |
3098 | else | |
3099 | echo "$as_me: failed program was:" >&5 | |
3100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3101 | ||
3102 | ac_compiler_gnu=no | |
3103 | fi | |
ec2075e9 | 3104 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f PE |
3105 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3106 | ||
3107 | fi | |
3108 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
3109 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
3110 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
3111 | ac_test_CFLAGS=${CFLAGS+set} | |
3112 | ac_save_CFLAGS=$CFLAGS | |
3113 | CFLAGS="-g" | |
3114 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
3115 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
3116 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
3117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3118 | else | |
3119 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
3120 | /* confdefs.h. */ |
3121 | _ACEOF | |
3122 | cat confdefs.h >>conftest.$ac_ext | |
3123 | cat >>conftest.$ac_ext <<_ACEOF | |
3124 | /* end confdefs.h. */ | |
3125 | ||
3126 | int | |
3127 | main () | |
3128 | { | |
3129 | ||
3130 | ; | |
3131 | return 0; | |
3132 | } | |
3133 | _ACEOF | |
3134 | rm -f conftest.$ac_objext | |
3135 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 3136 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 3137 | ac_status=$? |
ec2075e9 BK |
3138 | grep -v '^ *+' conftest.er1 >conftest.err |
3139 | rm -f conftest.er1 | |
3140 | cat conftest.err >&5 | |
ff66d28f PE |
3141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3142 | (exit $ac_status); } && | |
5b043f08 GK |
3143 | { ac_try='test -z "$ac_c_werror_flag" |
3144 | || test ! -s conftest.err' | |
ec2075e9 BK |
3145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3146 | (eval $ac_try) 2>&5 | |
3147 | ac_status=$? | |
3148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3149 | (exit $ac_status); }; } && | |
3150 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
3151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3152 | (eval $ac_try) 2>&5 | |
3153 | ac_status=$? | |
3154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3155 | (exit $ac_status); }; }; then | |
3156 | ac_cv_prog_cc_g=yes | |
b2dad0e3 | 3157 | else |
ff66d28f PE |
3158 | echo "$as_me: failed program was:" >&5 |
3159 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b2dad0e3 | 3160 | |
ff66d28f | 3161 | ac_cv_prog_cc_g=no |
b2dad0e3 | 3162 | fi |
ec2075e9 | 3163 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f PE |
3164 | fi |
3165 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
3166 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
3167 | if test "$ac_test_CFLAGS" = set; then | |
3168 | CFLAGS=$ac_save_CFLAGS | |
3169 | elif test $ac_cv_prog_cc_g = yes; then | |
3170 | if test "$GCC" = yes; then | |
3171 | CFLAGS="-g -O2" | |
b2dad0e3 | 3172 | else |
ff66d28f | 3173 | CFLAGS="-g" |
b2dad0e3 | 3174 | fi |
ff66d28f PE |
3175 | else |
3176 | if test "$GCC" = yes; then | |
3177 | CFLAGS="-O2" | |
3178 | else | |
3179 | CFLAGS= | |
3180 | fi | |
3181 | fi | |
3182 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
3183 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
3184 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
3185 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3186 | else | |
3187 | ac_cv_prog_cc_stdc=no | |
3188 | ac_save_CC=$CC | |
3189 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
3190 | /* confdefs.h. */ |
3191 | _ACEOF | |
3192 | cat confdefs.h >>conftest.$ac_ext | |
3193 | cat >>conftest.$ac_ext <<_ACEOF | |
3194 | /* end confdefs.h. */ | |
3195 | #include <stdarg.h> | |
3196 | #include <stdio.h> | |
3197 | #include <sys/types.h> | |
3198 | #include <sys/stat.h> | |
3199 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3200 | struct buf { int x; }; | |
3201 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3202 | static char *e (p, i) | |
3203 | char **p; | |
3204 | int i; | |
3205 | { | |
3206 | return p[i]; | |
3207 | } | |
3208 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3209 | { | |
3210 | char *s; | |
3211 | va_list v; | |
3212 | va_start (v,p); | |
3213 | s = g (p, va_arg (v,int)); | |
3214 | va_end (v); | |
3215 | return s; | |
3216 | } | |
ec2075e9 BK |
3217 | |
3218 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3219 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3220 | These don't provoke an error unfortunately, instead are silently treated | |
3221 | as 'x'. The following induces an error, until -std1 is added to get | |
3222 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3223 | array size at least. It's necessary to write '\x00'==0 to get something | |
3224 | that's true only with -std1. */ | |
3225 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3226 | ||
ff66d28f PE |
3227 | int test (int i, double x); |
3228 | struct s1 {int (*f) (int a);}; | |
3229 | struct s2 {int (*f) (double a);}; | |
3230 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3231 | int argc; | |
3232 | char **argv; | |
3233 | int | |
3234 | main () | |
3235 | { | |
3236 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3237 | ; | |
3238 | return 0; | |
3239 | } | |
3240 | _ACEOF | |
3241 | # Don't try gcc -ansi; that turns off useful extensions and | |
3242 | # breaks some systems' header files. | |
3243 | # AIX -qlanglvl=ansi | |
3244 | # Ultrix and OSF/1 -std1 | |
3245 | # HP-UX 10.20 and later -Ae | |
3246 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3247 | # SVR4 -Xc -D__EXTENSIONS__ | |
3248 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3249 | do | |
3250 | CC="$ac_save_CC $ac_arg" | |
3251 | rm -f conftest.$ac_objext | |
3252 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 3253 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 3254 | ac_status=$? |
ec2075e9 BK |
3255 | grep -v '^ *+' conftest.er1 >conftest.err |
3256 | rm -f conftest.er1 | |
3257 | cat conftest.err >&5 | |
ff66d28f PE |
3258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3259 | (exit $ac_status); } && | |
5b043f08 GK |
3260 | { ac_try='test -z "$ac_c_werror_flag" |
3261 | || test ! -s conftest.err' | |
ec2075e9 BK |
3262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3263 | (eval $ac_try) 2>&5 | |
3264 | ac_status=$? | |
3265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3266 | (exit $ac_status); }; } && | |
3267 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
3268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3269 | (eval $ac_try) 2>&5 | |
3270 | ac_status=$? | |
3271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3272 | (exit $ac_status); }; }; then | |
3273 | ac_cv_prog_cc_stdc=$ac_arg | |
3274 | break | |
3275 | else | |
3276 | echo "$as_me: failed program was:" >&5 | |
3277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3278 | ||
b2dad0e3 | 3279 | fi |
ec2075e9 | 3280 | rm -f conftest.err conftest.$ac_objext |
ff66d28f PE |
3281 | done |
3282 | rm -f conftest.$ac_ext conftest.$ac_objext | |
3283 | CC=$ac_save_CC | |
b2dad0e3 | 3284 | |
ff66d28f | 3285 | fi |
b2dad0e3 | 3286 | |
ff66d28f PE |
3287 | case "x$ac_cv_prog_cc_stdc" in |
3288 | x|xno) | |
3289 | echo "$as_me:$LINENO: result: none needed" >&5 | |
3290 | echo "${ECHO_T}none needed" >&6 ;; | |
3291 | *) | |
3292 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
3293 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
3294 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
3295 | esac | |
b2dad0e3 | 3296 | |
ff66d28f PE |
3297 | # Some people use a C++ compiler to compile C. Since we use `exit', |
3298 | # in C++ we need to declare it. In case someone uses the same compiler | |
3299 | # for both compiling C and C++ we need to have the C++ compiler decide | |
3300 | # the declaration of exit, since it's the most demanding environment. | |
3301 | cat >conftest.$ac_ext <<_ACEOF | |
3302 | #ifndef __cplusplus | |
3303 | choke me | |
3304 | #endif | |
3305 | _ACEOF | |
3306 | rm -f conftest.$ac_objext | |
3307 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 3308 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 3309 | ac_status=$? |
ec2075e9 BK |
3310 | grep -v '^ *+' conftest.er1 >conftest.err |
3311 | rm -f conftest.er1 | |
3312 | cat conftest.err >&5 | |
ff66d28f PE |
3313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3314 | (exit $ac_status); } && | |
5b043f08 GK |
3315 | { ac_try='test -z "$ac_c_werror_flag" |
3316 | || test ! -s conftest.err' | |
ec2075e9 BK |
3317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3318 | (eval $ac_try) 2>&5 | |
3319 | ac_status=$? | |
3320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3321 | (exit $ac_status); }; } && | |
3322 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
3323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3324 | (eval $ac_try) 2>&5 | |
3325 | ac_status=$? | |
3326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3327 | (exit $ac_status); }; }; then | |
3328 | for ac_declaration in \ | |
ec2075e9 | 3329 | '' \ |
ff66d28f PE |
3330 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
3331 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3332 | 'extern "C" void exit (int) throw ();' \ | |
3333 | 'extern "C" void exit (int);' \ | |
3334 | 'void exit (int);' | |
3335 | do | |
3336 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
3337 | /* confdefs.h. */ |
3338 | _ACEOF | |
3339 | cat confdefs.h >>conftest.$ac_ext | |
3340 | cat >>conftest.$ac_ext <<_ACEOF | |
3341 | /* end confdefs.h. */ | |
158960ba | 3342 | $ac_declaration |
ec2075e9 | 3343 | #include <stdlib.h> |
ff66d28f PE |
3344 | int |
3345 | main () | |
3346 | { | |
3347 | exit (42); | |
3348 | ; | |
3349 | return 0; | |
3350 | } | |
3351 | _ACEOF | |
3352 | rm -f conftest.$ac_objext | |
3353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 3354 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 3355 | ac_status=$? |
ec2075e9 BK |
3356 | grep -v '^ *+' conftest.er1 >conftest.err |
3357 | rm -f conftest.er1 | |
3358 | cat conftest.err >&5 | |
ff66d28f PE |
3359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3360 | (exit $ac_status); } && | |
5b043f08 GK |
3361 | { ac_try='test -z "$ac_c_werror_flag" |
3362 | || test ! -s conftest.err' | |
ec2075e9 BK |
3363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3364 | (eval $ac_try) 2>&5 | |
3365 | ac_status=$? | |
3366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3367 | (exit $ac_status); }; } && | |
3368 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
3369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3370 | (eval $ac_try) 2>&5 | |
3371 | ac_status=$? | |
3372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3373 | (exit $ac_status); }; }; then | |
3374 | : | |
3375 | else | |
3376 | echo "$as_me: failed program was:" >&5 | |
3377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b2dad0e3 | 3378 | |
ff66d28f PE |
3379 | continue |
3380 | fi | |
ec2075e9 | 3381 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f | 3382 | cat >conftest.$ac_ext <<_ACEOF |
ff66d28f PE |
3383 | /* confdefs.h. */ |
3384 | _ACEOF | |
3385 | cat confdefs.h >>conftest.$ac_ext | |
3386 | cat >>conftest.$ac_ext <<_ACEOF | |
3387 | /* end confdefs.h. */ | |
3388 | $ac_declaration | |
3389 | int | |
3390 | main () | |
3391 | { | |
3392 | exit (42); | |
3393 | ; | |
3394 | return 0; | |
3395 | } | |
3396 | _ACEOF | |
3397 | rm -f conftest.$ac_objext | |
3398 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 3399 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 3400 | ac_status=$? |
ec2075e9 BK |
3401 | grep -v '^ *+' conftest.er1 >conftest.err |
3402 | rm -f conftest.er1 | |
3403 | cat conftest.err >&5 | |
ff66d28f PE |
3404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3405 | (exit $ac_status); } && | |
5b043f08 GK |
3406 | { ac_try='test -z "$ac_c_werror_flag" |
3407 | || test ! -s conftest.err' | |
ec2075e9 BK |
3408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3409 | (eval $ac_try) 2>&5 | |
3410 | ac_status=$? | |
3411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3412 | (exit $ac_status); }; } && | |
3413 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
3414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3415 | (eval $ac_try) 2>&5 | |
3416 | ac_status=$? | |
3417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3418 | (exit $ac_status); }; }; then | |
3419 | break | |
3420 | else | |
3421 | echo "$as_me: failed program was:" >&5 | |
3422 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3423 | ||
3424 | fi | |
ec2075e9 | 3425 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f PE |
3426 | done |
3427 | rm -f conftest* | |
3428 | if test -n "$ac_declaration"; then | |
3429 | echo '#ifdef __cplusplus' >>confdefs.h | |
3430 | echo $ac_declaration >>confdefs.h | |
3431 | echo '#endif' >>confdefs.h | |
3432 | fi | |
b2dad0e3 | 3433 | |
b2dad0e3 | 3434 | else |
ff66d28f PE |
3435 | echo "$as_me: failed program was:" >&5 |
3436 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3437 | ||
b2dad0e3 | 3438 | fi |
ec2075e9 | 3439 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f PE |
3440 | ac_ext=c |
3441 | ac_cpp='$CPP $CPPFLAGS' | |
3442 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3443 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3444 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3445 | ||
ff66d28f PE |
3446 | ac_ext=cc |
3447 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3448 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3449 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3450 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3451 | if test -n "$ac_tool_prefix"; then | |
3452 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
3453 | do | |
3454 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3455 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3456 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3457 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3458 | if test "${glibcxx_cv_prog_CXX+set}" = set; then | |
3459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3460 | else | |
3461 | if test -n "$CXX"; then | |
3462 | glibcxx_cv_prog_CXX="$CXX" # Let the user override the test. | |
3463 | else | |
3464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3465 | for as_dir in $PATH | |
3466 | do | |
3467 | IFS=$as_save_IFS | |
3468 | test -z "$as_dir" && as_dir=. | |
3469 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3470 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3471 | glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
3472 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3473 | break 2 | |
3474 | fi | |
3475 | done | |
3476 | done | |
3477 | ||
3478 | fi | |
3479 | fi | |
3480 | CXX=$glibcxx_cv_prog_CXX | |
3481 | if test -n "$CXX"; then | |
3482 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
3483 | echo "${ECHO_T}$CXX" >&6 | |
b2dad0e3 | 3484 | else |
ff66d28f PE |
3485 | echo "$as_me:$LINENO: result: no" >&5 |
3486 | echo "${ECHO_T}no" >&6 | |
b2dad0e3 | 3487 | fi |
b2dad0e3 | 3488 | |
ff66d28f PE |
3489 | test -n "$CXX" && break |
3490 | done | |
3491 | fi | |
3492 | if test -z "$CXX"; then | |
3493 | ac_ct_CXX=$CXX | |
3494 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
3495 | do | |
3496 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3497 | set dummy $ac_prog; ac_word=$2 | |
3498 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3499 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3500 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
3501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3502 | else | |
3503 | if test -n "$ac_ct_CXX"; then | |
3504 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
3505 | else | |
3506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3507 | for as_dir in $PATH | |
3508 | do | |
3509 | IFS=$as_save_IFS | |
3510 | test -z "$as_dir" && as_dir=. | |
3511 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3512 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3513 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
3514 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3515 | break 2 | |
b2dad0e3 | 3516 | fi |
ff66d28f PE |
3517 | done |
3518 | done | |
3519 | ||
b2dad0e3 | 3520 | fi |
ff66d28f PE |
3521 | fi |
3522 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
3523 | if test -n "$ac_ct_CXX"; then | |
3524 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
3525 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
3526 | else | |
3527 | echo "$as_me:$LINENO: result: no" >&5 | |
3528 | echo "${ECHO_T}no" >&6 | |
b2dad0e3 BK |
3529 | fi |
3530 | ||
ff66d28f PE |
3531 | test -n "$ac_ct_CXX" && break |
3532 | done | |
3533 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
3534 | ||
3535 | CXX=$ac_ct_CXX | |
3536 | fi | |
3537 | ||
3538 | ||
3539 | # Provide some information about the compiler. | |
3540 | echo "$as_me:$LINENO:" \ | |
3541 | "checking for C++ compiler version" >&5 | |
3542 | ac_compiler=`set X $ac_compile; echo $2` | |
3543 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
3544 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
3545 | ac_status=$? | |
3546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3547 | (exit $ac_status); } | |
3548 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
3549 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
3550 | ac_status=$? | |
3551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3552 | (exit $ac_status); } | |
3553 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
3554 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
3555 | ac_status=$? | |
3556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3557 | (exit $ac_status); } | |
3558 | ||
3559 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
3560 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
3561 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
3562 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3563 | else | |
3564 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
3565 | /* confdefs.h. */ |
3566 | _ACEOF | |
3567 | cat confdefs.h >>conftest.$ac_ext | |
3568 | cat >>conftest.$ac_ext <<_ACEOF | |
3569 | /* end confdefs.h. */ | |
3570 | ||
3571 | int | |
3572 | main () | |
3573 | { | |
3574 | #ifndef __GNUC__ | |
3575 | choke me | |
3576 | #endif | |
3577 | ||
3578 | ; | |
3579 | return 0; | |
3580 | } | |
3581 | _ACEOF | |
3582 | rm -f conftest.$ac_objext | |
3583 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 3584 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 3585 | ac_status=$? |
ec2075e9 BK |
3586 | grep -v '^ *+' conftest.er1 >conftest.err |
3587 | rm -f conftest.er1 | |
3588 | cat conftest.err >&5 | |
ff66d28f PE |
3589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3590 | (exit $ac_status); } && | |
5b043f08 GK |
3591 | { ac_try='test -z "$ac_cxx_werror_flag" |
3592 | || test ! -s conftest.err' | |
ec2075e9 BK |
3593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3594 | (eval $ac_try) 2>&5 | |
3595 | ac_status=$? | |
3596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3597 | (exit $ac_status); }; } && | |
3598 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
3599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3600 | (eval $ac_try) 2>&5 | |
3601 | ac_status=$? | |
3602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3603 | (exit $ac_status); }; }; then | |
3604 | ac_compiler_gnu=yes | |
3605 | else | |
3606 | echo "$as_me: failed program was:" >&5 | |
3607 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3608 | ||
3609 | ac_compiler_gnu=no | |
3610 | fi | |
ec2075e9 | 3611 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f PE |
3612 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
3613 | ||
3614 | fi | |
3615 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
3616 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
3617 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
3618 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
3619 | ac_save_CXXFLAGS=$CXXFLAGS | |
3620 | CXXFLAGS="-g" | |
3621 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
3622 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
3623 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
3624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3625 | else | |
3626 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
3627 | /* confdefs.h. */ |
3628 | _ACEOF | |
3629 | cat confdefs.h >>conftest.$ac_ext | |
3630 | cat >>conftest.$ac_ext <<_ACEOF | |
3631 | /* end confdefs.h. */ | |
3632 | ||
3633 | int | |
3634 | main () | |
3635 | { | |
b2dad0e3 | 3636 | |
ff66d28f PE |
3637 | ; |
3638 | return 0; | |
3639 | } | |
3640 | _ACEOF | |
3641 | rm -f conftest.$ac_objext | |
3642 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 3643 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 3644 | ac_status=$? |
ec2075e9 BK |
3645 | grep -v '^ *+' conftest.er1 >conftest.err |
3646 | rm -f conftest.er1 | |
3647 | cat conftest.err >&5 | |
ff66d28f PE |
3648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3649 | (exit $ac_status); } && | |
5b043f08 GK |
3650 | { ac_try='test -z "$ac_cxx_werror_flag" |
3651 | || test ! -s conftest.err' | |
ec2075e9 BK |
3652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3653 | (eval $ac_try) 2>&5 | |
3654 | ac_status=$? | |
3655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3656 | (exit $ac_status); }; } && | |
3657 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
3658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3659 | (eval $ac_try) 2>&5 | |
3660 | ac_status=$? | |
3661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3662 | (exit $ac_status); }; }; then | |
3663 | ac_cv_prog_cxx_g=yes | |
3664 | else | |
3665 | echo "$as_me: failed program was:" >&5 | |
3666 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3667 | ||
3668 | ac_cv_prog_cxx_g=no | |
3669 | fi | |
ec2075e9 | 3670 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f PE |
3671 | fi |
3672 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
3673 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
3674 | if test "$ac_test_CXXFLAGS" = set; then | |
3675 | CXXFLAGS=$ac_save_CXXFLAGS | |
3676 | elif test $ac_cv_prog_cxx_g = yes; then | |
3677 | if test "$GXX" = yes; then | |
3678 | CXXFLAGS="-g -O2" | |
3679 | else | |
3680 | CXXFLAGS="-g" | |
3681 | fi | |
3682 | else | |
3683 | if test "$GXX" = yes; then | |
3684 | CXXFLAGS="-O2" | |
3685 | else | |
3686 | CXXFLAGS= | |
5780a46b | 3687 | fi |
ff66d28f PE |
3688 | fi |
3689 | for ac_declaration in \ | |
ec2075e9 | 3690 | '' \ |
ff66d28f PE |
3691 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
3692 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3693 | 'extern "C" void exit (int) throw ();' \ | |
3694 | 'extern "C" void exit (int);' \ | |
3695 | 'void exit (int);' | |
3696 | do | |
3697 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
3698 | /* confdefs.h. */ |
3699 | _ACEOF | |
3700 | cat confdefs.h >>conftest.$ac_ext | |
3701 | cat >>conftest.$ac_ext <<_ACEOF | |
3702 | /* end confdefs.h. */ | |
158960ba | 3703 | $ac_declaration |
ec2075e9 | 3704 | #include <stdlib.h> |
ff66d28f PE |
3705 | int |
3706 | main () | |
3707 | { | |
3708 | exit (42); | |
3709 | ; | |
3710 | return 0; | |
3711 | } | |
3712 | _ACEOF | |
3713 | rm -f conftest.$ac_objext | |
3714 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 3715 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 3716 | ac_status=$? |
ec2075e9 BK |
3717 | grep -v '^ *+' conftest.er1 >conftest.err |
3718 | rm -f conftest.er1 | |
3719 | cat conftest.err >&5 | |
ff66d28f PE |
3720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3721 | (exit $ac_status); } && | |
5b043f08 GK |
3722 | { ac_try='test -z "$ac_cxx_werror_flag" |
3723 | || test ! -s conftest.err' | |
ec2075e9 BK |
3724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3725 | (eval $ac_try) 2>&5 | |
3726 | ac_status=$? | |
3727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3728 | (exit $ac_status); }; } && | |
3729 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
3730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3731 | (eval $ac_try) 2>&5 | |
3732 | ac_status=$? | |
3733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3734 | (exit $ac_status); }; }; then | |
3735 | : | |
3736 | else | |
3737 | echo "$as_me: failed program was:" >&5 | |
3738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b2dad0e3 | 3739 | |
ff66d28f PE |
3740 | continue |
3741 | fi | |
ec2075e9 | 3742 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f | 3743 | cat >conftest.$ac_ext <<_ACEOF |
ff66d28f PE |
3744 | /* confdefs.h. */ |
3745 | _ACEOF | |
3746 | cat confdefs.h >>conftest.$ac_ext | |
3747 | cat >>conftest.$ac_ext <<_ACEOF | |
3748 | /* end confdefs.h. */ | |
3749 | $ac_declaration | |
3750 | int | |
3751 | main () | |
3752 | { | |
3753 | exit (42); | |
3754 | ; | |
3755 | return 0; | |
3756 | } | |
3757 | _ACEOF | |
3758 | rm -f conftest.$ac_objext | |
3759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 3760 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 3761 | ac_status=$? |
ec2075e9 BK |
3762 | grep -v '^ *+' conftest.er1 >conftest.err |
3763 | rm -f conftest.er1 | |
3764 | cat conftest.err >&5 | |
ff66d28f PE |
3765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3766 | (exit $ac_status); } && | |
5b043f08 GK |
3767 | { ac_try='test -z "$ac_cxx_werror_flag" |
3768 | || test ! -s conftest.err' | |
ec2075e9 BK |
3769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3770 | (eval $ac_try) 2>&5 | |
3771 | ac_status=$? | |
3772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3773 | (exit $ac_status); }; } && | |
3774 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
3775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3776 | (eval $ac_try) 2>&5 | |
3777 | ac_status=$? | |
3778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3779 | (exit $ac_status); }; }; then | |
3780 | break | |
3781 | else | |
3782 | echo "$as_me: failed program was:" >&5 | |
3783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3784 | ||
3785 | fi | |
ec2075e9 | 3786 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f PE |
3787 | done |
3788 | rm -f conftest* | |
3789 | if test -n "$ac_declaration"; then | |
3790 | echo '#ifdef __cplusplus' >>confdefs.h | |
3791 | echo $ac_declaration >>confdefs.h | |
3792 | echo '#endif' >>confdefs.h | |
3793 | fi | |
3840fa2a | 3794 | |
ff66d28f PE |
3795 | ac_ext=c |
3796 | ac_cpp='$CPP $CPPFLAGS' | |
3797 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3798 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3799 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16da539b | 3800 | |
ff66d28f | 3801 | CXXFLAGS="$save_CXXFLAGS" |
d0941a31 PE |
3802 | |
3803 | ||
33590f13 | 3804 | |
f6dda651 | 3805 | |
ff66d28f PE |
3806 | # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't |
3807 | # available). Uncomment the next line to force a particular method. | |
3808 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
3809 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
3810 | LN_S=$as_ln_s | |
3811 | if test "$LN_S" = "ln -s"; then | |
3812 | echo "$as_me:$LINENO: result: yes" >&5 | |
3813 | echo "${ECHO_T}yes" >&6 | |
2f235b6d | 3814 | else |
ff66d28f PE |
3815 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3816 | echo "${ECHO_T}no, using $LN_S" >&6 | |
2f235b6d | 3817 | fi |
2f235b6d | 3818 | |
ff66d28f | 3819 | #LN_S='cp -p' |
2f235b6d | 3820 | |
ff66d28f PE |
3821 | if test -n "$ac_tool_prefix"; then |
3822 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
3823 | set dummy ${ac_tool_prefix}as; ac_word=$2 | |
3824 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3825 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3826 | if test "${ac_cv_prog_AS+set}" = set; then | |
3827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2f235b6d | 3828 | else |
ff66d28f PE |
3829 | if test -n "$AS"; then |
3830 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
2f235b6d | 3831 | else |
ff66d28f PE |
3832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3833 | for as_dir in $PATH | |
3834 | do | |
3835 | IFS=$as_save_IFS | |
3836 | test -z "$as_dir" && as_dir=. | |
3837 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3838 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3839 | ac_cv_prog_AS="${ac_tool_prefix}as" | |
3840 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3841 | break 2 | |
3842 | fi | |
3843 | done | |
3844 | done | |
3845 | ||
2f235b6d | 3846 | fi |
2f235b6d | 3847 | fi |
ff66d28f PE |
3848 | AS=$ac_cv_prog_AS |
3849 | if test -n "$AS"; then | |
3850 | echo "$as_me:$LINENO: result: $AS" >&5 | |
3851 | echo "${ECHO_T}$AS" >&6 | |
2f235b6d | 3852 | else |
ff66d28f PE |
3853 | echo "$as_me:$LINENO: result: no" >&5 |
3854 | echo "${ECHO_T}no" >&6 | |
2f235b6d PE |
3855 | fi |
3856 | ||
ff66d28f PE |
3857 | fi |
3858 | if test -z "$ac_cv_prog_AS"; then | |
3859 | ac_ct_AS=$AS | |
3860 | # Extract the first word of "as", so it can be a program name with args. | |
3861 | set dummy as; ac_word=$2 | |
3862 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3863 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3864 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then | |
3865 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3866 | else | |
3867 | if test -n "$ac_ct_AS"; then | |
3868 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | |
3869 | else | |
3870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3871 | for as_dir in $PATH | |
3872 | do | |
3873 | IFS=$as_save_IFS | |
3874 | test -z "$as_dir" && as_dir=. | |
3875 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3876 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3877 | ac_cv_prog_ac_ct_AS="as" | |
3878 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3879 | break 2 | |
3880 | fi | |
3881 | done | |
3882 | done | |
2f235b6d | 3883 | |
ff66d28f PE |
3884 | fi |
3885 | fi | |
3886 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | |
3887 | if test -n "$ac_ct_AS"; then | |
3888 | echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 | |
3889 | echo "${ECHO_T}$ac_ct_AS" >&6 | |
3890 | else | |
3891 | echo "$as_me:$LINENO: result: no" >&5 | |
3892 | echo "${ECHO_T}no" >&6 | |
3893 | fi | |
2f235b6d | 3894 | |
ff66d28f PE |
3895 | AS=$ac_ct_AS |
3896 | else | |
3897 | AS="$ac_cv_prog_AS" | |
2f235b6d | 3898 | fi |
2f235b6d | 3899 | |
ff66d28f PE |
3900 | if test -n "$ac_tool_prefix"; then |
3901 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
3902 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
3903 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3904 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3905 | if test "${ac_cv_prog_AR+set}" = set; then | |
3906 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3907 | else | |
3908 | if test -n "$AR"; then | |
3909 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
3910 | else | |
3911 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3912 | for as_dir in $PATH | |
3913 | do | |
3914 | IFS=$as_save_IFS | |
3915 | test -z "$as_dir" && as_dir=. | |
3916 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3917 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3918 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
3919 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3920 | break 2 | |
3921 | fi | |
3922 | done | |
3923 | done | |
2f235b6d | 3924 | |
ff66d28f PE |
3925 | fi |
3926 | fi | |
3927 | AR=$ac_cv_prog_AR | |
3928 | if test -n "$AR"; then | |
3929 | echo "$as_me:$LINENO: result: $AR" >&5 | |
3930 | echo "${ECHO_T}$AR" >&6 | |
3931 | else | |
3932 | echo "$as_me:$LINENO: result: no" >&5 | |
3933 | echo "${ECHO_T}no" >&6 | |
3934 | fi | |
2f235b6d | 3935 | |
ff66d28f PE |
3936 | fi |
3937 | if test -z "$ac_cv_prog_AR"; then | |
3938 | ac_ct_AR=$AR | |
3939 | # Extract the first word of "ar", so it can be a program name with args. | |
3940 | set dummy ar; ac_word=$2 | |
3941 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3942 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3943 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
3944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3945 | else | |
3946 | if test -n "$ac_ct_AR"; then | |
3947 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
3948 | else | |
3949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3950 | for as_dir in $PATH | |
3951 | do | |
3952 | IFS=$as_save_IFS | |
3953 | test -z "$as_dir" && as_dir=. | |
3954 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3955 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3956 | ac_cv_prog_ac_ct_AR="ar" | |
3957 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3958 | break 2 | |
3959 | fi | |
3960 | done | |
3961 | done | |
2f235b6d | 3962 | |
ff66d28f PE |
3963 | fi |
3964 | fi | |
3965 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
3966 | if test -n "$ac_ct_AR"; then | |
3967 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
3968 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
2f235b6d | 3969 | else |
ff66d28f PE |
3970 | echo "$as_me:$LINENO: result: no" >&5 |
3971 | echo "${ECHO_T}no" >&6 | |
2f235b6d PE |
3972 | fi |
3973 | ||
ff66d28f | 3974 | AR=$ac_ct_AR |
2f235b6d | 3975 | else |
ff66d28f | 3976 | AR="$ac_cv_prog_AR" |
2f235b6d PE |
3977 | fi |
3978 | ||
ff66d28f PE |
3979 | if test -n "$ac_tool_prefix"; then |
3980 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3981 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3982 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3983 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3984 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3985 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3986 | else | |
3987 | if test -n "$RANLIB"; then | |
3988 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3989 | else | |
3990 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3991 | for as_dir in $PATH | |
3992 | do | |
3993 | IFS=$as_save_IFS | |
3994 | test -z "$as_dir" && as_dir=. | |
3995 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3996 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3997 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3998 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3999 | break 2 | |
4000 | fi | |
4001 | done | |
4002 | done | |
4003 | ||
4004 | fi | |
4005 | fi | |
4006 | RANLIB=$ac_cv_prog_RANLIB | |
4007 | if test -n "$RANLIB"; then | |
4008 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
4009 | echo "${ECHO_T}$RANLIB" >&6 | |
2f235b6d | 4010 | else |
ff66d28f PE |
4011 | echo "$as_me:$LINENO: result: no" >&5 |
4012 | echo "${ECHO_T}no" >&6 | |
2f235b6d PE |
4013 | fi |
4014 | ||
ff66d28f PE |
4015 | fi |
4016 | if test -z "$ac_cv_prog_RANLIB"; then | |
4017 | ac_ct_RANLIB=$RANLIB | |
4018 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4019 | set dummy ranlib; ac_word=$2 | |
4020 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4021 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4022 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
4023 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4024 | else | |
4025 | if test -n "$ac_ct_RANLIB"; then | |
4026 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2f235b6d | 4027 | else |
ff66d28f PE |
4028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4029 | for as_dir in $PATH | |
4030 | do | |
4031 | IFS=$as_save_IFS | |
4032 | test -z "$as_dir" && as_dir=. | |
4033 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4034 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4035 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4036 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4037 | break 2 | |
4038 | fi | |
4039 | done | |
4040 | done | |
4041 | ||
4042 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error" | |
4043 | fi | |
4044 | fi | |
4045 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4046 | if test -n "$ac_ct_RANLIB"; then | |
4047 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
4048 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
4049 | else | |
4050 | echo "$as_me:$LINENO: result: no" >&5 | |
4051 | echo "${ECHO_T}no" >&6 | |
2f235b6d PE |
4052 | fi |
4053 | ||
ff66d28f | 4054 | RANLIB=$ac_ct_RANLIB |
2f235b6d | 4055 | else |
ff66d28f | 4056 | RANLIB="$ac_cv_prog_RANLIB" |
2f235b6d PE |
4057 | fi |
4058 | ||
4059 | ||
ff66d28f PE |
4060 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
4061 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
4062 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
4063 | if test "${enable_maintainer_mode+set}" = set; then | |
4064 | enableval="$enable_maintainer_mode" | |
4065 | USE_MAINTAINER_MODE=$enableval | |
4066 | else | |
4067 | USE_MAINTAINER_MODE=no | |
4068 | fi; | |
4069 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
4070 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
2f235b6d PE |
4071 | |
4072 | ||
ff66d28f PE |
4073 | if test $USE_MAINTAINER_MODE = yes; then |
4074 | MAINTAINER_MODE_TRUE= | |
4075 | MAINTAINER_MODE_FALSE='#' | |
4076 | else | |
4077 | MAINTAINER_MODE_TRUE='#' | |
4078 | MAINTAINER_MODE_FALSE= | |
4079 | fi | |
4080 | ||
4081 | MAINT=$MAINTAINER_MODE_TRUE | |
2f235b6d | 4082 | |
5780a46b | 4083 | |
f4c79fef | 4084 | |
92eabea2 PE |
4085 | # Set up safe default values for all subsequent AM_CONDITIONAL tests |
4086 | # which are themselves conditionally expanded. | |
4087 | ## (Right now, this only matters for enable_wchar_t, but nothing prevents | |
4088 | ## other macros from doing the same. This should be automated.) -pme | |
ff66d28f | 4089 | need_libmath=no |
ff66d28f | 4090 | |
464aea98 JM |
4091 | # Check for uClibc since Linux platforms use different configuration |
4092 | # directories depending on the C library in use. | |
4093 | cat >conftest.$ac_ext <<_ACEOF | |
4094 | /* confdefs.h. */ | |
4095 | _ACEOF | |
4096 | cat confdefs.h >>conftest.$ac_ext | |
4097 | cat >>conftest.$ac_ext <<_ACEOF | |
4098 | /* end confdefs.h. */ | |
4099 | ||
4100 | #include <stdio.h> | |
4101 | #if __UCLIBC__ | |
4102 | _using_uclibc | |
4103 | #endif | |
4104 | ||
4105 | _ACEOF | |
4106 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4107 | $EGREP "_using_uclibc" >/dev/null 2>&1; then | |
4108 | uclibc=yes | |
4109 | else | |
4110 | uclibc=no | |
4111 | fi | |
4112 | rm -f conftest* | |
4113 | ||
4114 | ||
ff66d28f PE |
4115 | # Find platform-specific directories containing configuration info. |
4116 | # Also possibly modify flags used elsewhere, as needed by the platform. | |
4117 | ||
4118 | . $glibcxx_srcdir/configure.host | |
4119 | { echo "$as_me:$LINENO: CPU config directory is $cpu_include_dir" >&5 | |
4120 | echo "$as_me: CPU config directory is $cpu_include_dir" >&6;} | |
4121 | { echo "$as_me:$LINENO: OS config directory is $os_include_dir" >&5 | |
4122 | echo "$as_me: OS config directory is $os_include_dir" >&6;} | |
4123 | ||
4124 | ||
4125 | ||
1cf3d07d SE |
4126 | enable_dlopen=yes |
4127 | ||
4128 | ||
4129 | ||
4130 | ||
4131 | ||
4132 | macro_version='2.1a' | |
4133 | macro_revision='1.2435' | |
4134 | ||
4135 | ||
4136 | ||
4137 | ||
4138 | ||
4139 | ||
4140 | ||
4141 | ||
4142 | ||
4143 | ||
4144 | ||
4145 | ||
4146 | ltmain="$ac_aux_dir/ltmain.sh" | |
4147 | ||
4148 | # Set options | |
4149 | ||
4150 | ||
4151 | enable_win32_dll=no | |
4152 | ||
ff66d28f | 4153 | |
b2dad0e3 BK |
4154 | # Check whether --enable-shared or --disable-shared was given. |
4155 | if test "${enable_shared+set}" = set; then | |
4156 | enableval="$enable_shared" | |
4157 | p=${PACKAGE-default} | |
1cf3d07d SE |
4158 | case $enableval in |
4159 | yes) enable_shared=yes ;; | |
4160 | no) enable_shared=no ;; | |
4161 | *) | |
4162 | enable_shared=no | |
4163 | # Look at the argument we got. We use all the common list separators. | |
4164 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
4165 | for pkg in $enableval; do | |
4166 | IFS="$lt_save_ifs" | |
4167 | if test "X$pkg" = "X$p"; then | |
4168 | enable_shared=yes | |
4169 | fi | |
4170 | done | |
4171 | IFS="$lt_save_ifs" | |
4172 | ;; | |
4173 | esac | |
b2dad0e3 BK |
4174 | else |
4175 | enable_shared=yes | |
ff66d28f | 4176 | fi; |
1cf3d07d SE |
4177 | |
4178 | ||
4179 | ||
4180 | ||
4181 | ||
4182 | ||
4183 | ||
4184 | ||
b2dad0e3 BK |
4185 | # Check whether --enable-static or --disable-static was given. |
4186 | if test "${enable_static+set}" = set; then | |
4187 | enableval="$enable_static" | |
4188 | p=${PACKAGE-default} | |
1cf3d07d SE |
4189 | case $enableval in |
4190 | yes) enable_static=yes ;; | |
4191 | no) enable_static=no ;; | |
4192 | *) | |
4193 | enable_static=no | |
4194 | # Look at the argument we got. We use all the common list separators. | |
4195 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
4196 | for pkg in $enableval; do | |
4197 | IFS="$lt_save_ifs" | |
4198 | if test "X$pkg" = "X$p"; then | |
4199 | enable_static=yes | |
4200 | fi | |
4201 | done | |
4202 | IFS="$lt_save_ifs" | |
4203 | ;; | |
4204 | esac | |
b2dad0e3 BK |
4205 | else |
4206 | enable_static=yes | |
ff66d28f | 4207 | fi; |
1cf3d07d SE |
4208 | |
4209 | ||
4210 | ||
4211 | ||
4212 | ||
4213 | ||
4214 | ||
4215 | ||
4216 | ||
4217 | # Check whether --with-pic or --without-pic was given. | |
4218 | if test "${with_pic+set}" = set; then | |
4219 | withval="$with_pic" | |
4220 | pic_mode="$withval" | |
4221 | else | |
4222 | pic_mode=default | |
4223 | fi; | |
4224 | ||
4225 | test -z "$pic_mode" && pic_mode=default | |
4226 | ||
4227 | ||
4228 | ||
4229 | ||
4230 | ||
4231 | ||
4232 | ||
b2dad0e3 BK |
4233 | # Check whether --enable-fast-install or --disable-fast-install was given. |
4234 | if test "${enable_fast_install+set}" = set; then | |
4235 | enableval="$enable_fast_install" | |
4236 | p=${PACKAGE-default} | |
1cf3d07d SE |
4237 | case $enableval in |
4238 | yes) enable_fast_install=yes ;; | |
4239 | no) enable_fast_install=no ;; | |
4240 | *) | |
4241 | enable_fast_install=no | |
4242 | # Look at the argument we got. We use all the common list separators. | |
4243 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
4244 | for pkg in $enableval; do | |
4245 | IFS="$lt_save_ifs" | |
4246 | if test "X$pkg" = "X$p"; then | |
4247 | enable_fast_install=yes | |
4248 | fi | |
4249 | done | |
4250 | IFS="$lt_save_ifs" | |
4251 | ;; | |
4252 | esac | |
b2dad0e3 BK |
4253 | else |
4254 | enable_fast_install=yes | |
ff66d28f | 4255 | fi; |
b2dad0e3 | 4256 | |
1cf3d07d SE |
4257 | |
4258 | ||
4259 | ||
4260 | ||
4261 | ||
4262 | ||
4263 | ||
4264 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | |
4265 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 | |
4266 | if test "${lt_cv_path_SED+set}" = set; then | |
4267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4268 | else | |
4269 | # Loop through the user's path and test for sed and gsed. | |
4270 | # Then use that list of sed's as ones to test for truncation. | |
4271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4272 | for as_dir in $PATH | |
4273 | do | |
4274 | IFS=$as_save_IFS | |
4275 | test -z "$as_dir" && as_dir=. | |
4276 | for lt_ac_prog in sed gsed; do | |
4277 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4278 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | |
4279 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | |
4280 | fi | |
4281 | done | |
4282 | done | |
4283 | done | |
4284 | IFS=$as_save_IFS | |
4285 | lt_ac_max=0 | |
4286 | lt_ac_count=0 | |
4287 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | |
4288 | # along with /bin/sed that truncates output. | |
4289 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | |
4290 | test ! -f $lt_ac_sed && continue | |
4291 | cat /dev/null > conftest.in | |
4292 | lt_ac_count=0 | |
4293 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in | |
4294 | # Check for GNU sed and select it if it is found. | |
4295 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | |
4296 | lt_cv_path_SED=$lt_ac_sed | |
4297 | break | |
4298 | fi | |
4299 | while true; do | |
4300 | cat conftest.in conftest.in >conftest.tmp | |
4301 | mv conftest.tmp conftest.in | |
4302 | cp conftest.in conftest.nl | |
4303 | echo >>conftest.nl | |
4304 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | |
4305 | cmp -s conftest.out conftest.nl || break | |
4306 | # 10000 chars as input seems more than enough | |
4307 | test $lt_ac_count -gt 10 && break | |
4308 | lt_ac_count=`expr $lt_ac_count + 1` | |
4309 | if test $lt_ac_count -gt $lt_ac_max; then | |
4310 | lt_ac_max=$lt_ac_count | |
4311 | lt_cv_path_SED=$lt_ac_sed | |
4312 | fi | |
4313 | done | |
4314 | done | |
4315 | ||
4316 | fi | |
4317 | ||
4318 | SED=$lt_cv_path_SED | |
4319 | ||
4320 | echo "$as_me:$LINENO: result: $SED" >&5 | |
4321 | echo "${ECHO_T}$SED" >&6 | |
4322 | ||
4323 | test -z "$SED" && SED=sed | |
4324 | Xsed="$SED -e 1s/^X//" | |
4325 | ||
4326 | ||
4327 | ||
4328 | ||
4329 | ||
4330 | ||
4331 | ||
4332 | ||
4333 | ||
4334 | ||
4335 | ||
4336 | echo "$as_me:$LINENO: checking for fgrep" >&5 | |
4337 | echo $ECHO_N "checking for fgrep... $ECHO_C" >&6 | |
4338 | if test "${ac_cv_prog_fgrep+set}" = set; then | |
4339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4340 | else | |
4341 | if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1 | |
4342 | then ac_cv_prog_fgrep='grep -F' | |
4343 | else ac_cv_prog_fgrep='fgrep' | |
4344 | fi | |
4345 | fi | |
4346 | echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5 | |
4347 | echo "${ECHO_T}$ac_cv_prog_fgrep" >&6 | |
4348 | FGREP=$ac_cv_prog_fgrep | |
4349 | ||
4350 | ||
4351 | test -z "$GREP" && GREP=grep | |
4352 | ||
4353 | ||
4354 | ||
4355 | ||
4356 | ||
4357 | ||
4358 | ||
4359 | ||
4360 | ||
4361 | ||
4362 | ||
4363 | ||
4364 | ||
4365 | ||
4366 | ||
4367 | ||
4368 | ||
4369 | ||
4370 | ||
b2dad0e3 BK |
4371 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
4372 | if test "${with_gnu_ld+set}" = set; then | |
4373 | withval="$with_gnu_ld" | |
4374 | test "$withval" = no || with_gnu_ld=yes | |
4375 | else | |
4376 | with_gnu_ld=no | |
ff66d28f | 4377 | fi; |
b2dad0e3 | 4378 | ac_prog=ld |
c21b6f87 | 4379 | if test "$GCC" = yes; then |
b2dad0e3 | 4380 | # Check if gcc -print-prog-name=ld gives a path. |
1cf3d07d SE |
4381 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
4382 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | |
3df64633 AO |
4383 | case $host in |
4384 | *-*-mingw*) | |
4385 | # gcc leaves a trailing carriage return which upsets mingw | |
4386 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4387 | *) | |
4388 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4389 | esac | |
c21b6f87 | 4390 | case $ac_prog in |
b2dad0e3 | 4391 | # Accept absolute paths. |
1cf3d07d | 4392 | [\\/]* | ?:[\\/]*) |
b2dad0e3 | 4393 | re_direlt='/[^/][^/]*/\.\./' |
1cf3d07d SE |
4394 | # Canonicalize the pathname of ld |
4395 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
4396 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4397 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
b2dad0e3 BK |
4398 | done |
4399 | test -z "$LD" && LD="$ac_prog" | |
4400 | ;; | |
4401 | "") | |
4402 | # If it fails, then pretend we aren't using GCC. | |
4403 | ac_prog=ld | |
4404 | ;; | |
4405 | *) | |
4406 | # If it is relative, then search for the first ld in PATH. | |
4407 | with_gnu_ld=unknown | |
4408 | ;; | |
4409 | esac | |
4410 | elif test "$with_gnu_ld" = yes; then | |
ff66d28f PE |
4411 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
4412 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
b2dad0e3 | 4413 | else |
ff66d28f PE |
4414 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
4415 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
b2dad0e3 | 4416 | fi |
ff66d28f PE |
4417 | if test "${lt_cv_path_LD+set}" = set; then |
4418 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 BK |
4419 | else |
4420 | if test -z "$LD"; then | |
1cf3d07d | 4421 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
b2dad0e3 | 4422 | for ac_dir in $PATH; do |
1cf3d07d | 4423 | IFS="$lt_save_ifs" |
b2dad0e3 | 4424 | test -z "$ac_dir" && ac_dir=. |
3840fa2a | 4425 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
c21b6f87 | 4426 | lt_cv_path_LD="$ac_dir/$ac_prog" |
b2dad0e3 | 4427 | # Check to see if the program is GNU ld. I'd rather use --version, |
1cf3d07d | 4428 | # but apparently some variants of GNU ld only accept -v. |
b2dad0e3 | 4429 | # Break only if it was the GNU/non-GNU ld that we prefer. |
1cf3d07d SE |
4430 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
4431 | *GNU* | *'with BFD'*) | |
b2dad0e3 | 4432 | test "$with_gnu_ld" != no && break |
1cf3d07d SE |
4433 | ;; |
4434 | *) | |
b2dad0e3 | 4435 | test "$with_gnu_ld" != yes && break |
1cf3d07d SE |
4436 | ;; |
4437 | esac | |
b2dad0e3 BK |
4438 | fi |
4439 | done | |
1cf3d07d | 4440 | IFS="$lt_save_ifs" |
b2dad0e3 | 4441 | else |
c21b6f87 | 4442 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
b2dad0e3 BK |
4443 | fi |
4444 | fi | |
4445 | ||
c21b6f87 | 4446 | LD="$lt_cv_path_LD" |
b2dad0e3 | 4447 | if test -n "$LD"; then |
ff66d28f PE |
4448 | echo "$as_me:$LINENO: result: $LD" >&5 |
4449 | echo "${ECHO_T}$LD" >&6 | |
b2dad0e3 | 4450 | else |
ff66d28f PE |
4451 | echo "$as_me:$LINENO: result: no" >&5 |
4452 | echo "${ECHO_T}no" >&6 | |
b2dad0e3 | 4453 | fi |
ff66d28f PE |
4454 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
4455 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
4456 | { (exit 1); exit 1; }; } | |
4457 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
4458 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
4459 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
4460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 | 4461 | else |
1cf3d07d SE |
4462 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
4463 | case `$LD -v 2>&1 </dev/null` in | |
4464 | *GNU* | *'with BFD'*) | |
c21b6f87 | 4465 | lt_cv_prog_gnu_ld=yes |
1cf3d07d SE |
4466 | ;; |
4467 | *) | |
c21b6f87 | 4468 | lt_cv_prog_gnu_ld=no |
1cf3d07d SE |
4469 | ;; |
4470 | esac | |
b2dad0e3 | 4471 | fi |
ff66d28f PE |
4472 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
4473 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
c21b6f87 | 4474 | with_gnu_ld=$lt_cv_prog_gnu_ld |
3df64633 | 4475 | |
b2dad0e3 BK |
4476 | |
4477 | ||
1cf3d07d SE |
4478 | |
4479 | ||
4480 | ||
4481 | ||
4482 | ||
4483 | ||
4484 | ||
4485 | echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
4486 | echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6 | |
ff66d28f PE |
4487 | if test "${lt_cv_path_NM+set}" = set; then |
4488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 BK |
4489 | else |
4490 | if test -n "$NM"; then | |
4491 | # Let the user override the test. | |
c21b6f87 | 4492 | lt_cv_path_NM="$NM" |
b2dad0e3 | 4493 | else |
1cf3d07d SE |
4494 | lt_nm_to_check="${ac_tool_prefix}nm" |
4495 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4496 | lt_nm_to_check="$lt_nm_to_check nm" | |
4497 | fi | |
4498 | for lt_tmp_nm in $lt_nm_to_check; do | |
4499 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4500 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4501 | IFS="$lt_save_ifs" | |
4502 | test -z "$ac_dir" && ac_dir=. | |
4503 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
4504 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4505 | # Check to see if the nm accepts a BSD-compat flag. | |
4506 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4507 | # nm: unknown option "B" ignored | |
4508 | # Tru64's nm complains that /dev/null is an invalid object file | |
4509 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
4510 | */dev/null* | *'Invalid file or object type'*) | |
4511 | lt_cv_path_NM="$tmp_nm -B" | |
4512 | break | |
4513 | ;; | |
4514 | *) | |
4515 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4516 | */dev/null*) | |
4517 | lt_cv_path_NM="$tmp_nm -p" | |
4518 | break | |
4519 | ;; | |
4520 | *) | |
4521 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4522 | continue # so that we can try to find one that supports BSD flags | |
4523 | ;; | |
4524 | esac | |
4525 | ;; | |
4526 | esac | |
b2dad0e3 | 4527 | fi |
1cf3d07d SE |
4528 | done |
4529 | IFS="$lt_save_ifs" | |
b2dad0e3 | 4530 | done |
1cf3d07d | 4531 | : ${lt_cv_path_NM=no} |
b2dad0e3 BK |
4532 | fi |
4533 | fi | |
1cf3d07d SE |
4534 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
4535 | echo "${ECHO_T}$lt_cv_path_NM" >&6 | |
4536 | if test "$lt_cv_path_NM" != "no"; then | |
4537 | NM="$lt_cv_path_NM" | |
4538 | else | |
4539 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
4540 | if test -n "$ac_tool_prefix"; then | |
4541 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4542 | do | |
4543 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4544 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4545 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4546 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4547 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then | |
ff66d28f | 4548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3df64633 | 4549 | else |
1cf3d07d SE |
4550 | if test -n "$DUMPBIN"; then |
4551 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4552 | else | |
4553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4554 | for as_dir in $PATH | |
4555 | do | |
4556 | IFS=$as_save_IFS | |
4557 | test -z "$as_dir" && as_dir=. | |
4558 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4559 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4560 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
4561 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4562 | break 2 | |
4563 | fi | |
4564 | done | |
4565 | done | |
3df64633 | 4566 | |
1cf3d07d SE |
4567 | fi |
4568 | fi | |
4569 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4570 | if test -n "$DUMPBIN"; then | |
4571 | echo "$as_me:$LINENO: result: $DUMPBIN" >&5 | |
4572 | echo "${ECHO_T}$DUMPBIN" >&6 | |
4573 | else | |
4574 | echo "$as_me:$LINENO: result: no" >&5 | |
4575 | echo "${ECHO_T}no" >&6 | |
4576 | fi | |
c21b6f87 | 4577 | |
1cf3d07d SE |
4578 | test -n "$DUMPBIN" && break |
4579 | done | |
4580 | fi | |
4581 | if test -z "$DUMPBIN"; then | |
4582 | ac_ct_DUMPBIN=$DUMPBIN | |
4583 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4584 | do | |
4585 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4586 | set dummy $ac_prog; ac_word=$2 | |
4587 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4588 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4589 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then | |
4590 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4591 | else | |
4592 | if test -n "$ac_ct_DUMPBIN"; then | |
4593 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4594 | else | |
4595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4596 | for as_dir in $PATH | |
4597 | do | |
4598 | IFS=$as_save_IFS | |
4599 | test -z "$as_dir" && as_dir=. | |
4600 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4601 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4602 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
4603 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4604 | break 2 | |
3df64633 | 4605 | fi |
1cf3d07d SE |
4606 | done |
4607 | done | |
3df64633 | 4608 | |
1cf3d07d SE |
4609 | fi |
4610 | fi | |
4611 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4612 | if test -n "$ac_ct_DUMPBIN"; then | |
4613 | echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 | |
4614 | echo "${ECHO_T}$ac_ct_DUMPBIN" >&6 | |
4615 | else | |
4616 | echo "$as_me:$LINENO: result: no" >&5 | |
4617 | echo "${ECHO_T}no" >&6 | |
4618 | fi | |
3df64633 | 4619 | |
1cf3d07d SE |
4620 | test -n "$ac_ct_DUMPBIN" && break |
4621 | done | |
4622 | test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":" | |
3df64633 | 4623 | |
1cf3d07d SE |
4624 | DUMPBIN=$ac_ct_DUMPBIN |
4625 | fi | |
3df64633 | 4626 | |
3df64633 | 4627 | |
1cf3d07d SE |
4628 | if test "$DUMPBIN" != ":"; then |
4629 | NM="$DUMPBIN" | |
3df64633 | 4630 | fi |
1cf3d07d SE |
4631 | fi |
4632 | test -z "$NM" && NM=nm | |
3df64633 | 4633 | |
3df64633 | 4634 | |
3df64633 | 4635 | |
3df64633 | 4636 | |
bfa1e6b1 | 4637 | |
3df64633 | 4638 | |
1cf3d07d SE |
4639 | echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 |
4640 | echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6 | |
4641 | if test "${lt_cv_nm_interface+set}" = set; then | |
4642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4643 | else | |
4644 | lt_cv_nm_interface="BSD nm" | |
4645 | echo "int some_variable = 0;" > conftest.$ac_ext | |
4646 | (eval echo "\"\$as_me:4646: $ac_compile\"" >&5) | |
4647 | (eval "$ac_compile" 2>conftest.err) | |
4648 | cat conftest.err >&5 | |
4649 | (eval echo "\"\$as_me:4649: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
4650 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
4651 | cat conftest.err >&5 | |
4652 | (eval echo "\"\$as_me:4652: output\"" >&5) | |
4653 | cat conftest.out >&5 | |
4654 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4655 | lt_cv_nm_interface="MS dumpbin" | |
4656 | fi | |
4657 | rm -f conftest* | |
3df64633 | 4658 | fi |
1cf3d07d SE |
4659 | echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 |
4660 | echo "${ECHO_T}$lt_cv_nm_interface" >&6 | |
3df64633 | 4661 | |
6dab073b MS |
4662 | # find the maximum length of command line arguments |
4663 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
4664 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
4665 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
4666 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4667 | else | |
4668 | i=0 | |
4669 | teststring="ABCD" | |
4670 | ||
4671 | case $build_os in | |
4672 | msdosdjgpp*) | |
4673 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4674 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4675 | # during glob expansion). Even if it were fixed, the result of this | |
4676 | # check would be larger than it should be. | |
4677 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4678 | ;; | |
4679 | ||
1cf3d07d SE |
4680 | gnu*) |
4681 | # Under GNU Hurd, this test is not required because there is | |
4682 | # no limit to the length of command line arguments. | |
4683 | # Libtool will interpret -1 as no limit whatsoever | |
4684 | lt_cv_sys_max_cmd_len=-1; | |
4685 | ;; | |
4686 | ||
6dab073b MS |
4687 | cygwin* | mingw*) |
4688 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4689 | # about 5 minutes as the teststring grows exponentially. | |
4690 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4691 | # you end up with a "frozen" computer, even though with patience | |
4692 | # the test eventually succeeds (with a max line length of 256k). | |
4693 | # Instead, let's just punt: use the minimum linelength reported by | |
4694 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4695 | lt_cv_sys_max_cmd_len=8192; | |
4696 | ;; | |
4697 | ||
4698 | amigaos*) | |
4699 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4700 | # So we just punt and use a minimum line length of 8192. | |
4701 | lt_cv_sys_max_cmd_len=8192; | |
4702 | ;; | |
4703 | ||
4704 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
4705 | # This has been around since 386BSD, at least. Likely further. | |
4706 | if test -x /sbin/sysctl; then | |
4707 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4708 | elif test -x /usr/sbin/sysctl; then | |
4709 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4710 | else | |
1cf3d07d | 4711 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
6dab073b MS |
4712 | fi |
4713 | # And add a safety zone | |
4714 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4715 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4716 | ;; | |
1cf3d07d SE |
4717 | |
4718 | interix*) | |
4719 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4720 | lt_cv_sys_max_cmd_len=196608 | |
4721 | ;; | |
4722 | ||
4723 | osf*) | |
4724 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4725 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4726 | # nice to cause kernel panics so lets avoid the loop below. | |
4727 | # First set a reasonable default. | |
4728 | lt_cv_sys_max_cmd_len=16384 | |
4729 | # | |
4730 | if test -x /sbin/sysconfig; then | |
4731 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4732 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4733 | esac | |
4734 | fi | |
4735 | ;; | |
4736 | sco3.2v5*) | |
4737 | lt_cv_sys_max_cmd_len=102400 | |
4738 | ;; | |
4739 | sysv5* | sco5v6* | sysv4.2uw2*) | |
4740 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4741 | if test -n "$kargmax"; then | |
4742 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4743 | else | |
4744 | lt_cv_sys_max_cmd_len=32768 | |
4745 | fi | |
4746 | ;; | |
4747 | *) | |
82a6cadf PB |
4748 | lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null` |
4749 | if test -n $lt_cv_sys_max_cmd_len; then | |
4750 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4751 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4752 | else | |
4753 | # Make teststring a little bigger before we do anything with it. | |
4754 | # a 1K string should be a reasonable start. | |
4755 | for i in 1 2 3 4 5 6 7 8 ; do | |
4756 | teststring=$teststring$teststring | |
4757 | done | |
4758 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4759 | # If test is not a shell built-in, we'll probably end up computing a | |
4760 | # maximum length that is only half of the actual maximum length, but | |
4761 | # we can't tell. | |
4762 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
4763 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
4764 | test $i != 17 # 1/2 MB should be enough | |
4765 | do | |
4766 | i=`expr $i + 1` | |
4767 | teststring=$teststring$teststring | |
4768 | done | |
4769 | # Only check the string length outside the loop. | |
4770 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4771 | teststring= | |
4772 | # Add a significant safety factor because C++ compilers can tack on | |
4773 | # massive amounts of additional arguments before passing them to the | |
4774 | # linker. It appears as though 1/2 is a usable value. | |
4775 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4776 | fi | |
1cf3d07d | 4777 | ;; |
6dab073b MS |
4778 | esac |
4779 | ||
4780 | fi | |
4781 | ||
1cf3d07d | 4782 | if test -n $lt_cv_sys_max_cmd_len ; then |
6dab073b MS |
4783 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
4784 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
4785 | else | |
4786 | echo "$as_me:$LINENO: result: none" >&5 | |
4787 | echo "${ECHO_T}none" >&6 | |
4788 | fi | |
1cf3d07d | 4789 | max_cmd_len=$lt_cv_sys_max_cmd_len |
6dab073b MS |
4790 | |
4791 | ||
1cf3d07d SE |
4792 | |
4793 | ||
4794 | ||
4795 | ||
4796 | ||
4797 | : ${CP="cp -f"} | |
4798 | : ${MV="mv -f"} | |
4799 | : ${RM="rm -f"} | |
4800 | ||
4801 | echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 | |
4802 | echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6 | |
4803 | # Try some XSI features | |
4804 | xsi_shell=no | |
4805 | ( _lt_dummy="a/b/c" | |
4806 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
4807 | = c,a/b,, ) >/dev/null 2>&1 \ | |
4808 | && xsi_shell=yes | |
4809 | echo "$as_me:$LINENO: result: $xsi_shell" >&5 | |
4810 | echo "${ECHO_T}$xsi_shell" >&6 | |
4811 | ||
4812 | ||
4813 | echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 | |
4814 | echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6 | |
4815 | lt_shell_append=no | |
4816 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
4817 | >/dev/null 2>&1 \ | |
4818 | && lt_shell_append=yes | |
4819 | echo "$as_me:$LINENO: result: $lt_shell_append" >&5 | |
4820 | echo "${ECHO_T}$lt_shell_append" >&6 | |
4821 | ||
4822 | ||
4823 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
4824 | lt_unset=unset | |
3df64633 | 4825 | else |
1cf3d07d SE |
4826 | lt_unset=false |
4827 | fi | |
3df64633 | 4828 | |
3df64633 | 4829 | |
1cf3d07d SE |
4830 | |
4831 | ||
4832 | ||
4833 | # test EBCDIC or ASCII | |
4834 | case `echo X|tr X '\101'` in | |
4835 | A) # ASCII based system | |
4836 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4837 | lt_SP2NL='tr \040 \012' | |
4838 | lt_NL2SP='tr \015\012 \040\040' | |
4839 | ;; | |
4840 | *) # EBCDIC based system | |
4841 | lt_SP2NL='tr \100 \n' | |
4842 | lt_NL2SP='tr \r\n \100\100' | |
3df64633 AO |
4843 | ;; |
4844 | esac | |
3df64633 | 4845 | |
1cf3d07d SE |
4846 | |
4847 | ||
4848 | ||
4849 | ||
4850 | ||
4851 | ||
4852 | ||
4853 | ||
4854 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
4855 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
4856 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
4857 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3df64633 | 4858 | else |
1cf3d07d | 4859 | lt_cv_ld_reload_flag='-r' |
3df64633 | 4860 | fi |
1cf3d07d SE |
4861 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
4862 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
4863 | reload_flag=$lt_cv_ld_reload_flag | |
4864 | case $reload_flag in | |
4865 | "" | " "*) ;; | |
4866 | *) reload_flag=" $reload_flag" ;; | |
4867 | esac | |
4868 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4869 | case $host_os in | |
4870 | darwin*) | |
4871 | if test "$GCC" = yes; then | |
4872 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
4873 | else | |
4874 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4875 | fi | |
4876 | ;; | |
4877 | esac | |
3df64633 | 4878 | |
1cf3d07d SE |
4879 | |
4880 | ||
4881 | ||
4882 | ||
4883 | ||
4884 | ||
4885 | ||
4886 | ||
4887 | ||
4888 | echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 | |
4889 | echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6 | |
4890 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
ff66d28f | 4891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3df64633 | 4892 | else |
1cf3d07d SE |
4893 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
4894 | lt_cv_file_magic_test_file= | |
4895 | lt_cv_deplibs_check_method='unknown' | |
4896 | # Need to set the preceding variable on all platforms that support | |
4897 | # interlibrary dependencies. | |
4898 | # 'none' -- dependencies not supported. | |
4899 | # `unknown' -- same as none, but documents that we really don't know. | |
4900 | # 'pass_all' -- all dependencies passed with no checks. | |
4901 | # 'test_compile' -- check by making test program. | |
4902 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
4903 | # which responds to the $file_magic_cmd with a given extended regex. | |
4904 | # If you have `file' or equivalent on your system and you're not sure | |
4905 | # whether `pass_all' will *always* work, you probably want this one. | |
4906 | ||
4907 | case $host_os in | |
4908 | aix4* | aix5*) | |
4909 | lt_cv_deplibs_check_method=pass_all | |
4910 | ;; | |
4911 | ||
4912 | beos*) | |
4913 | lt_cv_deplibs_check_method=pass_all | |
4914 | ;; | |
4915 | ||
4916 | bsdi[45]*) | |
4917 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
4918 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
4919 | lt_cv_file_magic_test_file=/shlib/libc.so | |
4920 | ;; | |
4921 | ||
4922 | cygwin*) | |
4923 | # func_win32_libid is a shell function defined in ltmain.sh | |
4924 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4925 | lt_cv_file_magic_cmd='func_win32_libid' | |
4926 | ;; | |
4927 | ||
4928 | mingw* | pw32*) | |
4929 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
4930 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
4931 | # unless we find 'file', for example because we are cross-compiling. | |
4932 | if ( file / ) >/dev/null 2>&1; then | |
4933 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4934 | lt_cv_file_magic_cmd='func_win32_libid' | |
4935 | else | |
4936 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
4937 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4938 | fi | |
4939 | ;; | |
4940 | ||
4941 | darwin* | rhapsody*) | |
4942 | lt_cv_deplibs_check_method=pass_all | |
4943 | ;; | |
4944 | ||
4945 | freebsd* | dragonfly*) | |
4946 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4947 | case $host_cpu in | |
4948 | i*86 ) | |
4949 | # Not sure whether the presence of OpenBSD here was a mistake. | |
4950 | # Let's accept both of them until this is cleared up. | |
4951 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
4952 | lt_cv_file_magic_cmd=/usr/bin/file | |
4953 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
4954 | ;; | |
4955 | esac | |
4956 | else | |
4957 | lt_cv_deplibs_check_method=pass_all | |
4958 | fi | |
3df64633 | 4959 | ;; |
1cf3d07d SE |
4960 | |
4961 | gnu*) | |
4962 | lt_cv_deplibs_check_method=pass_all | |
3df64633 | 4963 | ;; |
1cf3d07d SE |
4964 | |
4965 | hpux10.20* | hpux11*) | |
4966 | lt_cv_file_magic_cmd=/usr/bin/file | |
4967 | case $host_cpu in | |
4968 | ia64*) | |
4969 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
4970 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
4971 | ;; | |
4972 | hppa*64*) | |
4973 | 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]' | |
4974 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
4975 | ;; | |
3df64633 | 4976 | *) |
1cf3d07d SE |
4977 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
4978 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
4979 | ;; | |
4980 | esac | |
4981 | ;; | |
3df64633 | 4982 | |
1cf3d07d SE |
4983 | interix[3-9]*) |
4984 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
4985 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
4986 | ;; | |
3df64633 | 4987 | |
1cf3d07d SE |
4988 | irix5* | irix6* | nonstopux*) |
4989 | case $LD in | |
4990 | *-32|*"-32 ") libmagic=32-bit;; | |
4991 | *-n32|*"-n32 ") libmagic=N32;; | |
4992 | *-64|*"-64 ") libmagic=64-bit;; | |
4993 | *) libmagic=never-match;; | |
4994 | esac | |
4995 | lt_cv_deplibs_check_method=pass_all | |
3df64633 | 4996 | ;; |
3df64633 | 4997 | |
1cf3d07d SE |
4998 | # This must be Linux ELF. |
4999 | linux* | k*bsd*-gnu) | |
5000 | lt_cv_deplibs_check_method=pass_all | |
5001 | ;; | |
3df64633 | 5002 | |
1cf3d07d SE |
5003 | netbsd*) |
5004 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5005 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
3df64633 | 5006 | else |
1cf3d07d | 5007 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
3df64633 | 5008 | fi |
1cf3d07d SE |
5009 | ;; |
5010 | ||
5011 | newos6*) | |
5012 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5013 | lt_cv_file_magic_cmd=/usr/bin/file | |
5014 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5015 | ;; | |
5016 | ||
5017 | *nto* | *qnx*) | |
5018 | lt_cv_deplibs_check_method=pass_all | |
5019 | ;; | |
3df64633 | 5020 | |
1cf3d07d SE |
5021 | openbsd*) |
5022 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5023 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5024 | else | |
5025 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
3df64633 AO |
5026 | fi |
5027 | ;; | |
1cf3d07d SE |
5028 | |
5029 | osf3* | osf4* | osf5*) | |
5030 | lt_cv_deplibs_check_method=pass_all | |
5031 | ;; | |
5032 | ||
5033 | rdos*) | |
5034 | lt_cv_deplibs_check_method=pass_all | |
5035 | ;; | |
5036 | ||
5037 | solaris*) | |
5038 | lt_cv_deplibs_check_method=pass_all | |
5039 | ;; | |
5040 | ||
5041 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
5042 | lt_cv_deplibs_check_method=pass_all | |
5043 | ;; | |
5044 | ||
5045 | sysv4 | sysv4.3*) | |
5046 | case $host_vendor in | |
5047 | motorola) | |
5048 | 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]' | |
5049 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5050 | ;; | |
5051 | ncr) | |
5052 | lt_cv_deplibs_check_method=pass_all | |
5053 | ;; | |
5054 | sequent) | |
5055 | lt_cv_file_magic_cmd='/bin/file' | |
5056 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5057 | ;; | |
5058 | sni) | |
5059 | lt_cv_file_magic_cmd='/bin/file' | |
5060 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5061 | lt_cv_file_magic_test_file=/lib/libc.so | |
5062 | ;; | |
5063 | siemens) | |
5064 | lt_cv_deplibs_check_method=pass_all | |
5065 | ;; | |
5066 | pc) | |
5067 | lt_cv_deplibs_check_method=pass_all | |
5068 | ;; | |
5069 | esac | |
5070 | ;; | |
5071 | ||
5072 | tpf*) | |
5073 | lt_cv_deplibs_check_method=pass_all | |
5074 | ;; | |
3df64633 AO |
5075 | esac |
5076 | ||
1cf3d07d SE |
5077 | fi |
5078 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | |
5079 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
5080 | file_magic_cmd=$lt_cv_file_magic_cmd | |
5081 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5082 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
5083 | ||
5084 | ||
5085 | ||
5086 | ||
5087 | ||
5088 | ||
5089 | ||
5090 | ||
5091 | ||
5092 | ||
5093 | ||
5094 | ||
ff66d28f | 5095 | if test -n "$ac_tool_prefix"; then |
1cf3d07d SE |
5096 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
5097 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
ff66d28f PE |
5098 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5099 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1cf3d07d | 5100 | if test "${ac_cv_prog_AR+set}" = set; then |
ff66d28f | 5101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3df64633 | 5102 | else |
1cf3d07d SE |
5103 | if test -n "$AR"; then |
5104 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
3df64633 | 5105 | else |
ff66d28f PE |
5106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5107 | for as_dir in $PATH | |
5108 | do | |
5109 | IFS=$as_save_IFS | |
5110 | test -z "$as_dir" && as_dir=. | |
5111 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5112 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1cf3d07d | 5113 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
ff66d28f PE |
5114 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5115 | break 2 | |
5116 | fi | |
5117 | done | |
5118 | done | |
5119 | ||
3df64633 AO |
5120 | fi |
5121 | fi | |
1cf3d07d SE |
5122 | AR=$ac_cv_prog_AR |
5123 | if test -n "$AR"; then | |
5124 | echo "$as_me:$LINENO: result: $AR" >&5 | |
5125 | echo "${ECHO_T}$AR" >&6 | |
3df64633 | 5126 | else |
ff66d28f PE |
5127 | echo "$as_me:$LINENO: result: no" >&5 |
5128 | echo "${ECHO_T}no" >&6 | |
3df64633 AO |
5129 | fi |
5130 | ||
ff66d28f | 5131 | fi |
1cf3d07d SE |
5132 | if test -z "$ac_cv_prog_AR"; then |
5133 | ac_ct_AR=$AR | |
5134 | # Extract the first word of "ar", so it can be a program name with args. | |
5135 | set dummy ar; ac_word=$2 | |
ff66d28f PE |
5136 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5137 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1cf3d07d | 5138 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
ff66d28f | 5139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3df64633 | 5140 | else |
1cf3d07d SE |
5141 | if test -n "$ac_ct_AR"; then |
5142 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
3df64633 | 5143 | else |
ff66d28f PE |
5144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5145 | for as_dir in $PATH | |
5146 | do | |
5147 | IFS=$as_save_IFS | |
5148 | test -z "$as_dir" && as_dir=. | |
5149 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5150 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1cf3d07d | 5151 | ac_cv_prog_ac_ct_AR="ar" |
ff66d28f PE |
5152 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5153 | break 2 | |
5154 | fi | |
5155 | done | |
5156 | done | |
5157 | ||
1cf3d07d | 5158 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
3df64633 AO |
5159 | fi |
5160 | fi | |
1cf3d07d SE |
5161 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
5162 | if test -n "$ac_ct_AR"; then | |
5163 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
5164 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
3df64633 | 5165 | else |
ff66d28f PE |
5166 | echo "$as_me:$LINENO: result: no" >&5 |
5167 | echo "${ECHO_T}no" >&6 | |
3df64633 AO |
5168 | fi |
5169 | ||
1cf3d07d | 5170 | AR=$ac_ct_AR |
3df64633 | 5171 | else |
1cf3d07d | 5172 | AR="$ac_cv_prog_AR" |
3df64633 AO |
5173 | fi |
5174 | ||
1cf3d07d SE |
5175 | test -z "$AR" && AR=ar |
5176 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
5177 | ||
5178 | ||
5179 | ||
5180 | ||
5181 | ||
5182 | ||
5183 | ||
5184 | ||
5185 | ||
5186 | ||
5187 | ||
ff66d28f PE |
5188 | if test -n "$ac_tool_prefix"; then |
5189 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3df64633 | 5190 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
ff66d28f PE |
5191 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5192 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5193 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
5194 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3df64633 AO |
5195 | else |
5196 | if test -n "$STRIP"; then | |
5197 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5198 | else | |
ff66d28f PE |
5199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5200 | for as_dir in $PATH | |
5201 | do | |
5202 | IFS=$as_save_IFS | |
5203 | test -z "$as_dir" && as_dir=. | |
5204 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5205 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5206 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
5207 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5208 | break 2 | |
5209 | fi | |
5210 | done | |
5211 | done | |
5212 | ||
3df64633 AO |
5213 | fi |
5214 | fi | |
ff66d28f | 5215 | STRIP=$ac_cv_prog_STRIP |
3df64633 | 5216 | if test -n "$STRIP"; then |
ff66d28f PE |
5217 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
5218 | echo "${ECHO_T}$STRIP" >&6 | |
3df64633 | 5219 | else |
ff66d28f PE |
5220 | echo "$as_me:$LINENO: result: no" >&5 |
5221 | echo "${ECHO_T}no" >&6 | |
3df64633 AO |
5222 | fi |
5223 | ||
ff66d28f | 5224 | fi |
3df64633 | 5225 | if test -z "$ac_cv_prog_STRIP"; then |
ff66d28f | 5226 | ac_ct_STRIP=$STRIP |
3df64633 AO |
5227 | # Extract the first word of "strip", so it can be a program name with args. |
5228 | set dummy strip; ac_word=$2 | |
ff66d28f PE |
5229 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5230 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5231 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
5232 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3df64633 | 5233 | else |
ff66d28f PE |
5234 | if test -n "$ac_ct_STRIP"; then |
5235 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3df64633 | 5236 | else |
ff66d28f PE |
5237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5238 | for as_dir in $PATH | |
5239 | do | |
5240 | IFS=$as_save_IFS | |
5241 | test -z "$as_dir" && as_dir=. | |
5242 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5243 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5244 | ac_cv_prog_ac_ct_STRIP="strip" | |
5245 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5246 | break 2 | |
5247 | fi | |
5248 | done | |
5249 | done | |
5250 | ||
5251 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
3df64633 AO |
5252 | fi |
5253 | fi | |
ff66d28f PE |
5254 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
5255 | if test -n "$ac_ct_STRIP"; then | |
5256 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
5257 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
3df64633 | 5258 | else |
ff66d28f PE |
5259 | echo "$as_me:$LINENO: result: no" >&5 |
5260 | echo "${ECHO_T}no" >&6 | |
3df64633 AO |
5261 | fi |
5262 | ||
ff66d28f | 5263 | STRIP=$ac_ct_STRIP |
3df64633 | 5264 | else |
ff66d28f | 5265 | STRIP="$ac_cv_prog_STRIP" |
3df64633 AO |
5266 | fi |
5267 | ||
1cf3d07d | 5268 | test -z "$STRIP" && STRIP=: |
b2dad0e3 | 5269 | |
ff66d28f | 5270 | |
3840fa2a | 5271 | |
3840fa2a | 5272 | |
b2dad0e3 | 5273 | |
ff66d28f | 5274 | |
1cf3d07d SE |
5275 | if test -n "$ac_tool_prefix"; then |
5276 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5277 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5278 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5279 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5280 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
5281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3df64633 | 5282 | else |
1cf3d07d SE |
5283 | if test -n "$RANLIB"; then |
5284 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5285 | else | |
5286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5287 | for as_dir in $PATH | |
5288 | do | |
5289 | IFS=$as_save_IFS | |
5290 | test -z "$as_dir" && as_dir=. | |
5291 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5292 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5293 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5294 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5295 | break 2 | |
b2dad0e3 | 5296 | fi |
1cf3d07d SE |
5297 | done |
5298 | done | |
b2dad0e3 | 5299 | |
1cf3d07d SE |
5300 | fi |
5301 | fi | |
5302 | RANLIB=$ac_cv_prog_RANLIB | |
5303 | if test -n "$RANLIB"; then | |
5304 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
5305 | echo "${ECHO_T}$RANLIB" >&6 | |
5306 | else | |
5307 | echo "$as_me:$LINENO: result: no" >&5 | |
5308 | echo "${ECHO_T}no" >&6 | |
5309 | fi | |
38cca750 | 5310 | |
1cf3d07d SE |
5311 | fi |
5312 | if test -z "$ac_cv_prog_RANLIB"; then | |
5313 | ac_ct_RANLIB=$RANLIB | |
5314 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5315 | set dummy ranlib; ac_word=$2 | |
5316 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5317 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5318 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
5319 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5320 | else | |
5321 | if test -n "$ac_ct_RANLIB"; then | |
5322 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5323 | else | |
5324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5325 | for as_dir in $PATH | |
5326 | do | |
5327 | IFS=$as_save_IFS | |
5328 | test -z "$as_dir" && as_dir=. | |
5329 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5330 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5331 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5332 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5333 | break 2 | |
162c7cd9 | 5334 | fi |
1cf3d07d SE |
5335 | done |
5336 | done | |
162c7cd9 | 5337 | |
1cf3d07d SE |
5338 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
5339 | fi | |
5340 | fi | |
5341 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5342 | if test -n "$ac_ct_RANLIB"; then | |
5343 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
5344 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
b2dad0e3 | 5345 | else |
1cf3d07d SE |
5346 | echo "$as_me:$LINENO: result: no" >&5 |
5347 | echo "${ECHO_T}no" >&6 | |
5348 | fi | |
ff66d28f | 5349 | |
1cf3d07d SE |
5350 | RANLIB=$ac_ct_RANLIB |
5351 | else | |
5352 | RANLIB="$ac_cv_prog_RANLIB" | |
5353 | fi | |
ff66d28f | 5354 | |
1cf3d07d | 5355 | test -z "$RANLIB" && RANLIB=: |
ff66d28f | 5356 | |
1cf3d07d SE |
5357 | |
5358 | ||
5359 | ||
5360 | ||
5361 | ||
5362 | # Determine commands to create old-style static archives. | |
5363 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | |
5364 | old_postinstall_cmds='chmod 644 $oldlib' | |
5365 | old_postuninstall_cmds= | |
5366 | ||
5367 | if test -n "$RANLIB"; then | |
5368 | case $host_os in | |
5369 | openbsd*) | |
5370 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
5371 | ;; | |
5372 | *) | |
5373 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
5374 | ;; | |
5375 | esac | |
5376 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
5377 | fi | |
5378 | ||
5379 | ||
5380 | ||
5381 | ||
5382 | ||
5383 | ||
5384 | ||
5385 | ||
5386 | ||
5387 | ||
5388 | ||
5389 | ||
5390 | ||
5391 | ||
5392 | ||
5393 | ||
5394 | ||
5395 | ||
5396 | ||
5397 | ||
5398 | ||
5399 | ||
5400 | ||
5401 | ||
5402 | ||
5403 | ||
5404 | ||
5405 | ||
5406 | ||
5407 | ||
5408 | ||
5409 | ||
5410 | ||
5411 | ||
5412 | # If no C compiler was specified, use CC. | |
5413 | LTCC=${LTCC-"$CC"} | |
5414 | ||
5415 | # If no C compiler flags were specified, use CFLAGS. | |
5416 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
5417 | ||
5418 | # Allow CC to be a program name with arguments. | |
5419 | compiler=$CC | |
5420 | ||
5421 | ||
5422 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5423 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | |
5424 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | |
5425 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
5426 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5427 | else | |
5428 | ||
5429 | # These are sane defaults that work on at least a few old systems. | |
5430 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
5431 | ||
5432 | # Character class describing NM global symbol codes. | |
5433 | symcode='[BCDEGRST]' | |
5434 | ||
5435 | # Regexp to match symbols that can be accessed directly from C. | |
5436 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5437 | ||
5438 | # Define system-specific variables. | |
5439 | case $host_os in | |
5440 | aix*) | |
5441 | symcode='[BCDT]' | |
5442 | ;; | |
5443 | cygwin* | mingw* | pw32*) | |
5444 | symcode='[ABCDGISTW]' | |
5445 | ;; | |
5446 | hpux*) | |
5447 | if test "$host_cpu" = ia64; then | |
5448 | symcode='[ABCDEGRST]' | |
5449 | fi | |
5450 | ;; | |
5451 | irix* | nonstopux*) | |
5452 | symcode='[BCDEGRST]' | |
5453 | ;; | |
5454 | osf*) | |
5455 | symcode='[BCDEGQRST]' | |
5456 | ;; | |
5457 | solaris*) | |
5458 | symcode='[BDRT]' | |
5459 | ;; | |
5460 | sco3.2v5*) | |
5461 | symcode='[DT]' | |
5462 | ;; | |
5463 | sysv4.2uw2*) | |
5464 | symcode='[DT]' | |
5465 | ;; | |
5466 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5467 | symcode='[ABDT]' | |
5468 | ;; | |
5469 | sysv4) | |
5470 | symcode='[DFNSTU]' | |
5471 | ;; | |
5472 | esac | |
5473 | ||
5474 | # If we're using GNU nm, then use its standard symbol codes. | |
5475 | case `$NM -V 2>&1` in | |
5476 | *GNU* | *'with BFD'*) | |
5477 | symcode='[ABCDGIRSTW]' ;; | |
5478 | esac | |
5479 | ||
5480 | # Transform an extracted symbol line into a proper C declaration. | |
5481 | # Some systems (esp. on ia64) link data and code symbols differently, | |
5482 | # so use this general approach. | |
5483 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5484 | ||
5485 | # Transform an extracted symbol line into symbol name and symbol address | |
5486 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
5487 | ||
5488 | # Handle CRLF in mingw tool chain | |
5489 | opt_cr= | |
5490 | case $build_os in | |
5491 | mingw*) | |
5492 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5493 | ;; | |
5494 | esac | |
5495 | ||
5496 | # Try without a prefix underscore, then with it. | |
5497 | for ac_symprfx in "" "_"; do | |
5498 | ||
5499 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5500 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5501 | ||
5502 | # Write the raw and C identifiers. | |
5503 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
5504 | # Fake it for dumpbin and say T for any non-static function | |
5505 | # and D for any global variable. | |
5506 | # Also find C++ and __fastcall symbols from MSVC++, | |
5507 | # which start with @ or ?. | |
5508 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
5509 | " {last_section=section; section=\$ 3};"\ | |
5510 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
5511 | " \$ 0!~/External *\|/{next};"\ | |
5512 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
5513 | " {if(hide[section]) next};"\ | |
5514 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
5515 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
5516 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
5517 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
5518 | " ' prfx=^$ac_symprfx" | |
5519 | else | |
5520 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5521 | fi | |
5522 | ||
5523 | # Check to see that the pipe works correctly. | |
5524 | pipe_works=no | |
5525 | ||
5526 | rm -f conftest* | |
5527 | cat > conftest.$ac_ext <<_LT_EOF | |
5528 | #ifdef __cplusplus | |
5529 | extern "C" { | |
5530 | #endif | |
5531 | char nm_test_var; | |
5532 | void nm_test_func(void); | |
5533 | void nm_test_func(void){} | |
5534 | #ifdef __cplusplus | |
5535 | } | |
5536 | #endif | |
5537 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
5538 | _LT_EOF | |
5539 | ||
5540 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5541 | (eval $ac_compile) 2>&5 | |
5542 | ac_status=$? | |
5543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5544 | (exit $ac_status); }; then | |
5545 | # Now try to grab the symbols. | |
5546 | nlist=conftest.nm | |
5547 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
5548 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
5549 | ac_status=$? | |
5550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5551 | (exit $ac_status); } && test -s "$nlist"; then | |
5552 | # Try sorting and uniquifying the output. | |
5553 | if sort "$nlist" | uniq > "$nlist"T; then | |
5554 | mv -f "$nlist"T "$nlist" | |
5555 | else | |
5556 | rm -f "$nlist"T | |
5557 | fi | |
5558 | ||
5559 | # Make sure that we snagged all the symbols we need. | |
5560 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
5561 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
5562 | cat <<_LT_EOF > conftest.$ac_ext | |
5563 | #ifdef __cplusplus | |
5564 | extern "C" { | |
5565 | #endif | |
5566 | ||
5567 | _LT_EOF | |
5568 | # Now generate the symbol file. | |
5569 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
5570 | ||
5571 | cat <<_LT_EOF >> conftest.$ac_ext | |
5572 | ||
5573 | /* The mapping between symbol names and symbols. */ | |
5574 | const struct { | |
5575 | const char *name; | |
5576 | void *address; | |
5577 | } | |
5578 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
5579 | { | |
5580 | { "@PROGRAM@", (void *) 0 }, | |
5581 | _LT_EOF | |
5582 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
5583 | cat <<\_LT_EOF >> conftest.$ac_ext | |
5584 | {0, (void *) 0} | |
5585 | }; | |
5586 | ||
5587 | /* This works around a problem in FreeBSD linker */ | |
5588 | #ifdef FREEBSD_WORKAROUND | |
5589 | static const void *lt_preloaded_setup() { | |
5590 | return lt__PROGRAM__LTX_preloaded_symbols; | |
5591 | } | |
5592 | #endif | |
5593 | ||
5594 | #ifdef __cplusplus | |
5595 | } | |
5596 | #endif | |
5597 | _LT_EOF | |
5598 | # Now try linking the two files. | |
5599 | mv conftest.$ac_objext conftstm.$ac_objext | |
5600 | lt_save_LIBS="$LIBS" | |
5601 | lt_save_CFLAGS="$CFLAGS" | |
5602 | LIBS="conftstm.$ac_objext" | |
5603 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5604 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5605 | (eval $ac_link) 2>&5 | |
5606 | ac_status=$? | |
5607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5608 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | |
5609 | pipe_works=yes | |
5610 | fi | |
5611 | LIBS="$lt_save_LIBS" | |
5612 | CFLAGS="$lt_save_CFLAGS" | |
5613 | else | |
5614 | echo "cannot find nm_test_func in $nlist" >&5 | |
5615 | fi | |
5616 | else | |
5617 | echo "cannot find nm_test_var in $nlist" >&5 | |
5618 | fi | |
5619 | else | |
5620 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5621 | fi | |
5622 | else | |
5623 | echo "$progname: failed program was:" >&5 | |
5624 | cat conftest.$ac_ext >&5 | |
5625 | fi | |
5626 | rm -f conftest* conftst* | |
5627 | ||
5628 | # Do not use the global_symbol_pipe unless it works. | |
5629 | if test "$pipe_works" = yes; then | |
5630 | break | |
5631 | else | |
5632 | lt_cv_sys_global_symbol_pipe= | |
5633 | fi | |
5634 | done | |
5635 | ||
5636 | fi | |
5637 | ||
5638 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
5639 | lt_cv_sys_global_symbol_to_cdecl= | |
5640 | fi | |
5641 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5642 | echo "$as_me:$LINENO: result: failed" >&5 | |
5643 | echo "${ECHO_T}failed" >&6 | |
5644 | else | |
5645 | echo "$as_me:$LINENO: result: ok" >&5 | |
5646 | echo "${ECHO_T}ok" >&6 | |
5647 | fi | |
5648 | ||
5649 | ||
5650 | ||
5651 | ||
5652 | ||
5653 | ||
5654 | ||
5655 | ||
5656 | ||
5657 | ||
5658 | ||
5659 | ||
5660 | ||
5661 | ||
5662 | ||
5663 | ||
5664 | ||
5665 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
5666 | if test "${enable_libtool_lock+set}" = set; then | |
5667 | enableval="$enable_libtool_lock" | |
5668 | ||
5669 | fi; | |
5670 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
5671 | ||
5672 | # Some flags need to be propagated to the compiler or linker for good | |
5673 | # libtool support. | |
5674 | case $host in | |
5675 | ia64-*-hpux*) | |
5676 | # Find out which ABI we are using. | |
5677 | echo 'int i;' > conftest.$ac_ext | |
5678 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5679 | (eval $ac_compile) 2>&5 | |
5680 | ac_status=$? | |
5681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5682 | (exit $ac_status); }; then | |
5683 | case `/usr/bin/file conftest.$ac_objext` in | |
5684 | *ELF-32*) | |
5685 | HPUX_IA64_MODE="32" | |
5686 | ;; | |
5687 | *ELF-64*) | |
5688 | HPUX_IA64_MODE="64" | |
5689 | ;; | |
5690 | esac | |
5691 | fi | |
5692 | rm -rf conftest* | |
5693 | ;; | |
5694 | *-*-irix6*) | |
5695 | # Find out which ABI we are using. | |
82a6cadf | 5696 | echo '#line 5696 "configure"' > conftest.$ac_ext |
1cf3d07d SE |
5697 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5698 | (eval $ac_compile) 2>&5 | |
5699 | ac_status=$? | |
5700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5701 | (exit $ac_status); }; then | |
5702 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
5703 | case `/usr/bin/file conftest.$ac_objext` in | |
5704 | *32-bit*) | |
5705 | LD="${LD-ld} -melf32bsmip" | |
5706 | ;; | |
5707 | *N32*) | |
5708 | LD="${LD-ld} -melf32bmipn32" | |
5709 | ;; | |
5710 | *64-bit*) | |
5711 | LD="${LD-ld} -melf64bmip" | |
5712 | ;; | |
5713 | esac | |
5714 | else | |
5715 | case `/usr/bin/file conftest.$ac_objext` in | |
5716 | *32-bit*) | |
5717 | LD="${LD-ld} -32" | |
5718 | ;; | |
5719 | *N32*) | |
5720 | LD="${LD-ld} -n32" | |
5721 | ;; | |
5722 | *64-bit*) | |
5723 | LD="${LD-ld} -64" | |
5724 | ;; | |
5725 | esac | |
5726 | fi | |
5727 | fi | |
5728 | rm -rf conftest* | |
5729 | ;; | |
5730 | ||
5731 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
5732 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
5733 | # Find out which ABI we are using. | |
5734 | echo 'int i;' > conftest.$ac_ext | |
5735 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5736 | (eval $ac_compile) 2>&5 | |
5737 | ac_status=$? | |
5738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5739 | (exit $ac_status); }; then | |
5740 | case `/usr/bin/file conftest.o` in | |
5741 | *32-bit*) | |
5742 | case $host in | |
5743 | x86_64-*kfreebsd*-gnu) | |
5744 | LD="${LD-ld} -m elf_i386_fbsd" | |
5745 | ;; | |
5746 | x86_64-*linux*) | |
5747 | LD="${LD-ld} -m elf_i386" | |
5748 | ;; | |
5749 | ppc64-*linux*|powerpc64-*linux*) | |
5750 | LD="${LD-ld} -m elf32ppclinux" | |
5751 | ;; | |
5752 | s390x-*linux*) | |
5753 | LD="${LD-ld} -m elf_s390" | |
5754 | ;; | |
5755 | sparc64-*linux*) | |
5756 | LD="${LD-ld} -m elf32_sparc" | |
5757 | ;; | |
5758 | esac | |
5759 | ;; | |
5760 | *64-bit*) | |
5761 | case $host in | |
5762 | x86_64-*kfreebsd*-gnu) | |
5763 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
5764 | ;; | |
5765 | x86_64-*linux*) | |
5766 | LD="${LD-ld} -m elf_x86_64" | |
5767 | ;; | |
5768 | ppc*-*linux*|powerpc*-*linux*) | |
5769 | LD="${LD-ld} -m elf64ppc" | |
5770 | ;; | |
5771 | s390*-*linux*|s390*-*tpf*) | |
5772 | LD="${LD-ld} -m elf64_s390" | |
5773 | ;; | |
5774 | sparc*-*linux*) | |
5775 | LD="${LD-ld} -m elf64_sparc" | |
5776 | ;; | |
5777 | esac | |
5778 | ;; | |
5779 | esac | |
5780 | fi | |
5781 | rm -rf conftest* | |
5782 | ;; | |
5783 | ||
5784 | *-*-sco3.2v5*) | |
5785 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
5786 | SAVE_CFLAGS="$CFLAGS" | |
5787 | CFLAGS="$CFLAGS -belf" | |
5788 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
5789 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
5790 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
5791 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5792 | else | |
5793 | ac_ext=c | |
5794 | ac_cpp='$CPP $CPPFLAGS' | |
5795 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5796 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5797 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5798 | ||
5799 | if test x$gcc_no_link = xyes; then | |
5800 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
5801 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
5802 | { (exit 1); exit 1; }; } | |
5803 | fi | |
5804 | cat >conftest.$ac_ext <<_ACEOF | |
5805 | /* confdefs.h. */ | |
ff66d28f PE |
5806 | _ACEOF |
5807 | cat confdefs.h >>conftest.$ac_ext | |
5808 | cat >>conftest.$ac_ext <<_ACEOF | |
5809 | /* end confdefs.h. */ | |
3df64633 | 5810 | |
ff66d28f PE |
5811 | int |
5812 | main () | |
5813 | { | |
b2dad0e3 | 5814 | |
ff66d28f PE |
5815 | ; |
5816 | return 0; | |
5817 | } | |
5818 | _ACEOF | |
5819 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5820 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ec2075e9 | 5821 | (eval $ac_link) 2>conftest.er1 |
ff66d28f | 5822 | ac_status=$? |
ec2075e9 BK |
5823 | grep -v '^ *+' conftest.er1 >conftest.err |
5824 | rm -f conftest.er1 | |
5825 | cat conftest.err >&5 | |
ff66d28f PE |
5826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5827 | (exit $ac_status); } && | |
5b043f08 GK |
5828 | { ac_try='test -z "$ac_c_werror_flag" |
5829 | || test ! -s conftest.err' | |
ec2075e9 BK |
5830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5831 | (eval $ac_try) 2>&5 | |
5832 | ac_status=$? | |
5833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5834 | (exit $ac_status); }; } && | |
5835 | { ac_try='test -s conftest$ac_exeext' | |
ff66d28f PE |
5836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5837 | (eval $ac_try) 2>&5 | |
5838 | ac_status=$? | |
5839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5840 | (exit $ac_status); }; }; then | |
b2dad0e3 BK |
5841 | lt_cv_cc_needs_belf=yes |
5842 | else | |
ff66d28f PE |
5843 | echo "$as_me: failed program was:" >&5 |
5844 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5845 | ||
5846 | lt_cv_cc_needs_belf=no | |
b2dad0e3 | 5847 | fi |
ec2075e9 BK |
5848 | rm -f conftest.err conftest.$ac_objext \ |
5849 | conftest$ac_exeext conftest.$ac_ext | |
3df64633 | 5850 | ac_ext=c |
3df64633 | 5851 | ac_cpp='$CPP $CPPFLAGS' |
ff66d28f PE |
5852 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5853 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5854 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3df64633 | 5855 | |
b2dad0e3 | 5856 | fi |
ff66d28f PE |
5857 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
5858 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
b2dad0e3 BK |
5859 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
5860 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
5861 | CFLAGS="$SAVE_CFLAGS" | |
5862 | fi | |
5863 | ;; | |
1cf3d07d SE |
5864 | sparc*-*solaris*) |
5865 | # Find out which ABI we are using. | |
5866 | echo 'int i;' > conftest.$ac_ext | |
5867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5868 | (eval $ac_compile) 2>&5 | |
5869 | ac_status=$? | |
5870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5871 | (exit $ac_status); }; then | |
5872 | case `/usr/bin/file conftest.o` in | |
5873 | *64-bit*) | |
5874 | case $lt_cv_prog_gnu_ld in | |
5875 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
5876 | *) LD="${LD-ld} -64" ;; | |
5877 | esac | |
5878 | ;; | |
5879 | esac | |
5880 | fi | |
5881 | rm -rf conftest* | |
5882 | ;; | |
b2dad0e3 BK |
5883 | esac |
5884 | ||
1cf3d07d | 5885 | need_locks="$enable_libtool_lock" |
b2dad0e3 | 5886 | |
1cf3d07d SE |
5887 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5888 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
5889 | if test "${ac_cv_header_stdc+set}" = set; then | |
5890 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5891 | else | |
5892 | cat >conftest.$ac_ext <<_ACEOF | |
5893 | /* confdefs.h. */ | |
ff66d28f | 5894 | _ACEOF |
1cf3d07d SE |
5895 | cat confdefs.h >>conftest.$ac_ext |
5896 | cat >>conftest.$ac_ext <<_ACEOF | |
5897 | /* end confdefs.h. */ | |
5898 | #include <stdlib.h> | |
5899 | #include <stdarg.h> | |
5900 | #include <string.h> | |
5901 | #include <float.h> | |
ff66d28f | 5902 | |
1cf3d07d SE |
5903 | int |
5904 | main () | |
ff66d28f | 5905 | { |
1cf3d07d SE |
5906 | |
5907 | ; | |
5908 | return 0; | |
5909 | } | |
5910 | _ACEOF | |
5911 | rm -f conftest.$ac_objext | |
5912 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5913 | (eval $ac_compile) 2>conftest.er1 | |
5914 | ac_status=$? | |
5915 | grep -v '^ *+' conftest.er1 >conftest.err | |
5916 | rm -f conftest.er1 | |
5917 | cat conftest.err >&5 | |
5918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5919 | (exit $ac_status); } && | |
5920 | { ac_try='test -z "$ac_c_werror_flag" | |
5921 | || test ! -s conftest.err' | |
5922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5923 | (eval $ac_try) 2>&5 | |
5924 | ac_status=$? | |
5925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5926 | (exit $ac_status); }; } && | |
5927 | { ac_try='test -s conftest.$ac_objext' | |
5928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5929 | (eval $ac_try) 2>&5 | |
5930 | ac_status=$? | |
5931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5932 | (exit $ac_status); }; }; then | |
5933 | ac_cv_header_stdc=yes | |
5934 | else | |
5935 | echo "$as_me: failed program was:" >&5 | |
5936 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5937 | ||
5938 | ac_cv_header_stdc=no | |
b2dad0e3 | 5939 | fi |
1cf3d07d | 5940 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b2dad0e3 | 5941 | |
1cf3d07d SE |
5942 | if test $ac_cv_header_stdc = yes; then |
5943 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5944 | cat >conftest.$ac_ext <<_ACEOF | |
5945 | /* confdefs.h. */ | |
5946 | _ACEOF | |
5947 | cat confdefs.h >>conftest.$ac_ext | |
5948 | cat >>conftest.$ac_ext <<_ACEOF | |
5949 | /* end confdefs.h. */ | |
5950 | #include <string.h> | |
b2dad0e3 | 5951 | |
1cf3d07d SE |
5952 | _ACEOF |
5953 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5954 | $EGREP "memchr" >/dev/null 2>&1; then | |
5955 | : | |
b2dad0e3 | 5956 | else |
1cf3d07d | 5957 | ac_cv_header_stdc=no |
b2dad0e3 | 5958 | fi |
1cf3d07d | 5959 | rm -f conftest* |
b2dad0e3 | 5960 | |
1cf3d07d | 5961 | fi |
b2dad0e3 | 5962 | |
1cf3d07d SE |
5963 | if test $ac_cv_header_stdc = yes; then |
5964 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5965 | cat >conftest.$ac_ext <<_ACEOF | |
5966 | /* confdefs.h. */ | |
5967 | _ACEOF | |
5968 | cat confdefs.h >>conftest.$ac_ext | |
5969 | cat >>conftest.$ac_ext <<_ACEOF | |
5970 | /* end confdefs.h. */ | |
5971 | #include <stdlib.h> | |
b2dad0e3 | 5972 | |
1cf3d07d SE |
5973 | _ACEOF |
5974 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5975 | $EGREP "free" >/dev/null 2>&1; then | |
5976 | : | |
5977 | else | |
5978 | ac_cv_header_stdc=no | |
5979 | fi | |
5980 | rm -f conftest* | |
b2dad0e3 | 5981 | |
1cf3d07d | 5982 | fi |
b2dad0e3 | 5983 | |
1cf3d07d SE |
5984 | if test $ac_cv_header_stdc = yes; then |
5985 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5986 | if test "$cross_compiling" = yes; then | |
5987 | : | |
ff66d28f | 5988 | else |
ff66d28f | 5989 | cat >conftest.$ac_ext <<_ACEOF |
ff66d28f PE |
5990 | /* confdefs.h. */ |
5991 | _ACEOF | |
5992 | cat confdefs.h >>conftest.$ac_ext | |
5993 | cat >>conftest.$ac_ext <<_ACEOF | |
5994 | /* end confdefs.h. */ | |
1cf3d07d SE |
5995 | #include <ctype.h> |
5996 | #if ((' ' & 0x0FF) == 0x020) | |
5997 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5998 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
ff66d28f | 5999 | #else |
1cf3d07d SE |
6000 | # define ISLOWER(c) \ |
6001 | (('a' <= (c) && (c) <= 'i') \ | |
6002 | || ('j' <= (c) && (c) <= 'r') \ | |
6003 | || ('s' <= (c) && (c) <= 'z')) | |
6004 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
ff66d28f | 6005 | #endif |
1cf3d07d SE |
6006 | |
6007 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
6008 | int | |
6009 | main () | |
6010 | { | |
6011 | int i; | |
6012 | for (i = 0; i < 256; i++) | |
6013 | if (XOR (islower (i), ISLOWER (i)) | |
6014 | || toupper (i) != TOUPPER (i)) | |
6015 | exit(2); | |
6016 | exit (0); | |
6017 | } | |
ff66d28f | 6018 | _ACEOF |
1cf3d07d SE |
6019 | rm -f conftest$ac_exeext |
6020 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6021 | (eval $ac_link) 2>&5 | |
ff66d28f | 6022 | ac_status=$? |
ff66d28f | 6023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
6024 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
6025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6026 | (eval $ac_try) 2>&5 | |
6027 | ac_status=$? | |
6028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6029 | (exit $ac_status); }; }; then | |
ff66d28f PE |
6030 | : |
6031 | else | |
1cf3d07d SE |
6032 | echo "$as_me: program exited with status $ac_status" >&5 |
6033 | echo "$as_me: failed program was:" >&5 | |
ff66d28f PE |
6034 | sed 's/^/| /' conftest.$ac_ext >&5 |
6035 | ||
1cf3d07d SE |
6036 | ( exit $ac_status ) |
6037 | ac_cv_header_stdc=no | |
6038 | fi | |
6039 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6040 | fi | |
6041 | fi | |
6042 | fi | |
6043 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
6044 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
6045 | if test $ac_cv_header_stdc = yes; then | |
6046 | ||
6047 | cat >>confdefs.h <<\_ACEOF | |
6048 | #define STDC_HEADERS 1 | |
6049 | _ACEOF | |
6050 | ||
6051 | fi | |
6052 | ||
6053 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
6054 | ||
6055 | ||
6056 | ||
6057 | ||
6058 | ||
6059 | ||
6060 | ||
6061 | ||
6062 | ||
6063 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
6064 | inttypes.h stdint.h unistd.h | |
6065 | do | |
6066 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6067 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6068 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6069 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6071 | else | |
6072 | cat >conftest.$ac_ext <<_ACEOF | |
6073 | /* confdefs.h. */ | |
6074 | _ACEOF | |
6075 | cat confdefs.h >>conftest.$ac_ext | |
6076 | cat >>conftest.$ac_ext <<_ACEOF | |
6077 | /* end confdefs.h. */ | |
6078 | $ac_includes_default | |
6079 | ||
6080 | #include <$ac_header> | |
6081 | _ACEOF | |
6082 | rm -f conftest.$ac_objext | |
6083 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6084 | (eval $ac_compile) 2>conftest.er1 | |
6085 | ac_status=$? | |
6086 | grep -v '^ *+' conftest.er1 >conftest.err | |
6087 | rm -f conftest.er1 | |
6088 | cat conftest.err >&5 | |
6089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6090 | (exit $ac_status); } && | |
6091 | { ac_try='test -z "$ac_c_werror_flag" | |
6092 | || test ! -s conftest.err' | |
6093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6094 | (eval $ac_try) 2>&5 | |
6095 | ac_status=$? | |
6096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6097 | (exit $ac_status); }; } && | |
6098 | { ac_try='test -s conftest.$ac_objext' | |
6099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6100 | (eval $ac_try) 2>&5 | |
6101 | ac_status=$? | |
6102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6103 | (exit $ac_status); }; }; then | |
6104 | eval "$as_ac_Header=yes" | |
6105 | else | |
6106 | echo "$as_me: failed program was:" >&5 | |
6107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6108 | ||
6109 | eval "$as_ac_Header=no" | |
6110 | fi | |
6111 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6112 | fi | |
6113 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6114 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6115 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6116 | cat >>confdefs.h <<_ACEOF | |
6117 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6118 | _ACEOF | |
6119 | ||
6120 | fi | |
6121 | ||
6122 | done | |
6123 | ||
6124 | ||
6125 | ||
6126 | for ac_header in dlfcn.h | |
6127 | do | |
6128 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6129 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6130 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6131 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6133 | else | |
6134 | cat >conftest.$ac_ext <<_ACEOF | |
6135 | /* confdefs.h. */ | |
6136 | _ACEOF | |
6137 | cat confdefs.h >>conftest.$ac_ext | |
6138 | cat >>conftest.$ac_ext <<_ACEOF | |
6139 | /* end confdefs.h. */ | |
6140 | $ac_includes_default | |
6141 | ||
6142 | #include <$ac_header> | |
6143 | _ACEOF | |
6144 | rm -f conftest.$ac_objext | |
6145 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6146 | (eval $ac_compile) 2>conftest.er1 | |
6147 | ac_status=$? | |
6148 | grep -v '^ *+' conftest.er1 >conftest.err | |
6149 | rm -f conftest.er1 | |
6150 | cat conftest.err >&5 | |
6151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6152 | (exit $ac_status); } && | |
6153 | { ac_try='test -z "$ac_c_werror_flag" | |
6154 | || test ! -s conftest.err' | |
6155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6156 | (eval $ac_try) 2>&5 | |
6157 | ac_status=$? | |
6158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6159 | (exit $ac_status); }; } && | |
6160 | { ac_try='test -s conftest.$ac_objext' | |
6161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6162 | (eval $ac_try) 2>&5 | |
6163 | ac_status=$? | |
6164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6165 | (exit $ac_status); }; }; then | |
6166 | eval "$as_ac_Header=yes" | |
6167 | else | |
6168 | echo "$as_me: failed program was:" >&5 | |
6169 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6170 | ||
6171 | eval "$as_ac_Header=no" | |
6172 | fi | |
6173 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6174 | fi | |
6175 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6176 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6177 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6178 | cat >>confdefs.h <<_ACEOF | |
6179 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6180 | _ACEOF | |
6181 | ||
6182 | fi | |
6183 | ||
6184 | done | |
6185 | ||
6186 | ||
6187 | ||
6188 | ac_ext=cc | |
6189 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6190 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6191 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6192 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6193 | if test -n "$ac_tool_prefix"; then | |
6194 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
6195 | do | |
6196 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6197 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6198 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6199 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6200 | if test "${glibcxx_cv_prog_CXX+set}" = set; then | |
6201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6202 | else | |
6203 | if test -n "$CXX"; then | |
6204 | glibcxx_cv_prog_CXX="$CXX" # Let the user override the test. | |
6205 | else | |
6206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6207 | for as_dir in $PATH | |
6208 | do | |
6209 | IFS=$as_save_IFS | |
6210 | test -z "$as_dir" && as_dir=. | |
6211 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6212 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6213 | glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
6214 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6215 | break 2 | |
6216 | fi | |
6217 | done | |
6218 | done | |
6219 | ||
6220 | fi | |
6221 | fi | |
6222 | CXX=$glibcxx_cv_prog_CXX | |
6223 | if test -n "$CXX"; then | |
6224 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
6225 | echo "${ECHO_T}$CXX" >&6 | |
6226 | else | |
6227 | echo "$as_me:$LINENO: result: no" >&5 | |
6228 | echo "${ECHO_T}no" >&6 | |
6229 | fi | |
6230 | ||
6231 | test -n "$CXX" && break | |
6232 | done | |
6233 | fi | |
6234 | if test -z "$CXX"; then | |
6235 | ac_ct_CXX=$CXX | |
6236 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
6237 | do | |
6238 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6239 | set dummy $ac_prog; ac_word=$2 | |
6240 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6241 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6242 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
6243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6244 | else | |
6245 | if test -n "$ac_ct_CXX"; then | |
6246 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
6247 | else | |
6248 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6249 | for as_dir in $PATH | |
6250 | do | |
6251 | IFS=$as_save_IFS | |
6252 | test -z "$as_dir" && as_dir=. | |
6253 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6254 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6255 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
6256 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6257 | break 2 | |
6258 | fi | |
6259 | done | |
6260 | done | |
6261 | ||
6262 | fi | |
6263 | fi | |
6264 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
6265 | if test -n "$ac_ct_CXX"; then | |
6266 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
6267 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
6268 | else | |
6269 | echo "$as_me:$LINENO: result: no" >&5 | |
6270 | echo "${ECHO_T}no" >&6 | |
6271 | fi | |
6272 | ||
6273 | test -n "$ac_ct_CXX" && break | |
6274 | done | |
6275 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
6276 | ||
6277 | CXX=$ac_ct_CXX | |
6278 | fi | |
6279 | ||
6280 | ||
6281 | # Provide some information about the compiler. | |
6282 | echo "$as_me:$LINENO:" \ | |
6283 | "checking for C++ compiler version" >&5 | |
6284 | ac_compiler=`set X $ac_compile; echo $2` | |
6285 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
6286 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
6287 | ac_status=$? | |
6288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6289 | (exit $ac_status); } | |
6290 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
6291 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
6292 | ac_status=$? | |
6293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6294 | (exit $ac_status); } | |
6295 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
6296 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
6297 | ac_status=$? | |
6298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6299 | (exit $ac_status); } | |
6300 | ||
6301 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
6302 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
6303 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
6304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6305 | else | |
6306 | cat >conftest.$ac_ext <<_ACEOF | |
6307 | /* confdefs.h. */ | |
6308 | _ACEOF | |
6309 | cat confdefs.h >>conftest.$ac_ext | |
6310 | cat >>conftest.$ac_ext <<_ACEOF | |
6311 | /* end confdefs.h. */ | |
6312 | ||
6313 | int | |
6314 | main () | |
6315 | { | |
6316 | #ifndef __GNUC__ | |
6317 | choke me | |
6318 | #endif | |
6319 | ||
6320 | ; | |
6321 | return 0; | |
6322 | } | |
6323 | _ACEOF | |
6324 | rm -f conftest.$ac_objext | |
6325 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6326 | (eval $ac_compile) 2>conftest.er1 | |
6327 | ac_status=$? | |
6328 | grep -v '^ *+' conftest.er1 >conftest.err | |
6329 | rm -f conftest.er1 | |
6330 | cat conftest.err >&5 | |
6331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6332 | (exit $ac_status); } && | |
6333 | { ac_try='test -z "$ac_cxx_werror_flag" | |
6334 | || test ! -s conftest.err' | |
6335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6336 | (eval $ac_try) 2>&5 | |
6337 | ac_status=$? | |
6338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6339 | (exit $ac_status); }; } && | |
6340 | { ac_try='test -s conftest.$ac_objext' | |
6341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6342 | (eval $ac_try) 2>&5 | |
6343 | ac_status=$? | |
6344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6345 | (exit $ac_status); }; }; then | |
6346 | ac_compiler_gnu=yes | |
6347 | else | |
6348 | echo "$as_me: failed program was:" >&5 | |
6349 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6350 | ||
6351 | ac_compiler_gnu=no | |
6352 | fi | |
6353 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6354 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
6355 | ||
6356 | fi | |
6357 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
6358 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
6359 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
6360 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
6361 | ac_save_CXXFLAGS=$CXXFLAGS | |
6362 | CXXFLAGS="-g" | |
6363 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
6364 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
6365 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
6366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6367 | else | |
6368 | cat >conftest.$ac_ext <<_ACEOF | |
6369 | /* confdefs.h. */ | |
6370 | _ACEOF | |
6371 | cat confdefs.h >>conftest.$ac_ext | |
6372 | cat >>conftest.$ac_ext <<_ACEOF | |
6373 | /* end confdefs.h. */ | |
6374 | ||
6375 | int | |
6376 | main () | |
6377 | { | |
6378 | ||
6379 | ; | |
6380 | return 0; | |
6381 | } | |
6382 | _ACEOF | |
6383 | rm -f conftest.$ac_objext | |
6384 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6385 | (eval $ac_compile) 2>conftest.er1 | |
6386 | ac_status=$? | |
6387 | grep -v '^ *+' conftest.er1 >conftest.err | |
6388 | rm -f conftest.er1 | |
6389 | cat conftest.err >&5 | |
6390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6391 | (exit $ac_status); } && | |
6392 | { ac_try='test -z "$ac_cxx_werror_flag" | |
6393 | || test ! -s conftest.err' | |
6394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6395 | (eval $ac_try) 2>&5 | |
6396 | ac_status=$? | |
6397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6398 | (exit $ac_status); }; } && | |
6399 | { ac_try='test -s conftest.$ac_objext' | |
6400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6401 | (eval $ac_try) 2>&5 | |
6402 | ac_status=$? | |
6403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6404 | (exit $ac_status); }; }; then | |
6405 | ac_cv_prog_cxx_g=yes | |
6406 | else | |
6407 | echo "$as_me: failed program was:" >&5 | |
6408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6409 | ||
6410 | ac_cv_prog_cxx_g=no | |
6411 | fi | |
6412 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6413 | fi | |
6414 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
6415 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
6416 | if test "$ac_test_CXXFLAGS" = set; then | |
6417 | CXXFLAGS=$ac_save_CXXFLAGS | |
6418 | elif test $ac_cv_prog_cxx_g = yes; then | |
6419 | if test "$GXX" = yes; then | |
6420 | CXXFLAGS="-g -O2" | |
6421 | else | |
6422 | CXXFLAGS="-g" | |
6423 | fi | |
6424 | else | |
6425 | if test "$GXX" = yes; then | |
6426 | CXXFLAGS="-O2" | |
6427 | else | |
6428 | CXXFLAGS= | |
6429 | fi | |
6430 | fi | |
6431 | for ac_declaration in \ | |
6432 | '' \ | |
6433 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
6434 | 'extern "C" void std::exit (int); using std::exit;' \ | |
6435 | 'extern "C" void exit (int) throw ();' \ | |
6436 | 'extern "C" void exit (int);' \ | |
6437 | 'void exit (int);' | |
6438 | do | |
6439 | cat >conftest.$ac_ext <<_ACEOF | |
6440 | /* confdefs.h. */ | |
6441 | _ACEOF | |
6442 | cat confdefs.h >>conftest.$ac_ext | |
6443 | cat >>conftest.$ac_ext <<_ACEOF | |
6444 | /* end confdefs.h. */ | |
6445 | $ac_declaration | |
6446 | #include <stdlib.h> | |
6447 | int | |
6448 | main () | |
6449 | { | |
6450 | exit (42); | |
6451 | ; | |
6452 | return 0; | |
6453 | } | |
6454 | _ACEOF | |
6455 | rm -f conftest.$ac_objext | |
6456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6457 | (eval $ac_compile) 2>conftest.er1 | |
6458 | ac_status=$? | |
6459 | grep -v '^ *+' conftest.er1 >conftest.err | |
6460 | rm -f conftest.er1 | |
6461 | cat conftest.err >&5 | |
6462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6463 | (exit $ac_status); } && | |
6464 | { ac_try='test -z "$ac_cxx_werror_flag" | |
6465 | || test ! -s conftest.err' | |
6466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6467 | (eval $ac_try) 2>&5 | |
6468 | ac_status=$? | |
6469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6470 | (exit $ac_status); }; } && | |
6471 | { ac_try='test -s conftest.$ac_objext' | |
6472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6473 | (eval $ac_try) 2>&5 | |
6474 | ac_status=$? | |
6475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6476 | (exit $ac_status); }; }; then | |
6477 | : | |
6478 | else | |
6479 | echo "$as_me: failed program was:" >&5 | |
6480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6481 | ||
6482 | continue | |
6483 | fi | |
6484 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6485 | cat >conftest.$ac_ext <<_ACEOF | |
6486 | /* confdefs.h. */ | |
6487 | _ACEOF | |
6488 | cat confdefs.h >>conftest.$ac_ext | |
6489 | cat >>conftest.$ac_ext <<_ACEOF | |
6490 | /* end confdefs.h. */ | |
6491 | $ac_declaration | |
6492 | int | |
6493 | main () | |
6494 | { | |
6495 | exit (42); | |
6496 | ; | |
6497 | return 0; | |
6498 | } | |
6499 | _ACEOF | |
6500 | rm -f conftest.$ac_objext | |
6501 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6502 | (eval $ac_compile) 2>conftest.er1 | |
6503 | ac_status=$? | |
6504 | grep -v '^ *+' conftest.er1 >conftest.err | |
6505 | rm -f conftest.er1 | |
6506 | cat conftest.err >&5 | |
6507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6508 | (exit $ac_status); } && | |
6509 | { ac_try='test -z "$ac_cxx_werror_flag" | |
6510 | || test ! -s conftest.err' | |
6511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6512 | (eval $ac_try) 2>&5 | |
6513 | ac_status=$? | |
6514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6515 | (exit $ac_status); }; } && | |
6516 | { ac_try='test -s conftest.$ac_objext' | |
6517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6518 | (eval $ac_try) 2>&5 | |
6519 | ac_status=$? | |
6520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6521 | (exit $ac_status); }; }; then | |
6522 | break | |
6523 | else | |
6524 | echo "$as_me: failed program was:" >&5 | |
6525 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6526 | ||
6527 | fi | |
6528 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6529 | done | |
6530 | rm -f conftest* | |
6531 | if test -n "$ac_declaration"; then | |
6532 | echo '#ifdef __cplusplus' >>confdefs.h | |
6533 | echo $ac_declaration >>confdefs.h | |
6534 | echo '#endif' >>confdefs.h | |
6535 | fi | |
6536 | ||
6537 | ac_ext=c | |
6538 | ac_cpp='$CPP $CPPFLAGS' | |
6539 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6540 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6541 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6542 | ||
6543 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
6544 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
6545 | (test "X$CXX" != "Xg++"))) ; then | |
6546 | ac_ext=cc | |
6547 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6548 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6549 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6550 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6551 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
6552 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
6553 | if test -z "$CXXCPP"; then | |
6554 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
6555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6556 | else | |
6557 | # Double quotes because CXXCPP needs to be expanded | |
6558 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
6559 | do | |
6560 | ac_preproc_ok=false | |
6561 | for ac_cxx_preproc_warn_flag in '' yes | |
6562 | do | |
6563 | # Use a header file that comes with gcc, so configuring glibc | |
6564 | # with a fresh cross-compiler works. | |
6565 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6566 | # <limits.h> exists even on freestanding compilers. | |
6567 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6568 | # not just through cpp. "Syntax error" is here to catch this case. | |
6569 | cat >conftest.$ac_ext <<_ACEOF | |
6570 | /* confdefs.h. */ | |
6571 | _ACEOF | |
6572 | cat confdefs.h >>conftest.$ac_ext | |
6573 | cat >>conftest.$ac_ext <<_ACEOF | |
6574 | /* end confdefs.h. */ | |
6575 | #ifdef __STDC__ | |
6576 | # include <limits.h> | |
6577 | #else | |
6578 | # include <assert.h> | |
6579 | #endif | |
6580 | Syntax error | |
6581 | _ACEOF | |
6582 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6583 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6584 | ac_status=$? | |
6585 | grep -v '^ *+' conftest.er1 >conftest.err | |
6586 | rm -f conftest.er1 | |
6587 | cat conftest.err >&5 | |
6588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6589 | (exit $ac_status); } >/dev/null; then | |
6590 | if test -s conftest.err; then | |
6591 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
6592 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
6593 | else | |
6594 | ac_cpp_err= | |
6595 | fi | |
6596 | else | |
6597 | ac_cpp_err=yes | |
6598 | fi | |
6599 | if test -z "$ac_cpp_err"; then | |
6600 | : | |
6601 | else | |
6602 | echo "$as_me: failed program was:" >&5 | |
6603 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6604 | ||
6605 | # Broken: fails on valid input. | |
6606 | continue | |
6607 | fi | |
6608 | rm -f conftest.err conftest.$ac_ext | |
6609 | ||
6610 | # OK, works on sane cases. Now check whether non-existent headers | |
6611 | # can be detected and how. | |
6612 | cat >conftest.$ac_ext <<_ACEOF | |
6613 | /* confdefs.h. */ | |
6614 | _ACEOF | |
6615 | cat confdefs.h >>conftest.$ac_ext | |
6616 | cat >>conftest.$ac_ext <<_ACEOF | |
6617 | /* end confdefs.h. */ | |
6618 | #include <ac_nonexistent.h> | |
6619 | _ACEOF | |
6620 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6621 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6622 | ac_status=$? | |
6623 | grep -v '^ *+' conftest.er1 >conftest.err | |
6624 | rm -f conftest.er1 | |
6625 | cat conftest.err >&5 | |
6626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6627 | (exit $ac_status); } >/dev/null; then | |
6628 | if test -s conftest.err; then | |
6629 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
6630 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
6631 | else | |
6632 | ac_cpp_err= | |
6633 | fi | |
6634 | else | |
6635 | ac_cpp_err=yes | |
6636 | fi | |
6637 | if test -z "$ac_cpp_err"; then | |
6638 | # Broken: success on invalid input. | |
6639 | continue | |
6640 | else | |
6641 | echo "$as_me: failed program was:" >&5 | |
6642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6643 | ||
6644 | # Passes both tests. | |
6645 | ac_preproc_ok=: | |
6646 | break | |
6647 | fi | |
6648 | rm -f conftest.err conftest.$ac_ext | |
6649 | ||
6650 | done | |
6651 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6652 | rm -f conftest.err conftest.$ac_ext | |
6653 | if $ac_preproc_ok; then | |
6654 | break | |
6655 | fi | |
6656 | ||
6657 | done | |
6658 | ac_cv_prog_CXXCPP=$CXXCPP | |
6659 | ||
6660 | fi | |
6661 | CXXCPP=$ac_cv_prog_CXXCPP | |
6662 | else | |
6663 | ac_cv_prog_CXXCPP=$CXXCPP | |
6664 | fi | |
6665 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
6666 | echo "${ECHO_T}$CXXCPP" >&6 | |
6667 | ac_preproc_ok=false | |
6668 | for ac_cxx_preproc_warn_flag in '' yes | |
6669 | do | |
6670 | # Use a header file that comes with gcc, so configuring glibc | |
6671 | # with a fresh cross-compiler works. | |
6672 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6673 | # <limits.h> exists even on freestanding compilers. | |
6674 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6675 | # not just through cpp. "Syntax error" is here to catch this case. | |
6676 | cat >conftest.$ac_ext <<_ACEOF | |
6677 | /* confdefs.h. */ | |
6678 | _ACEOF | |
6679 | cat confdefs.h >>conftest.$ac_ext | |
6680 | cat >>conftest.$ac_ext <<_ACEOF | |
6681 | /* end confdefs.h. */ | |
6682 | #ifdef __STDC__ | |
6683 | # include <limits.h> | |
6684 | #else | |
6685 | # include <assert.h> | |
6686 | #endif | |
6687 | Syntax error | |
6688 | _ACEOF | |
6689 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6690 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6691 | ac_status=$? | |
6692 | grep -v '^ *+' conftest.er1 >conftest.err | |
6693 | rm -f conftest.er1 | |
6694 | cat conftest.err >&5 | |
6695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6696 | (exit $ac_status); } >/dev/null; then | |
6697 | if test -s conftest.err; then | |
6698 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
6699 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
6700 | else | |
6701 | ac_cpp_err= | |
6702 | fi | |
6703 | else | |
6704 | ac_cpp_err=yes | |
6705 | fi | |
6706 | if test -z "$ac_cpp_err"; then | |
6707 | : | |
6708 | else | |
6709 | echo "$as_me: failed program was:" >&5 | |
6710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6711 | ||
6712 | # Broken: fails on valid input. | |
6713 | continue | |
6714 | fi | |
6715 | rm -f conftest.err conftest.$ac_ext | |
6716 | ||
6717 | # OK, works on sane cases. Now check whether non-existent headers | |
6718 | # can be detected and how. | |
6719 | cat >conftest.$ac_ext <<_ACEOF | |
6720 | /* confdefs.h. */ | |
6721 | _ACEOF | |
6722 | cat confdefs.h >>conftest.$ac_ext | |
6723 | cat >>conftest.$ac_ext <<_ACEOF | |
6724 | /* end confdefs.h. */ | |
6725 | #include <ac_nonexistent.h> | |
6726 | _ACEOF | |
6727 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6728 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6729 | ac_status=$? | |
6730 | grep -v '^ *+' conftest.er1 >conftest.err | |
6731 | rm -f conftest.er1 | |
6732 | cat conftest.err >&5 | |
6733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6734 | (exit $ac_status); } >/dev/null; then | |
6735 | if test -s conftest.err; then | |
6736 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
6737 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
6738 | else | |
6739 | ac_cpp_err= | |
6740 | fi | |
6741 | else | |
6742 | ac_cpp_err=yes | |
6743 | fi | |
6744 | if test -z "$ac_cpp_err"; then | |
6745 | # Broken: success on invalid input. | |
6746 | continue | |
6747 | else | |
6748 | echo "$as_me: failed program was:" >&5 | |
6749 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6750 | ||
6751 | # Passes both tests. | |
6752 | ac_preproc_ok=: | |
6753 | break | |
6754 | fi | |
6755 | rm -f conftest.err conftest.$ac_ext | |
6756 | ||
6757 | done | |
6758 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6759 | rm -f conftest.err conftest.$ac_ext | |
6760 | if $ac_preproc_ok; then | |
6761 | : | |
6762 | else | |
6763 | _lt_caught_CXX_error=yes | |
6764 | fi | |
6765 | ||
6766 | ac_ext=c | |
6767 | ac_cpp='$CPP $CPPFLAGS' | |
6768 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6769 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6770 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6771 | ||
6772 | else | |
6773 | _lt_caught_CXX_error=yes | |
6774 | fi | |
6775 | ||
6776 | ||
6777 | ||
6778 | ||
6779 | ||
6780 | # This can be used to rebuild libtool when needed | |
6781 | LIBTOOL_DEPS="$ltmain" | |
6782 | ||
6783 | # Always use our own libtool. | |
6784 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
6785 | ||
6786 | ||
6787 | ||
6788 | ||
6789 | ||
6790 | ||
6791 | ||
6792 | ||
6793 | ||
6794 | ||
6795 | ||
6796 | ||
6797 | ||
6798 | ||
6799 | ||
6800 | ||
6801 | ||
6802 | ||
6803 | ||
6804 | ||
6805 | ||
6806 | ||
6807 | ||
6808 | ||
6809 | ||
6810 | test -z "$LN_S" && LN_S="ln -s" | |
6811 | ||
6812 | ||
6813 | ||
6814 | ||
6815 | ||
6816 | ||
6817 | ||
6818 | ||
6819 | ||
6820 | ||
6821 | ||
6822 | ||
6823 | ||
6824 | ||
6825 | if test -n "${ZSH_VERSION+set}" ; then | |
6826 | setopt NO_GLOB_SUBST | |
6827 | fi | |
6828 | ||
6829 | echo "$as_me:$LINENO: checking for objdir" >&5 | |
6830 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | |
6831 | if test "${lt_cv_objdir+set}" = set; then | |
6832 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6833 | else | |
6834 | rm -f .libs 2>/dev/null | |
6835 | mkdir .libs 2>/dev/null | |
6836 | if test -d .libs; then | |
6837 | lt_cv_objdir=.libs | |
6838 | else | |
6839 | # MS-DOS does not allow filenames that begin with a dot. | |
6840 | lt_cv_objdir=_libs | |
6841 | fi | |
6842 | rmdir .libs 2>/dev/null | |
6843 | fi | |
6844 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
6845 | echo "${ECHO_T}$lt_cv_objdir" >&6 | |
6846 | objdir=$lt_cv_objdir | |
6847 | ||
6848 | ||
6849 | ||
6850 | ||
6851 | ||
6852 | cat >>confdefs.h <<_ACEOF | |
6853 | #define LT_OBJDIR "$lt_cv_objdir/" | |
6854 | _ACEOF | |
6855 | ||
6856 | ||
6857 | ||
6858 | ||
6859 | ||
6860 | ||
6861 | ||
6862 | ||
6863 | ||
6864 | ||
6865 | ||
6866 | ||
6867 | ||
6868 | ||
6869 | ||
6870 | ||
6871 | ||
6872 | case $host_os in | |
6873 | aix3*) | |
6874 | # AIX sometimes has problems with the GCC collect2 program. For some | |
6875 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
6876 | # vanish in a puff of smoke. | |
6877 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
6878 | COLLECT_NAMES= | |
6879 | export COLLECT_NAMES | |
6880 | fi | |
6881 | ;; | |
6882 | esac | |
6883 | ||
6884 | # Sed substitution that helps us do robust quoting. It backslashifies | |
6885 | # metacharacters that are still active within double-quoted strings. | |
6886 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
6887 | ||
6888 | # Same as above, but do not quote variable references. | |
6889 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
6890 | ||
6891 | # Sed substitution to delay expansion of an escaped shell variable in a | |
6892 | # double_quote_subst'ed string. | |
6893 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
6894 | ||
6895 | # Sed substitution to delay expansion of an escaped single quote. | |
6896 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
6897 | ||
6898 | # Sed substitution to avoid accidental globbing in evaled expressions | |
6899 | no_glob_subst='s/\*/\\\*/g' | |
6900 | ||
6901 | # Global variables: | |
6902 | ofile=libtool | |
6903 | can_build_shared=yes | |
6904 | ||
6905 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
6906 | # which needs '.lib'). | |
6907 | libext=a | |
6908 | ||
6909 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
6910 | ||
6911 | old_CC="$CC" | |
6912 | old_CFLAGS="$CFLAGS" | |
6913 | ||
6914 | # Set sane defaults for various variables | |
6915 | test -z "$CC" && CC=cc | |
6916 | test -z "$LTCC" && LTCC=$CC | |
6917 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
6918 | test -z "$LD" && LD=ld | |
6919 | test -z "$ac_objext" && ac_objext=o | |
6920 | ||
6921 | for cc_temp in $compiler""; do | |
6922 | case $cc_temp in | |
6923 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6924 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6925 | \-*) ;; | |
6926 | *) break;; | |
6927 | esac | |
6928 | done | |
6929 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
6930 | ||
6931 | ||
6932 | # Only perform the check for file, if the check method requires it | |
6933 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
6934 | case $deplibs_check_method in | |
6935 | file_magic*) | |
6936 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
6937 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
6938 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
6939 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
6940 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6941 | else | |
6942 | case $MAGIC_CMD in | |
6943 | [\\/*] | ?:[\\/]*) | |
6944 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6945 | ;; | |
6946 | *) | |
6947 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6948 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6949 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6950 | for ac_dir in $ac_dummy; do | |
6951 | IFS="$lt_save_ifs" | |
6952 | test -z "$ac_dir" && ac_dir=. | |
6953 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
6954 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
6955 | if test -n "$file_magic_test_file"; then | |
6956 | case $deplibs_check_method in | |
6957 | "file_magic "*) | |
6958 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6959 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6960 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6961 | $EGREP "$file_magic_regex" > /dev/null; then | |
6962 | : | |
6963 | else | |
6964 | cat <<_LT_EOF 1>&2 | |
6965 | ||
6966 | *** Warning: the command libtool uses to detect shared libraries, | |
6967 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6968 | *** The result is that libtool may fail to recognize shared libraries | |
6969 | *** as such. This will affect the creation of libtool libraries that | |
6970 | *** depend on shared libraries, but programs linked with such libtool | |
6971 | *** libraries will work regardless of this problem. Nevertheless, you | |
6972 | *** may want to report the problem to your system manager and/or to | |
6973 | *** bug-libtool@gnu.org | |
6974 | ||
6975 | _LT_EOF | |
6976 | fi ;; | |
6977 | esac | |
6978 | fi | |
6979 | break | |
6980 | fi | |
6981 | done | |
6982 | IFS="$lt_save_ifs" | |
6983 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6984 | ;; | |
6985 | esac | |
6986 | fi | |
6987 | ||
6988 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6989 | if test -n "$MAGIC_CMD"; then | |
6990 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
6991 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
6992 | else | |
6993 | echo "$as_me:$LINENO: result: no" >&5 | |
6994 | echo "${ECHO_T}no" >&6 | |
6995 | fi | |
6996 | ||
6997 | ||
6998 | ||
6999 | ||
7000 | ||
7001 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
7002 | if test -n "$ac_tool_prefix"; then | |
7003 | echo "$as_me:$LINENO: checking for file" >&5 | |
7004 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
7005 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
7006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7007 | else | |
7008 | case $MAGIC_CMD in | |
7009 | [\\/*] | ?:[\\/]*) | |
7010 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7011 | ;; | |
7012 | *) | |
7013 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7014 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7015 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7016 | for ac_dir in $ac_dummy; do | |
7017 | IFS="$lt_save_ifs" | |
7018 | test -z "$ac_dir" && ac_dir=. | |
7019 | if test -f $ac_dir/file; then | |
7020 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7021 | if test -n "$file_magic_test_file"; then | |
7022 | case $deplibs_check_method in | |
7023 | "file_magic "*) | |
7024 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7025 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7026 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7027 | $EGREP "$file_magic_regex" > /dev/null; then | |
7028 | : | |
7029 | else | |
7030 | cat <<_LT_EOF 1>&2 | |
7031 | ||
7032 | *** Warning: the command libtool uses to detect shared libraries, | |
7033 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7034 | *** The result is that libtool may fail to recognize shared libraries | |
7035 | *** as such. This will affect the creation of libtool libraries that | |
7036 | *** depend on shared libraries, but programs linked with such libtool | |
7037 | *** libraries will work regardless of this problem. Nevertheless, you | |
7038 | *** may want to report the problem to your system manager and/or to | |
7039 | *** bug-libtool@gnu.org | |
7040 | ||
7041 | _LT_EOF | |
7042 | fi ;; | |
7043 | esac | |
7044 | fi | |
7045 | break | |
7046 | fi | |
7047 | done | |
7048 | IFS="$lt_save_ifs" | |
7049 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7050 | ;; | |
7051 | esac | |
7052 | fi | |
7053 | ||
7054 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7055 | if test -n "$MAGIC_CMD"; then | |
7056 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
7057 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
7058 | else | |
7059 | echo "$as_me:$LINENO: result: no" >&5 | |
7060 | echo "${ECHO_T}no" >&6 | |
7061 | fi | |
7062 | ||
7063 | ||
7064 | else | |
7065 | MAGIC_CMD=: | |
7066 | fi | |
7067 | fi | |
7068 | ||
7069 | fi | |
7070 | ;; | |
7071 | esac | |
7072 | ||
7073 | # Use C for the default configuration in the libtool script | |
7074 | ||
7075 | lt_save_CC="$CC" | |
7076 | ac_ext=c | |
7077 | ac_cpp='$CPP $CPPFLAGS' | |
7078 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7079 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7080 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7081 | ||
7082 | ||
7083 | # Source file extension for C test sources. | |
7084 | ac_ext=c | |
7085 | ||
7086 | # Object file extension for compiled C test sources. | |
7087 | objext=o | |
7088 | objext=$objext | |
7089 | ||
7090 | # Code to be used in simple compile tests | |
7091 | lt_simple_compile_test_code="int some_variable = 0;" | |
7092 | ||
7093 | # Code to be used in simple link tests | |
7094 | lt_simple_link_test_code='int main(){return(0);}' | |
7095 | ||
7096 | ||
7097 | ||
7098 | ||
7099 | ||
7100 | ||
7101 | ||
7102 | # If no C compiler was specified, use CC. | |
7103 | LTCC=${LTCC-"$CC"} | |
7104 | ||
7105 | # If no C compiler flags were specified, use CFLAGS. | |
7106 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7107 | ||
7108 | # Allow CC to be a program name with arguments. | |
7109 | compiler=$CC | |
7110 | ||
7111 | # Save the default compiler, since it gets overwritten when the other | |
7112 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
7113 | compiler_DEFAULT=$CC | |
7114 | ||
7115 | # save warnings/boilerplate of simple test code | |
7116 | ac_outfile=conftest.$ac_objext | |
7117 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
7118 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7119 | _lt_compiler_boilerplate=`cat conftest.err` | |
7120 | $RM conftest* | |
7121 | ||
7122 | ac_outfile=conftest.$ac_objext | |
7123 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
7124 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7125 | _lt_linker_boilerplate=`cat conftest.err` | |
7126 | $RM conftest* | |
7127 | ||
7128 | ||
7129 | ## CAVEAT EMPTOR: | |
7130 | ## There is no encapsulation within the following macros, do not change | |
7131 | ## the running order or otherwise move them around unless you know exactly | |
7132 | ## what you are doing... | |
7133 | if test -n "$compiler"; then | |
7134 | ||
7135 | lt_prog_compiler_no_builtin_flag= | |
7136 | ||
7137 | if test "$GCC" = yes; then | |
7138 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
7139 | ||
7140 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
7141 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
7142 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
7143 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7144 | else | |
7145 | lt_cv_prog_compiler_rtti_exceptions=no | |
7146 | ac_outfile=conftest.$ac_objext | |
7147 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7148 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
7149 | # Insert the option either (1) after the last *FLAGS variable, or | |
7150 | # (2) before a word containing "conftest.", or (3) at the end. | |
7151 | # Note that $ac_compile itself does not contain backslashes and begins | |
7152 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7153 | # The option is referenced via a variable to avoid confusing sed. | |
7154 | lt_compile=`echo "$ac_compile" | $SED \ | |
7155 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7156 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7157 | -e 's:$: $lt_compiler_flag:'` | |
82a6cadf | 7158 | (eval echo "\"\$as_me:7158: $lt_compile\"" >&5) |
1cf3d07d SE |
7159 | (eval "$lt_compile" 2>conftest.err) |
7160 | ac_status=$? | |
7161 | cat conftest.err >&5 | |
82a6cadf | 7162 | echo "$as_me:7162: \$? = $ac_status" >&5 |
1cf3d07d SE |
7163 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7164 | # The compiler can only warn and ignore the option if not recognized | |
7165 | # So say no if there are warnings other than the usual output. | |
7166 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7167 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7168 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7169 | lt_cv_prog_compiler_rtti_exceptions=yes | |
7170 | fi | |
7171 | fi | |
7172 | $RM conftest* | |
7173 | ||
7174 | fi | |
7175 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
7176 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
7177 | ||
7178 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
7179 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
7180 | else | |
7181 | : | |
7182 | fi | |
7183 | ||
7184 | fi | |
7185 | ||
7186 | ||
7187 | ||
7188 | ||
7189 | ||
7190 | ||
7191 | lt_prog_compiler_wl= | |
7192 | lt_prog_compiler_pic= | |
7193 | lt_prog_compiler_static= | |
7194 | ||
7195 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
7196 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
7197 | ||
7198 | if test "$GCC" = yes; then | |
7199 | lt_prog_compiler_wl='-Wl,' | |
7200 | lt_prog_compiler_static='-static' | |
7201 | ||
7202 | case $host_os in | |
7203 | aix*) | |
7204 | # All AIX code is PIC. | |
7205 | if test "$host_cpu" = ia64; then | |
7206 | # AIX 5 now supports IA64 processor | |
7207 | lt_prog_compiler_static='-Bstatic' | |
7208 | fi | |
7209 | ;; | |
7210 | ||
7211 | amigaos*) | |
7212 | if test "$host_cpu" = m68k; then | |
7213 | # FIXME: we need at least 68020 code to build shared libraries, but | |
7214 | # adding the `-m68020' flag to GCC prevents building anything better, | |
7215 | # like `-m68040'. | |
7216 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
7217 | fi | |
7218 | ;; | |
7219 | ||
7220 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
7221 | # PIC is the default for these OSes. | |
7222 | ;; | |
7223 | ||
7224 | mingw* | cygwin* | pw32* | os2*) | |
7225 | # This hack is so that the source file can tell whether it is being | |
7226 | # built for inclusion in a dll (and should export symbols for example). | |
7227 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
7228 | # (--disable-auto-import) libraries | |
7229 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
7230 | ;; | |
7231 | ||
7232 | darwin* | rhapsody*) | |
7233 | # PIC is the default on this platform | |
7234 | # Common symbols not allowed in MH_DYLIB files | |
7235 | lt_prog_compiler_pic='-fno-common' | |
7236 | ;; | |
7237 | ||
7238 | hpux*) | |
7239 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
7240 | # not for PA HP-UX. | |
7241 | case $host_cpu in | |
7242 | hppa*64*|ia64*) | |
7243 | # +Z the default | |
7244 | ;; | |
7245 | *) | |
7246 | lt_prog_compiler_pic='-fPIC' | |
7247 | ;; | |
7248 | esac | |
7249 | ;; | |
7250 | ||
7251 | interix[3-9]*) | |
7252 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
7253 | # Instead, we relocate shared libraries at runtime. | |
7254 | ;; | |
7255 | ||
7256 | msdosdjgpp*) | |
7257 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
7258 | # on systems that don't support them. | |
7259 | lt_prog_compiler_can_build_shared=no | |
7260 | enable_shared=no | |
7261 | ;; | |
7262 | ||
7263 | *nto* | *qnx*) | |
7264 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7265 | # it will coredump. | |
7266 | lt_prog_compiler_pic='-fPIC -shared' | |
7267 | ;; | |
7268 | ||
7269 | sysv4*MP*) | |
7270 | if test -d /usr/nec; then | |
7271 | lt_prog_compiler_pic=-Kconform_pic | |
7272 | fi | |
7273 | ;; | |
7274 | ||
7275 | *) | |
7276 | lt_prog_compiler_pic='-fPIC' | |
7277 | ;; | |
7278 | esac | |
7279 | else | |
7280 | # PORTME Check for flag to pass linker flags through the system compiler. | |
7281 | case $host_os in | |
7282 | aix*) | |
7283 | lt_prog_compiler_wl='-Wl,' | |
7284 | if test "$host_cpu" = ia64; then | |
7285 | # AIX 5 now supports IA64 processor | |
7286 | lt_prog_compiler_static='-Bstatic' | |
7287 | else | |
7288 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
7289 | fi | |
7290 | ;; | |
7291 | darwin*) | |
7292 | # PIC is the default on this platform | |
7293 | # Common symbols not allowed in MH_DYLIB files | |
7294 | case $cc_basename in | |
7295 | xlc*) | |
7296 | lt_prog_compiler_pic='-qnocommon' | |
7297 | lt_prog_compiler_wl='-Wl,' | |
7298 | ;; | |
7299 | esac | |
7300 | ;; | |
7301 | ||
7302 | mingw* | cygwin* | pw32* | os2*) | |
7303 | # This hack is so that the source file can tell whether it is being | |
7304 | # built for inclusion in a dll (and should export symbols for example). | |
7305 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
7306 | ;; | |
7307 | ||
7308 | hpux9* | hpux10* | hpux11*) | |
7309 | lt_prog_compiler_wl='-Wl,' | |
7310 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
7311 | # not for PA HP-UX. | |
7312 | case $host_cpu in | |
7313 | hppa*64*|ia64*) | |
7314 | # +Z the default | |
7315 | ;; | |
7316 | *) | |
7317 | lt_prog_compiler_pic='+Z' | |
7318 | ;; | |
7319 | esac | |
7320 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
7321 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
7322 | ;; | |
7323 | ||
7324 | irix5* | irix6* | nonstopux*) | |
7325 | lt_prog_compiler_wl='-Wl,' | |
7326 | # PIC (with -KPIC) is the default. | |
7327 | lt_prog_compiler_static='-non_shared' | |
7328 | ;; | |
7329 | ||
7330 | linux* | k*bsd*-gnu) | |
7331 | case $cc_basename in | |
7332 | icc* | ecc*) | |
7333 | lt_prog_compiler_wl='-Wl,' | |
7334 | lt_prog_compiler_pic='-KPIC' | |
7335 | lt_prog_compiler_static='-static' | |
7336 | ;; | |
7337 | pgcc* | pgf77* | pgf90* | pgf95*) | |
7338 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
7339 | # which looks to be a dead project) | |
7340 | lt_prog_compiler_wl='-Wl,' | |
7341 | lt_prog_compiler_pic='-fpic' | |
7342 | lt_prog_compiler_static='-Bstatic' | |
7343 | ;; | |
7344 | ccc*) | |
7345 | lt_prog_compiler_wl='-Wl,' | |
7346 | # All Alpha code is PIC. | |
7347 | lt_prog_compiler_static='-non_shared' | |
7348 | ;; | |
7349 | *) | |
7350 | case `$CC -V 2>&1 | sed 5q` in | |
7351 | *Sun\ C*) | |
7352 | # Sun C 5.9 | |
7353 | lt_prog_compiler_pic='-KPIC' | |
7354 | lt_prog_compiler_static='-Bstatic' | |
7355 | lt_prog_compiler_wl='-Wl,' | |
7356 | ;; | |
7357 | *Sun\ F*) | |
7358 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
7359 | lt_prog_compiler_pic='-KPIC' | |
7360 | lt_prog_compiler_static='-Bstatic' | |
7361 | lt_prog_compiler_wl='' | |
7362 | ;; | |
7363 | esac | |
7364 | ;; | |
7365 | esac | |
7366 | ;; | |
7367 | ||
7368 | newsos6) | |
7369 | lt_prog_compiler_pic='-KPIC' | |
7370 | lt_prog_compiler_static='-Bstatic' | |
7371 | ;; | |
7372 | ||
7373 | *nto* | *qnx*) | |
7374 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7375 | # it will coredump. | |
7376 | lt_prog_compiler_pic='-fPIC -shared' | |
7377 | ;; | |
7378 | ||
7379 | osf3* | osf4* | osf5*) | |
7380 | lt_prog_compiler_wl='-Wl,' | |
7381 | # All OSF/1 code is PIC. | |
7382 | lt_prog_compiler_static='-non_shared' | |
7383 | ;; | |
7384 | ||
7385 | rdos*) | |
7386 | lt_prog_compiler_static='-non_shared' | |
7387 | ;; | |
7388 | ||
7389 | solaris*) | |
7390 | lt_prog_compiler_pic='-KPIC' | |
7391 | lt_prog_compiler_static='-Bstatic' | |
7392 | case $cc_basename in | |
7393 | f77* | f90* | f95*) | |
7394 | lt_prog_compiler_wl='-Qoption ld ';; | |
7395 | *) | |
7396 | lt_prog_compiler_wl='-Wl,';; | |
7397 | esac | |
7398 | ;; | |
7399 | ||
7400 | sunos4*) | |
7401 | lt_prog_compiler_wl='-Qoption ld ' | |
7402 | lt_prog_compiler_pic='-PIC' | |
7403 | lt_prog_compiler_static='-Bstatic' | |
7404 | ;; | |
7405 | ||
7406 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
7407 | lt_prog_compiler_wl='-Wl,' | |
7408 | lt_prog_compiler_pic='-KPIC' | |
7409 | lt_prog_compiler_static='-Bstatic' | |
7410 | ;; | |
7411 | ||
7412 | sysv4*MP*) | |
7413 | if test -d /usr/nec ;then | |
7414 | lt_prog_compiler_pic='-Kconform_pic' | |
7415 | lt_prog_compiler_static='-Bstatic' | |
7416 | fi | |
7417 | ;; | |
7418 | ||
7419 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
7420 | lt_prog_compiler_wl='-Wl,' | |
7421 | lt_prog_compiler_pic='-KPIC' | |
7422 | lt_prog_compiler_static='-Bstatic' | |
7423 | ;; | |
7424 | ||
7425 | unicos*) | |
7426 | lt_prog_compiler_wl='-Wl,' | |
7427 | lt_prog_compiler_can_build_shared=no | |
7428 | ;; | |
7429 | ||
7430 | uts4*) | |
7431 | lt_prog_compiler_pic='-pic' | |
7432 | lt_prog_compiler_static='-Bstatic' | |
7433 | ;; | |
7434 | ||
7435 | *) | |
7436 | lt_prog_compiler_can_build_shared=no | |
7437 | ;; | |
7438 | esac | |
7439 | fi | |
7440 | ||
7441 | case $host_os in | |
7442 | # For platforms which do not support PIC, -DPIC is meaningless: | |
7443 | *djgpp*) | |
7444 | lt_prog_compiler_pic= | |
7445 | ;; | |
7446 | *) | |
7447 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
7448 | ;; | |
7449 | esac | |
7450 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
7451 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 | |
7452 | ||
7453 | ||
7454 | ||
7455 | ||
7456 | ||
7457 | ||
7458 | # | |
7459 | # Check to make sure the PIC flag actually works. | |
7460 | # | |
7461 | if test -n "$lt_prog_compiler_pic"; then | |
7462 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
7463 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 | |
7464 | if test "${lt_prog_compiler_pic_works+set}" = set; then | |
7465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7466 | else | |
7467 | lt_prog_compiler_pic_works=no | |
7468 | ac_outfile=conftest.$ac_objext | |
7469 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7470 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
7471 | # Insert the option either (1) after the last *FLAGS variable, or | |
7472 | # (2) before a word containing "conftest.", or (3) at the end. | |
7473 | # Note that $ac_compile itself does not contain backslashes and begins | |
7474 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7475 | # The option is referenced via a variable to avoid confusing sed. | |
7476 | lt_compile=`echo "$ac_compile" | $SED \ | |
7477 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7478 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7479 | -e 's:$: $lt_compiler_flag:'` | |
82a6cadf | 7480 | (eval echo "\"\$as_me:7480: $lt_compile\"" >&5) |
1cf3d07d SE |
7481 | (eval "$lt_compile" 2>conftest.err) |
7482 | ac_status=$? | |
7483 | cat conftest.err >&5 | |
82a6cadf | 7484 | echo "$as_me:7484: \$? = $ac_status" >&5 |
1cf3d07d SE |
7485 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7486 | # The compiler can only warn and ignore the option if not recognized | |
7487 | # So say no if there are warnings other than the usual output. | |
7488 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7489 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7490 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7491 | lt_prog_compiler_pic_works=yes | |
7492 | fi | |
7493 | fi | |
7494 | $RM conftest* | |
7495 | ||
7496 | fi | |
7497 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | |
7498 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 | |
7499 | ||
7500 | if test x"$lt_prog_compiler_pic_works" = xyes; then | |
7501 | case $lt_prog_compiler_pic in | |
7502 | "" | " "*) ;; | |
7503 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
7504 | esac | |
7505 | else | |
7506 | lt_prog_compiler_pic= | |
7507 | lt_prog_compiler_can_build_shared=no | |
7508 | fi | |
7509 | ||
7510 | fi | |
7511 | ||
7512 | ||
7513 | ||
7514 | ||
7515 | ||
7516 | ||
7517 | # | |
7518 | # Check to make sure the static flag actually works. | |
7519 | # | |
7520 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
7521 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
7522 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | |
7523 | if test "${lt_prog_compiler_static_works+set}" = set; then | |
7524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7525 | else | |
7526 | lt_prog_compiler_static_works=no | |
7527 | save_LDFLAGS="$LDFLAGS" | |
7528 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
7529 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
7530 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
7531 | # The linker can only warn and ignore the option if not recognized | |
7532 | # So say no if there are warnings | |
7533 | if test -s conftest.err; then | |
7534 | # Append any errors to the config.log. | |
7535 | cat conftest.err 1>&5 | |
7536 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
7537 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7538 | if diff conftest.exp conftest.er2 >/dev/null; then | |
7539 | lt_prog_compiler_static_works=yes | |
7540 | fi | |
7541 | else | |
7542 | lt_prog_compiler_static_works=yes | |
7543 | fi | |
7544 | fi | |
7545 | $RM conftest* | |
7546 | LDFLAGS="$save_LDFLAGS" | |
7547 | ||
7548 | fi | |
7549 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | |
7550 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 | |
7551 | ||
7552 | if test x"$lt_prog_compiler_static_works" = xyes; then | |
7553 | : | |
7554 | else | |
7555 | lt_prog_compiler_static= | |
7556 | fi | |
7557 | ||
7558 | ||
7559 | ||
7560 | ||
7561 | ||
7562 | ||
7563 | ||
7564 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7565 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
7566 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
7567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7568 | else | |
7569 | lt_cv_prog_compiler_c_o=no | |
7570 | $RM -r conftest 2>/dev/null | |
7571 | mkdir conftest | |
7572 | cd conftest | |
7573 | mkdir out | |
7574 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7575 | ||
7576 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7577 | # Insert the option either (1) after the last *FLAGS variable, or | |
7578 | # (2) before a word containing "conftest.", or (3) at the end. | |
7579 | # Note that $ac_compile itself does not contain backslashes and begins | |
7580 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7581 | lt_compile=`echo "$ac_compile" | $SED \ | |
7582 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7583 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7584 | -e 's:$: $lt_compiler_flag:'` | |
82a6cadf | 7585 | (eval echo "\"\$as_me:7585: $lt_compile\"" >&5) |
1cf3d07d SE |
7586 | (eval "$lt_compile" 2>out/conftest.err) |
7587 | ac_status=$? | |
7588 | cat out/conftest.err >&5 | |
82a6cadf | 7589 | echo "$as_me:7589: \$? = $ac_status" >&5 |
1cf3d07d SE |
7590 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7591 | then | |
7592 | # The compiler can only warn and ignore the option if not recognized | |
7593 | # So say no if there are warnings | |
7594 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7595 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7596 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7597 | lt_cv_prog_compiler_c_o=yes | |
7598 | fi | |
7599 | fi | |
7600 | chmod u+w . 2>&5 | |
7601 | $RM conftest* | |
7602 | # SGI C++ compiler will create directory out/ii_files/ for | |
7603 | # template instantiation | |
7604 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7605 | $RM out/* && rmdir out | |
7606 | cd .. | |
7607 | $RM -r conftest | |
7608 | $RM conftest* | |
7609 | ||
7610 | fi | |
7611 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
7612 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
7613 | ||
7614 | ||
7615 | ||
7616 | ||
7617 | ||
7618 | ||
7619 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7620 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
7621 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
7622 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7623 | else | |
7624 | lt_cv_prog_compiler_c_o=no | |
7625 | $RM -r conftest 2>/dev/null | |
7626 | mkdir conftest | |
7627 | cd conftest | |
7628 | mkdir out | |
7629 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7630 | ||
7631 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7632 | # Insert the option either (1) after the last *FLAGS variable, or | |
7633 | # (2) before a word containing "conftest.", or (3) at the end. | |
7634 | # Note that $ac_compile itself does not contain backslashes and begins | |
7635 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7636 | lt_compile=`echo "$ac_compile" | $SED \ | |
7637 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7638 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7639 | -e 's:$: $lt_compiler_flag:'` | |
82a6cadf | 7640 | (eval echo "\"\$as_me:7640: $lt_compile\"" >&5) |
1cf3d07d SE |
7641 | (eval "$lt_compile" 2>out/conftest.err) |
7642 | ac_status=$? | |
7643 | cat out/conftest.err >&5 | |
82a6cadf | 7644 | echo "$as_me:7644: \$? = $ac_status" >&5 |
1cf3d07d SE |
7645 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7646 | then | |
7647 | # The compiler can only warn and ignore the option if not recognized | |
7648 | # So say no if there are warnings | |
7649 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7650 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7651 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7652 | lt_cv_prog_compiler_c_o=yes | |
7653 | fi | |
7654 | fi | |
7655 | chmod u+w . 2>&5 | |
7656 | $RM conftest* | |
7657 | # SGI C++ compiler will create directory out/ii_files/ for | |
7658 | # template instantiation | |
7659 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7660 | $RM out/* && rmdir out | |
7661 | cd .. | |
7662 | $RM -r conftest | |
7663 | $RM conftest* | |
7664 | ||
7665 | fi | |
7666 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
7667 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
7668 | ||
7669 | ||
7670 | ||
7671 | ||
7672 | hard_links="nottested" | |
7673 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
7674 | # do not overwrite the value of need_locks provided by the user | |
7675 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
7676 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
7677 | hard_links=yes | |
7678 | $RM conftest* | |
7679 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7680 | touch conftest.a | |
7681 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
7682 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7683 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
7684 | echo "${ECHO_T}$hard_links" >&6 | |
7685 | if test "$hard_links" = no; then | |
7686 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
7687 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
7688 | need_locks=warn | |
7689 | fi | |
7690 | else | |
7691 | need_locks=no | |
7692 | fi | |
7693 | ||
7694 | ||
7695 | ||
7696 | ||
7697 | ||
7698 | ||
7699 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
7700 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
7701 | ||
7702 | runpath_var= | |
7703 | allow_undefined_flag= | |
7704 | always_export_symbols=no | |
7705 | archive_cmds= | |
7706 | archive_expsym_cmds= | |
7707 | compiler_needs_object=no | |
7708 | enable_shared_with_static_runtimes=no | |
7709 | export_dynamic_flag_spec= | |
7710 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
7711 | hardcode_automatic=no | |
7712 | hardcode_direct=no | |
7713 | hardcode_direct_absolute=no | |
7714 | hardcode_libdir_flag_spec= | |
7715 | hardcode_libdir_flag_spec_ld= | |
7716 | hardcode_libdir_separator= | |
7717 | hardcode_minus_L=no | |
7718 | hardcode_shlibpath_var=unsupported | |
7719 | inherit_rpath=no | |
7720 | link_all_deplibs=unknown | |
7721 | module_cmds= | |
7722 | module_expsym_cmds= | |
7723 | old_archive_from_new_cmds= | |
7724 | old_archive_from_expsyms_cmds= | |
7725 | thread_safe_flag_spec= | |
7726 | whole_archive_flag_spec= | |
7727 | # include_expsyms should be a list of space-separated symbols to be *always* | |
7728 | # included in the symbol list | |
7729 | include_expsyms= | |
7730 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
7731 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
7732 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
7733 | # as well as any symbol that contains `d'. | |
7734 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | |
7735 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
7736 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
7737 | # the symbol is explicitly referenced. Since portable code cannot | |
7738 | # rely on this symbol name, it's probably fine to never include it in | |
7739 | # preloaded symbol tables. | |
7740 | extract_expsyms_cmds= | |
7741 | ||
7742 | case $host_os in | |
7743 | cygwin* | mingw* | pw32*) | |
7744 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
7745 | # When not using gcc, we currently assume that we are using | |
7746 | # Microsoft Visual C++. | |
7747 | if test "$GCC" != yes; then | |
7748 | with_gnu_ld=no | |
7749 | fi | |
7750 | ;; | |
7751 | interix*) | |
7752 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
7753 | with_gnu_ld=yes | |
7754 | ;; | |
7755 | openbsd*) | |
7756 | with_gnu_ld=no | |
7757 | ;; | |
7758 | esac | |
7759 | ||
7760 | ld_shlibs=yes | |
7761 | if test "$with_gnu_ld" = yes; then | |
7762 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
7763 | wlarc='${wl}' | |
7764 | ||
7765 | # Set some defaults for GNU ld with shared library support. These | |
7766 | # are reset later if shared libraries are not supported. Putting them | |
7767 | # here allows them to be overridden if necessary. | |
7768 | runpath_var=LD_RUN_PATH | |
7769 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7770 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
7771 | # ancient GNU ld didn't support --whole-archive et. al. | |
7772 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
7773 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
7774 | else | |
7775 | whole_archive_flag_spec= | |
7776 | fi | |
7777 | supports_anon_versioning=no | |
7778 | case `$LD -v 2>&1` in | |
7779 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
7780 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
7781 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
7782 | *\ 2.11.*) ;; # other 2.11 versions | |
7783 | *) supports_anon_versioning=yes ;; | |
7784 | esac | |
7785 | ||
7786 | # See if GNU ld supports shared libraries. | |
7787 | case $host_os in | |
7788 | aix3* | aix4* | aix5*) | |
7789 | # On AIX/PPC, the GNU linker is very broken | |
7790 | if test "$host_cpu" != ia64; then | |
7791 | ld_shlibs=no | |
7792 | cat <<_LT_EOF 1>&2 | |
7793 | ||
7794 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
7795 | *** to be unable to reliably create shared libraries on AIX. | |
7796 | *** Therefore, libtool is disabling shared libraries support. If you | |
7797 | *** really care for shared libraries, you may want to modify your PATH | |
7798 | *** so that a non-GNU linker is found, and then restart. | |
7799 | ||
7800 | _LT_EOF | |
7801 | fi | |
7802 | ;; | |
7803 | ||
7804 | amigaos*) | |
7805 | if test "$host_cpu" = m68k; then | |
7806 | 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)' | |
7807 | hardcode_libdir_flag_spec='-L$libdir' | |
7808 | hardcode_minus_L=yes | |
7809 | fi | |
7810 | ||
7811 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
7812 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
7813 | # to version 4, is to share data among multiple programs linked | |
7814 | # with the same dynamic library. Since this doesn't match the | |
7815 | # behavior of shared libraries on other platforms, we can't use | |
7816 | # them. | |
7817 | ld_shlibs=no | |
7818 | ;; | |
7819 | ||
7820 | beos*) | |
7821 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7822 | allow_undefined_flag=unsupported | |
7823 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
7824 | # support --undefined. This deserves some investigation. FIXME | |
7825 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7826 | else | |
7827 | ld_shlibs=no | |
7828 | fi | |
7829 | ;; | |
7830 | ||
7831 | cygwin* | mingw* | pw32*) | |
7832 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
7833 | # as there is no search path for DLLs. | |
7834 | hardcode_libdir_flag_spec='-L$libdir' | |
7835 | allow_undefined_flag=unsupported | |
7836 | always_export_symbols=no | |
7837 | enable_shared_with_static_runtimes=yes | |
7838 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
7839 | ||
7840 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
7841 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7842 | # If the export-symbols file already is a .def file (1st line | |
7843 | # is EXPORTS), use it as is; otherwise, prepend... | |
7844 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
7845 | cp $export_symbols $output_objdir/$soname.def; | |
7846 | else | |
7847 | echo EXPORTS > $output_objdir/$soname.def; | |
7848 | cat $export_symbols >> $output_objdir/$soname.def; | |
7849 | fi~ | |
7850 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7851 | else | |
7852 | ld_shlibs=no | |
7853 | fi | |
7854 | ;; | |
7855 | ||
7856 | interix[3-9]*) | |
7857 | hardcode_direct=no | |
7858 | hardcode_shlibpath_var=no | |
7859 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7860 | export_dynamic_flag_spec='${wl}-E' | |
7861 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
7862 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
7863 | # default) and relocated if they conflict, which is a slow very memory | |
7864 | # consuming and fragmenting process. To avoid this, we pick a random, | |
7865 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
7866 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
7867 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
7868 | archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
7869 | ;; | |
7870 | ||
7871 | gnu* | linux* | tpf* | k*bsd*-gnu) | |
7872 | tmp_diet=no | |
7873 | if test "$host_os" = linux-dietlibc; then | |
7874 | case $cc_basename in | |
7875 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
7876 | esac | |
7877 | fi | |
7878 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
7879 | && test "$tmp_diet" = no | |
7880 | then | |
7881 | tmp_addflag= | |
7882 | case $cc_basename,$host_cpu in | |
7883 | pgcc*) # Portland Group C compiler | |
7884 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
7885 | tmp_addflag=' $pic_flag' | |
7886 | ;; | |
7887 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
7888 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
7889 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
7890 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
7891 | tmp_addflag=' -i_dynamic' ;; | |
7892 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
7893 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
7894 | ifc* | ifort*) # Intel Fortran compiler | |
7895 | tmp_addflag=' -nofor_main' ;; | |
7896 | esac | |
7897 | case `$CC -V 2>&1 | sed 5q` in | |
7898 | *Sun\ C*) # Sun C 5.9 | |
7899 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
7900 | compiler_needs_object=yes | |
7901 | tmp_sharedflag='-G' ;; | |
7902 | *Sun\ F*) # Sun Fortran 8.3 | |
7903 | tmp_sharedflag='-G' ;; | |
7904 | *) | |
7905 | tmp_sharedflag='-shared' ;; | |
7906 | esac | |
7907 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7908 | ||
7909 | if test "x$supports_anon_versioning" = xyes; then | |
7910 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
7911 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
7912 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
7913 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
7914 | fi | |
7915 | else | |
7916 | ld_shlibs=no | |
7917 | fi | |
7918 | ;; | |
7919 | ||
7920 | netbsd*) | |
7921 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
7922 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
7923 | wlarc= | |
7924 | else | |
7925 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7926 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7927 | fi | |
7928 | ;; | |
7929 | ||
7930 | solaris*) | |
7931 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
7932 | ld_shlibs=no | |
7933 | cat <<_LT_EOF 1>&2 | |
7934 | ||
7935 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
7936 | *** create shared libraries on Solaris systems. Therefore, libtool | |
7937 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7938 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
7939 | *** your PATH or compiler configuration so that the native linker is | |
7940 | *** used, and then restart. | |
7941 | ||
7942 | _LT_EOF | |
7943 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7944 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7945 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7946 | else | |
7947 | ld_shlibs=no | |
7948 | fi | |
7949 | ;; | |
7950 | ||
7951 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
7952 | case `$LD -v 2>&1` in | |
7953 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
7954 | ld_shlibs=no | |
7955 | cat <<_LT_EOF 1>&2 | |
7956 | ||
7957 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
7958 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
7959 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7960 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
7961 | *** your PATH or compiler configuration so that the native linker is | |
7962 | *** used, and then restart. | |
7963 | ||
7964 | _LT_EOF | |
7965 | ;; | |
7966 | *) | |
7967 | # For security reasons, it is highly recommended that you always | |
7968 | # use absolute paths for naming shared libraries, and exclude the | |
7969 | # DT_RUNPATH tag from executables and libraries. But doing so | |
7970 | # requires that you compile everything twice, which is a pain. | |
7971 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7972 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7973 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7974 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7975 | else | |
7976 | ld_shlibs=no | |
7977 | fi | |
7978 | ;; | |
7979 | esac | |
7980 | ;; | |
7981 | ||
7982 | sunos4*) | |
7983 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7984 | wlarc= | |
7985 | hardcode_direct=yes | |
7986 | hardcode_shlibpath_var=no | |
7987 | ;; | |
7988 | ||
7989 | *) | |
7990 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7991 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7992 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7993 | else | |
7994 | ld_shlibs=no | |
7995 | fi | |
7996 | ;; | |
7997 | esac | |
7998 | ||
7999 | if test "$ld_shlibs" = no; then | |
8000 | runpath_var= | |
8001 | hardcode_libdir_flag_spec= | |
8002 | export_dynamic_flag_spec= | |
8003 | whole_archive_flag_spec= | |
8004 | fi | |
8005 | else | |
8006 | # PORTME fill in a description of your system's linker (not GNU ld) | |
8007 | case $host_os in | |
8008 | aix3*) | |
8009 | allow_undefined_flag=unsupported | |
8010 | always_export_symbols=yes | |
8011 | 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' | |
8012 | # Note: this linker hardcodes the directories in LIBPATH if there | |
8013 | # are no directories specified by -L. | |
8014 | hardcode_minus_L=yes | |
8015 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
8016 | # Neither direct hardcoding nor static linking is supported with a | |
8017 | # broken collect2. | |
8018 | hardcode_direct=unsupported | |
8019 | fi | |
8020 | ;; | |
8021 | ||
8022 | aix4* | aix5*) | |
8023 | if test "$host_cpu" = ia64; then | |
8024 | # On IA64, the linker does run time linking by default, so we don't | |
8025 | # have to do anything special. | |
8026 | aix_use_runtimelinking=no | |
8027 | exp_sym_flag='-Bexport' | |
8028 | no_entry_flag="" | |
8029 | else | |
8030 | # If we're using GNU nm, then we don't want the "-C" option. | |
8031 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
8032 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
8033 | 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' | |
8034 | else | |
8035 | 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' | |
8036 | fi | |
8037 | aix_use_runtimelinking=no | |
8038 | ||
8039 | # Test if we are trying to use run time linking or normal | |
8040 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
8041 | # need to do runtime linking. | |
8042 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
8043 | for ld_flag in $LDFLAGS; do | |
8044 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
8045 | aix_use_runtimelinking=yes | |
8046 | break | |
8047 | fi | |
8048 | done | |
8049 | ;; | |
8050 | esac | |
8051 | ||
8052 | exp_sym_flag='-bexport' | |
8053 | no_entry_flag='-bnoentry' | |
8054 | fi | |
8055 | ||
8056 | # When large executables or shared objects are built, AIX ld can | |
8057 | # have problems creating the table of contents. If linking a library | |
8058 | # or program results in "error TOC overflow" add -mminimal-toc to | |
8059 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
8060 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
8061 | ||
8062 | archive_cmds='' | |
8063 | hardcode_direct=yes | |
8064 | hardcode_direct_absolute=yes | |
8065 | hardcode_libdir_separator=':' | |
8066 | link_all_deplibs=yes | |
8067 | file_list_spec='${wl}-f,' | |
8068 | ||
8069 | if test "$GCC" = yes; then | |
8070 | case $host_os in aix4.[012]|aix4.[012].*) | |
8071 | # We only want to do this on AIX 4.2 and lower, the check | |
8072 | # below for broken collect2 doesn't work under 4.3+ | |
8073 | collect2name=`${CC} -print-prog-name=collect2` | |
8074 | if test -f "$collect2name" && | |
8075 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
8076 | then | |
8077 | # We have reworked collect2 | |
8078 | : | |
8079 | else | |
8080 | # We have old collect2 | |
8081 | hardcode_direct=unsupported | |
8082 | # It fails to find uninstalled libraries when the uninstalled | |
8083 | # path is not listed in the libpath. Setting hardcode_minus_L | |
8084 | # to unsupported forces relinking | |
8085 | hardcode_minus_L=yes | |
8086 | hardcode_libdir_flag_spec='-L$libdir' | |
8087 | hardcode_libdir_separator= | |
8088 | fi | |
8089 | ;; | |
8090 | esac | |
8091 | shared_flag='-shared' | |
8092 | if test "$aix_use_runtimelinking" = yes; then | |
8093 | shared_flag="$shared_flag "'${wl}-G' | |
8094 | fi | |
8095 | else | |
8096 | # not using gcc | |
8097 | if test "$host_cpu" = ia64; then | |
8098 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
8099 | # chokes on -Wl,-G. The following line is correct: | |
8100 | shared_flag='-G' | |
8101 | else | |
8102 | if test "$aix_use_runtimelinking" = yes; then | |
8103 | shared_flag='${wl}-G' | |
8104 | else | |
8105 | shared_flag='${wl}-bM:SRE' | |
8106 | fi | |
8107 | fi | |
8108 | fi | |
8109 | ||
8110 | # It seems that -bexpall does not export symbols beginning with | |
8111 | # underscore (_), so it is better to generate a list of symbols to export. | |
8112 | always_export_symbols=yes | |
8113 | if test "$aix_use_runtimelinking" = yes; then | |
8114 | # Warning - without using the other runtime loading flags (-brtl), | |
8115 | # -berok will link without error, but may produce a broken library. | |
8116 | allow_undefined_flag='-berok' | |
8117 | # Determine the default libpath from the value encoded in an | |
8118 | # empty executable. | |
8119 | if test x$gcc_no_link = xyes; then | |
8120 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8121 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8122 | { (exit 1); exit 1; }; } | |
8123 | fi | |
8124 | cat >conftest.$ac_ext <<_ACEOF | |
8125 | /* confdefs.h. */ | |
8126 | _ACEOF | |
8127 | cat confdefs.h >>conftest.$ac_ext | |
8128 | cat >>conftest.$ac_ext <<_ACEOF | |
8129 | /* end confdefs.h. */ | |
8130 | ||
8131 | int | |
8132 | main () | |
8133 | { | |
8134 | ||
8135 | ; | |
8136 | return 0; | |
8137 | } | |
8138 | _ACEOF | |
8139 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8140 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8141 | (eval $ac_link) 2>conftest.er1 | |
8142 | ac_status=$? | |
8143 | grep -v '^ *+' conftest.er1 >conftest.err | |
8144 | rm -f conftest.er1 | |
8145 | cat conftest.err >&5 | |
8146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8147 | (exit $ac_status); } && | |
8148 | { ac_try='test -z "$ac_c_werror_flag" | |
8149 | || test ! -s conftest.err' | |
8150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8151 | (eval $ac_try) 2>&5 | |
8152 | ac_status=$? | |
8153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8154 | (exit $ac_status); }; } && | |
8155 | { ac_try='test -s conftest$ac_exeext' | |
8156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8157 | (eval $ac_try) 2>&5 | |
8158 | ac_status=$? | |
8159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8160 | (exit $ac_status); }; }; then | |
8161 | ||
8162 | lt_aix_libpath_sed=' | |
8163 | /Import File Strings/,/^$/ { | |
8164 | /^0/ { | |
8165 | s/^0 *\(.*\)$/\1/ | |
8166 | p | |
8167 | } | |
8168 | }' | |
8169 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8170 | # Check for a 64-bit object if we didn't find anything. | |
8171 | if test -z "$aix_libpath"; then | |
8172 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8173 | fi | |
8174 | else | |
8175 | echo "$as_me: failed program was:" >&5 | |
8176 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8177 | ||
8178 | fi | |
8179 | rm -f conftest.err conftest.$ac_objext \ | |
8180 | conftest$ac_exeext conftest.$ac_ext | |
8181 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
8182 | ||
8183 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
8184 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
8185 | else | |
8186 | if test "$host_cpu" = ia64; then | |
8187 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
8188 | allow_undefined_flag="-z nodefs" | |
8189 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
8190 | else | |
8191 | # Determine the default libpath from the value encoded in an | |
8192 | # empty executable. | |
8193 | if test x$gcc_no_link = xyes; then | |
8194 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8195 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8196 | { (exit 1); exit 1; }; } | |
8197 | fi | |
8198 | cat >conftest.$ac_ext <<_ACEOF | |
8199 | /* confdefs.h. */ | |
8200 | _ACEOF | |
8201 | cat confdefs.h >>conftest.$ac_ext | |
8202 | cat >>conftest.$ac_ext <<_ACEOF | |
8203 | /* end confdefs.h. */ | |
8204 | ||
8205 | int | |
8206 | main () | |
8207 | { | |
8208 | ||
8209 | ; | |
8210 | return 0; | |
8211 | } | |
8212 | _ACEOF | |
8213 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8214 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8215 | (eval $ac_link) 2>conftest.er1 | |
8216 | ac_status=$? | |
8217 | grep -v '^ *+' conftest.er1 >conftest.err | |
8218 | rm -f conftest.er1 | |
8219 | cat conftest.err >&5 | |
8220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8221 | (exit $ac_status); } && | |
8222 | { ac_try='test -z "$ac_c_werror_flag" | |
8223 | || test ! -s conftest.err' | |
8224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8225 | (eval $ac_try) 2>&5 | |
8226 | ac_status=$? | |
8227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8228 | (exit $ac_status); }; } && | |
8229 | { ac_try='test -s conftest$ac_exeext' | |
8230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8231 | (eval $ac_try) 2>&5 | |
8232 | ac_status=$? | |
8233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8234 | (exit $ac_status); }; }; then | |
8235 | ||
8236 | lt_aix_libpath_sed=' | |
8237 | /Import File Strings/,/^$/ { | |
8238 | /^0/ { | |
8239 | s/^0 *\(.*\)$/\1/ | |
8240 | p | |
8241 | } | |
8242 | }' | |
8243 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8244 | # Check for a 64-bit object if we didn't find anything. | |
8245 | if test -z "$aix_libpath"; then | |
8246 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8247 | fi | |
8248 | else | |
8249 | echo "$as_me: failed program was:" >&5 | |
8250 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8251 | ||
8252 | fi | |
8253 | rm -f conftest.err conftest.$ac_objext \ | |
8254 | conftest$ac_exeext conftest.$ac_ext | |
8255 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
8256 | ||
8257 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
8258 | # Warning - without using the other run time loading flags, | |
8259 | # -berok will link without error, but may produce a broken library. | |
8260 | no_undefined_flag=' ${wl}-bernotok' | |
8261 | allow_undefined_flag=' ${wl}-berok' | |
8262 | # Exported symbols can be pulled into shared objects from archives | |
8263 | whole_archive_flag_spec='$convenience' | |
8264 | archive_cmds_need_lc=yes | |
8265 | # This is similar to how AIX traditionally builds its shared libraries. | |
8266 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
8267 | fi | |
8268 | fi | |
8269 | ;; | |
8270 | ||
8271 | amigaos*) | |
8272 | if test "$host_cpu" = m68k; then | |
8273 | 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)' | |
8274 | hardcode_libdir_flag_spec='-L$libdir' | |
8275 | hardcode_minus_L=yes | |
8276 | fi | |
8277 | # see comment about different semantics on the GNU ld section | |
8278 | ld_shlibs=no | |
8279 | ;; | |
8280 | ||
8281 | bsdi[45]*) | |
8282 | export_dynamic_flag_spec=-rdynamic | |
8283 | ;; | |
8284 | ||
8285 | cygwin* | mingw* | pw32*) | |
8286 | # When not using gcc, we currently assume that we are using | |
8287 | # Microsoft Visual C++. | |
8288 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
8289 | # no search path for DLLs. | |
8290 | hardcode_libdir_flag_spec=' ' | |
8291 | allow_undefined_flag=unsupported | |
8292 | # Tell ltmain to make .lib files, not .a files. | |
8293 | libext=lib | |
8294 | # Tell ltmain to make .dll files, not .so files. | |
8295 | shrext_cmds=".dll" | |
8296 | # FIXME: Setting linknames here is a bad hack. | |
8297 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
8298 | # The linker will automatically build a .lib file if we build a DLL. | |
8299 | old_archive_from_new_cmds='true' | |
8300 | # FIXME: Should let the user specify the lib program. | |
8301 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
8302 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
8303 | enable_shared_with_static_runtimes=yes | |
8304 | ;; | |
8305 | ||
8306 | darwin* | rhapsody*) | |
8307 | case $host_os in | |
8308 | rhapsody* | darwin1.[012]) | |
8309 | allow_undefined_flag='${wl}-undefined ${wl}suppress' | |
8310 | ;; | |
8311 | *) # Darwin 1.3 on | |
8312 | case ${MACOSX_DEPLOYMENT_TARGET-10.0} in | |
8313 | 10.[012]) | |
8314 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
8315 | ;; | |
8316 | 10.*) | |
8317 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' | |
8318 | ;; | |
8319 | esac | |
8320 | ;; | |
8321 | esac | |
8322 | archive_cmds_need_lc=no | |
8323 | hardcode_direct=no | |
8324 | hardcode_automatic=yes | |
8325 | hardcode_shlibpath_var=unsupported | |
8326 | whole_archive_flag_spec='' | |
8327 | link_all_deplibs=yes | |
8328 | if test "$GCC" = yes ; then | |
8329 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then | |
8330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8331 | else | |
8332 | lt_cv_apple_cc_single_mod=no | |
8333 | if test -z "${LT_MULTI_MODULE}"; then | |
8334 | # By default we will add the -single_module flag. You can override | |
8335 | # by either setting the environment variable LT_MULTI_MODULE | |
8336 | # non-empty at configure time, or by adding -multi-module to the | |
8337 | # link flags. | |
8338 | echo "int foo(void){return 1;}" > conftest.c | |
8339 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8340 | -dynamiclib ${wl}-single_module conftest.c | |
8341 | if test -f libconftest.dylib; then | |
8342 | lt_cv_apple_cc_single_mod=yes | |
8343 | rm libconftest.dylib | |
8344 | fi | |
8345 | rm conftest.$ac_ext | |
8346 | fi | |
8347 | fi | |
8348 | ||
8349 | output_verbose_link_cmd=echo | |
8350 | if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then | |
8351 | archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
8352 | archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8353 | else | |
8354 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
8355 | archive_expsym_cmds='sed "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}' | |
8356 | fi | |
8357 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
8358 | module_expsym_cmds='sed -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}' | |
8359 | else | |
8360 | case $cc_basename in | |
8361 | xlc*) | |
8362 | output_verbose_link_cmd=echo | |
8363 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring' | |
8364 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
8365 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
8366 | archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8367 | module_expsym_cmds='sed "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}' | |
8368 | ;; | |
8369 | *) | |
8370 | ld_shlibs=no | |
8371 | ;; | |
8372 | esac | |
8373 | fi | |
8374 | ;; | |
8375 | ||
8376 | dgux*) | |
8377 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8378 | hardcode_libdir_flag_spec='-L$libdir' | |
8379 | hardcode_shlibpath_var=no | |
8380 | ;; | |
8381 | ||
8382 | freebsd1*) | |
8383 | ld_shlibs=no | |
8384 | ;; | |
8385 | ||
8386 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
8387 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
8388 | # does not break anything, and helps significantly (at the cost of a little | |
8389 | # extra space). | |
8390 | freebsd2.2*) | |
8391 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
8392 | hardcode_libdir_flag_spec='-R$libdir' | |
8393 | hardcode_direct=yes | |
8394 | hardcode_shlibpath_var=no | |
8395 | ;; | |
8396 | ||
8397 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
8398 | freebsd2*) | |
8399 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8400 | hardcode_direct=yes | |
8401 | hardcode_minus_L=yes | |
8402 | hardcode_shlibpath_var=no | |
8403 | ;; | |
8404 | ||
8405 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
8406 | freebsd* | dragonfly*) | |
8407 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
8408 | hardcode_libdir_flag_spec='-R$libdir' | |
8409 | hardcode_direct=yes | |
8410 | hardcode_shlibpath_var=no | |
8411 | ;; | |
8412 | ||
8413 | hpux9*) | |
8414 | if test "$GCC" = yes; then | |
8415 | 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' | |
8416 | else | |
8417 | 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' | |
8418 | fi | |
8419 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8420 | hardcode_libdir_separator=: | |
8421 | hardcode_direct=yes | |
8422 | ||
8423 | # hardcode_minus_L: Not really in the search PATH, | |
8424 | # but as the default location of the library. | |
8425 | hardcode_minus_L=yes | |
8426 | export_dynamic_flag_spec='${wl}-E' | |
8427 | ;; | |
8428 | ||
8429 | hpux10*) | |
8430 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8431 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8432 | else | |
8433 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
8434 | fi | |
8435 | if test "$with_gnu_ld" = no; then | |
8436 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8437 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
8438 | hardcode_libdir_separator=: | |
8439 | hardcode_direct=yes | |
8440 | hardcode_direct_absolute=yes | |
8441 | export_dynamic_flag_spec='${wl}-E' | |
8442 | # hardcode_minus_L: Not really in the search PATH, | |
8443 | # but as the default location of the library. | |
8444 | hardcode_minus_L=yes | |
8445 | fi | |
8446 | ;; | |
8447 | ||
8448 | hpux11*) | |
8449 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8450 | case $host_cpu in | |
8451 | hppa*64*) | |
8452 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8453 | ;; | |
8454 | ia64*) | |
8455 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8456 | ;; | |
8457 | *) | |
8458 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8459 | ;; | |
8460 | esac | |
8461 | else | |
8462 | case $host_cpu in | |
8463 | hppa*64*) | |
8464 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8465 | ;; | |
8466 | ia64*) | |
8467 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8468 | ;; | |
8469 | *) | |
8470 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8471 | ;; | |
8472 | esac | |
8473 | fi | |
8474 | if test "$with_gnu_ld" = no; then | |
8475 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8476 | hardcode_libdir_separator=: | |
8477 | ||
8478 | case $host_cpu in | |
8479 | hppa*64*|ia64*) | |
8480 | hardcode_direct=no | |
8481 | hardcode_shlibpath_var=no | |
8482 | ;; | |
8483 | *) | |
8484 | hardcode_direct=yes | |
8485 | hardcode_direct_absolute=yes | |
8486 | export_dynamic_flag_spec='${wl}-E' | |
8487 | ||
8488 | # hardcode_minus_L: Not really in the search PATH, | |
8489 | # but as the default location of the library. | |
8490 | hardcode_minus_L=yes | |
8491 | ;; | |
8492 | esac | |
8493 | fi | |
8494 | ;; | |
8495 | ||
8496 | irix5* | irix6* | nonstopux*) | |
8497 | if test "$GCC" = yes; then | |
8498 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
8499 | # Try to use the -exported_symbol ld option, if it does not | |
8500 | # work, assume that -exports_file does not work either and | |
8501 | # implicitly export all symbols. | |
8502 | save_LDFLAGS="$LDFLAGS" | |
8503 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
8504 | if test x$gcc_no_link = xyes; then | |
8505 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8506 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8507 | { (exit 1); exit 1; }; } | |
8508 | fi | |
8509 | cat >conftest.$ac_ext <<_ACEOF | |
8510 | int foo(void) {} | |
8511 | _ACEOF | |
8512 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8513 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8514 | (eval $ac_link) 2>conftest.er1 | |
8515 | ac_status=$? | |
8516 | grep -v '^ *+' conftest.er1 >conftest.err | |
8517 | rm -f conftest.er1 | |
8518 | cat conftest.err >&5 | |
8519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8520 | (exit $ac_status); } && | |
8521 | { ac_try='test -z "$ac_c_werror_flag" | |
8522 | || test ! -s conftest.err' | |
8523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8524 | (eval $ac_try) 2>&5 | |
8525 | ac_status=$? | |
8526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8527 | (exit $ac_status); }; } && | |
8528 | { ac_try='test -s conftest$ac_exeext' | |
8529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8530 | (eval $ac_try) 2>&5 | |
8531 | ac_status=$? | |
8532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8533 | (exit $ac_status); }; }; then | |
8534 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
8535 | ||
8536 | else | |
8537 | echo "$as_me: failed program was:" >&5 | |
8538 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8539 | ||
8540 | fi | |
8541 | rm -f conftest.err conftest.$ac_objext \ | |
8542 | conftest$ac_exeext conftest.$ac_ext | |
8543 | LDFLAGS="$save_LDFLAGS" | |
8544 | else | |
8545 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
8546 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
8547 | fi | |
8548 | archive_cmds_need_lc='no' | |
8549 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8550 | hardcode_libdir_separator=: | |
8551 | inherit_rpath=yes | |
8552 | link_all_deplibs=yes | |
8553 | ;; | |
8554 | ||
8555 | netbsd*) | |
8556 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8557 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
8558 | else | |
8559 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
8560 | fi | |
8561 | hardcode_libdir_flag_spec='-R$libdir' | |
8562 | hardcode_direct=yes | |
8563 | hardcode_shlibpath_var=no | |
8564 | ;; | |
8565 | ||
8566 | newsos6) | |
8567 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8568 | hardcode_direct=yes | |
8569 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8570 | hardcode_libdir_separator=: | |
8571 | hardcode_shlibpath_var=no | |
8572 | ;; | |
8573 | ||
8574 | *nto* | *qnx*) | |
8575 | ;; | |
8576 | ||
8577 | openbsd*) | |
8578 | hardcode_direct=yes | |
8579 | hardcode_shlibpath_var=no | |
8580 | hardcode_direct_absolute=yes | |
8581 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
8582 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8583 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
8584 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8585 | export_dynamic_flag_spec='${wl}-E' | |
8586 | else | |
8587 | case $host_os in | |
8588 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
8589 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8590 | hardcode_libdir_flag_spec='-R$libdir' | |
8591 | ;; | |
8592 | *) | |
8593 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8594 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8595 | ;; | |
8596 | esac | |
8597 | fi | |
8598 | ;; | |
8599 | ||
8600 | os2*) | |
8601 | hardcode_libdir_flag_spec='-L$libdir' | |
8602 | hardcode_minus_L=yes | |
8603 | allow_undefined_flag=unsupported | |
8604 | 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' | |
8605 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
8606 | ;; | |
8607 | ||
8608 | osf3*) | |
8609 | if test "$GCC" = yes; then | |
8610 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8611 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
8612 | else | |
8613 | allow_undefined_flag=' -expect_unresolved \*' | |
8614 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
8615 | fi | |
8616 | archive_cmds_need_lc='no' | |
8617 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8618 | hardcode_libdir_separator=: | |
8619 | ;; | |
8620 | ||
8621 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
8622 | if test "$GCC" = yes; then | |
8623 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8624 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
8625 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8626 | else | |
8627 | allow_undefined_flag=' -expect_unresolved \*' | |
8628 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
8629 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ | |
8630 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
8631 | ||
8632 | # Both c and cxx compiler support -rpath directly | |
8633 | hardcode_libdir_flag_spec='-rpath $libdir' | |
8634 | fi | |
8635 | archive_cmds_need_lc='no' | |
8636 | hardcode_libdir_separator=: | |
8637 | ;; | |
8638 | ||
8639 | solaris*) | |
8640 | no_undefined_flag=' -z defs' | |
8641 | if test "$GCC" = yes; then | |
8642 | wlarc='${wl}' | |
8643 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8644 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8645 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8646 | else | |
8647 | case `$CC -V 2>&1` in | |
8648 | *"Compilers 5.0"*) | |
8649 | wlarc='' | |
8650 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8651 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8652 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
8653 | ;; | |
8654 | *) | |
8655 | wlarc='${wl}' | |
8656 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8657 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8658 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8659 | ;; | |
8660 | esac | |
8661 | fi | |
8662 | hardcode_libdir_flag_spec='-R$libdir' | |
8663 | hardcode_shlibpath_var=no | |
8664 | case $host_os in | |
8665 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
8666 | *) | |
8667 | # The compiler driver will combine and reorder linker options, | |
8668 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
8669 | # but is careful enough not to reorder. | |
8670 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
8671 | if test "$GCC" = yes; then | |
8672 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
8673 | else | |
8674 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
8675 | fi | |
8676 | ;; | |
8677 | esac | |
8678 | link_all_deplibs=yes | |
8679 | ;; | |
8680 | ||
8681 | sunos4*) | |
8682 | if test "x$host_vendor" = xsequent; then | |
8683 | # Use $CC to link under sequent, because it throws in some extra .o | |
8684 | # files that make .init and .fini sections work. | |
8685 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8686 | else | |
8687 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
8688 | fi | |
8689 | hardcode_libdir_flag_spec='-L$libdir' | |
8690 | hardcode_direct=yes | |
8691 | hardcode_minus_L=yes | |
8692 | hardcode_shlibpath_var=no | |
8693 | ;; | |
8694 | ||
8695 | sysv4) | |
8696 | case $host_vendor in | |
8697 | sni) | |
8698 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8699 | hardcode_direct=yes # is this really true??? | |
8700 | ;; | |
8701 | siemens) | |
8702 | ## LD is ld it makes a PLAMLIB | |
8703 | ## CC just makes a GrossModule. | |
8704 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
8705 | reload_cmds='$CC -r -o $output$reload_objs' | |
8706 | hardcode_direct=no | |
8707 | ;; | |
8708 | motorola) | |
8709 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8710 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
8711 | ;; | |
8712 | esac | |
8713 | runpath_var='LD_RUN_PATH' | |
8714 | hardcode_shlibpath_var=no | |
8715 | ;; | |
8716 | ||
8717 | sysv4.3*) | |
8718 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8719 | hardcode_shlibpath_var=no | |
8720 | export_dynamic_flag_spec='-Bexport' | |
8721 | ;; | |
8722 | ||
8723 | sysv4*MP*) | |
8724 | if test -d /usr/nec; then | |
8725 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8726 | hardcode_shlibpath_var=no | |
8727 | runpath_var=LD_RUN_PATH | |
8728 | hardcode_runpath_var=yes | |
8729 | ld_shlibs=yes | |
8730 | fi | |
8731 | ;; | |
8732 | ||
8733 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
8734 | no_undefined_flag='${wl}-z,text' | |
8735 | archive_cmds_need_lc=no | |
8736 | hardcode_shlibpath_var=no | |
8737 | runpath_var='LD_RUN_PATH' | |
8738 | ||
8739 | if test "$GCC" = yes; then | |
8740 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8741 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8742 | else | |
8743 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8744 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8745 | fi | |
8746 | ;; | |
8747 | ||
8748 | sysv5* | sco3.2v5* | sco5v6*) | |
8749 | # Note: We can NOT use -z defs as we might desire, because we do not | |
8750 | # link with -lc, and that would cause any symbols used from libc to | |
8751 | # always be unresolved, which means just about no library would | |
8752 | # ever link correctly. If we're not using GNU ld we use -z text | |
8753 | # though, which does catch some bad symbols but isn't as heavy-handed | |
8754 | # as -z defs. | |
8755 | no_undefined_flag='${wl}-z,text' | |
8756 | allow_undefined_flag='${wl}-z,nodefs' | |
8757 | archive_cmds_need_lc=no | |
8758 | hardcode_shlibpath_var=no | |
8759 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
8760 | hardcode_libdir_separator=':' | |
8761 | link_all_deplibs=yes | |
8762 | export_dynamic_flag_spec='${wl}-Bexport' | |
8763 | runpath_var='LD_RUN_PATH' | |
8764 | ||
8765 | if test "$GCC" = yes; then | |
8766 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8767 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8768 | else | |
8769 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8770 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8771 | fi | |
8772 | ;; | |
8773 | ||
8774 | uts4*) | |
8775 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8776 | hardcode_libdir_flag_spec='-L$libdir' | |
8777 | hardcode_shlibpath_var=no | |
8778 | ;; | |
8779 | ||
8780 | *) | |
8781 | ld_shlibs=no | |
8782 | ;; | |
8783 | esac | |
8784 | ||
8785 | if test x$host_vendor = xsni; then | |
8786 | case $host in | |
8787 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
8788 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
8789 | ;; | |
8790 | esac | |
8791 | fi | |
8792 | fi | |
8793 | ||
8794 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | |
8795 | echo "${ECHO_T}$ld_shlibs" >&6 | |
8796 | test "$ld_shlibs" = no && can_build_shared=no | |
8797 | ||
8798 | with_gnu_ld=$with_gnu_ld | |
8799 | ||
8800 | ||
8801 | ||
8802 | ||
8803 | ||
8804 | ||
8805 | ||
8806 | ||
8807 | ||
8808 | ||
8809 | ||
8810 | ||
8811 | ||
8812 | ||
8813 | ||
8814 | # | |
8815 | # Do we need to explicitly link libc? | |
8816 | # | |
8817 | case "x$archive_cmds_need_lc" in | |
8818 | x|xyes) | |
8819 | # Assume -lc should be added | |
8820 | archive_cmds_need_lc=yes | |
8821 | ||
8822 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
8823 | case $archive_cmds in | |
8824 | *'~'*) | |
8825 | # FIXME: we may have to deal with multi-command sequences. | |
8826 | ;; | |
8827 | '$CC '*) | |
8828 | # Test whether the compiler implicitly links with -lc since on some | |
8829 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
8830 | # to ld, don't add -lc before -lgcc. | |
8831 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
8832 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
8833 | $RM conftest* | |
8834 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8835 | ||
8836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8837 | (eval $ac_compile) 2>&5 | |
8838 | ac_status=$? | |
8839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8840 | (exit $ac_status); } 2>conftest.err; then | |
8841 | soname=conftest | |
8842 | lib=conftest | |
8843 | libobjs=conftest.$ac_objext | |
8844 | deplibs= | |
8845 | wl=$lt_prog_compiler_wl | |
8846 | pic_flag=$lt_prog_compiler_pic | |
8847 | compiler_flags=-v | |
8848 | linker_flags=-v | |
8849 | verstring= | |
8850 | output_objdir=. | |
8851 | libname=conftest | |
8852 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
8853 | allow_undefined_flag= | |
8854 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
8855 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
8856 | ac_status=$? | |
8857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8858 | (exit $ac_status); } | |
8859 | then | |
8860 | archive_cmds_need_lc=no | |
8861 | else | |
8862 | archive_cmds_need_lc=yes | |
8863 | fi | |
8864 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
8865 | else | |
8866 | cat conftest.err 1>&5 | |
8867 | fi | |
8868 | $RM conftest* | |
8869 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | |
8870 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 | |
8871 | ;; | |
8872 | esac | |
8873 | fi | |
8874 | ;; | |
8875 | esac | |
8876 | ||
8877 | ||
8878 | ||
8879 | ||
8880 | ||
8881 | ||
8882 | ||
8883 | ||
8884 | ||
8885 | ||
8886 | ||
8887 | ||
8888 | ||
8889 | ||
8890 | ||
8891 | ||
8892 | ||
8893 | ||
8894 | ||
8895 | ||
8896 | ||
8897 | ||
8898 | ||
8899 | ||
8900 | ||
8901 | ||
8902 | ||
8903 | ||
8904 | ||
8905 | ||
8906 | ||
8907 | ||
8908 | ||
8909 | ||
8910 | ||
8911 | ||
8912 | ||
8913 | ||
8914 | ||
8915 | ||
8916 | ||
8917 | ||
8918 | ||
8919 | ||
8920 | ||
8921 | ||
8922 | ||
8923 | ||
8924 | ||
8925 | ||
8926 | ||
8927 | ||
8928 | ||
8929 | ||
8930 | ||
8931 | ||
8932 | ||
8933 | ||
8934 | ||
8935 | ||
8936 | ||
8937 | ||
8938 | ||
8939 | ||
8940 | ||
8941 | ||
8942 | ||
8943 | ||
8944 | ||
8945 | ||
8946 | ||
8947 | ||
8948 | ||
8949 | ||
8950 | ||
8951 | ||
8952 | ||
8953 | ||
8954 | ||
8955 | ||
8956 | ||
8957 | ||
8958 | ||
8959 | ||
8960 | ||
8961 | ||
8962 | ||
8963 | ||
8964 | ||
8965 | ||
8966 | ||
8967 | ||
8968 | ||
8969 | ||
8970 | ||
8971 | ||
8972 | ||
8973 | ||
8974 | ||
8975 | ||
8976 | ||
8977 | ||
8978 | ||
8979 | ||
8980 | ||
8981 | ||
8982 | ||
8983 | ||
8984 | ||
8985 | ||
8986 | ||
8987 | ||
8988 | ||
8989 | ||
8990 | ||
8991 | ||
8992 | ||
8993 | ||
8994 | ||
8995 | ||
8996 | ||
8997 | ||
8998 | ||
8999 | ||
9000 | ||
9001 | ||
9002 | ||
9003 | ||
9004 | ||
9005 | ||
9006 | ||
9007 | ||
9008 | ||
9009 | ||
9010 | ||
9011 | ||
9012 | ||
9013 | ||
9014 | ||
9015 | ||
9016 | ||
9017 | ||
9018 | ||
9019 | ||
9020 | ||
9021 | ||
9022 | ||
9023 | ||
9024 | ||
9025 | ||
9026 | ||
9027 | ||
9028 | ||
9029 | ||
9030 | ||
9031 | ||
9032 | ||
9033 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
9034 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
9035 | withGCC=$GCC | |
9036 | if test "$withGCC" = yes; then | |
9037 | case $host_os in | |
9038 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
9039 | *) lt_awk_arg="/^libraries:/" ;; | |
9040 | esac | |
9041 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
9042 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
9043 | # if the path contains ";" then we assume it to be the separator | |
9044 | # otherwise default to the standard path separator (i.e. ":") - it is | |
9045 | # assumed that no part of a normal pathname contains ";" but that should | |
9046 | # okay in the real world where ";" in dirpaths is itself problematic. | |
9047 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
9048 | else | |
9049 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
9050 | fi | |
9051 | # Ok, now we have the path, separated by spaces, we can step through it | |
9052 | # and add multilib dir if necessary. | |
9053 | lt_tmp_lt_search_path_spec= | |
9054 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
9055 | for lt_sys_path in $lt_search_path_spec; do | |
9056 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
9057 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
9058 | else | |
9059 | test -d "$lt_sys_path" && \ | |
9060 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
9061 | fi | |
9062 | done | |
9063 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
9064 | BEGIN {RS=" "; FS="/|\n";} { | |
9065 | lt_foo=""; | |
9066 | lt_count=0; | |
9067 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
9068 | if ($lt_i != "" && $lt_i != ".") { | |
9069 | if ($lt_i == "..") { | |
9070 | lt_count++; | |
9071 | } else { | |
9072 | if (lt_count == 0) { | |
9073 | lt_foo="/" $lt_i lt_foo; | |
9074 | } else { | |
9075 | lt_count--; | |
9076 | } | |
9077 | } | |
9078 | } | |
9079 | } | |
9080 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
9081 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
9082 | }'` | |
9083 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
9084 | else | |
9085 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
9086 | fi | |
9087 | library_names_spec= | |
9088 | libname_spec='lib$name' | |
9089 | soname_spec= | |
9090 | shrext_cmds=".so" | |
9091 | postinstall_cmds= | |
9092 | postuninstall_cmds= | |
9093 | finish_cmds= | |
9094 | finish_eval= | |
9095 | shlibpath_var= | |
9096 | shlibpath_overrides_runpath=unknown | |
9097 | version_type=none | |
9098 | dynamic_linker="$host_os ld.so" | |
9099 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
9100 | need_lib_prefix=unknown | |
9101 | hardcode_into_libs=no | |
9102 | ||
9103 | # when you set need_version to no, make sure it does not cause -set_version | |
9104 | # flags to be left without arguments | |
9105 | need_version=unknown | |
9106 | ||
9107 | case $host_os in | |
9108 | aix3*) | |
9109 | version_type=linux | |
9110 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
9111 | shlibpath_var=LIBPATH | |
9112 | ||
9113 | # AIX 3 has no versioning support, so we append a major version to the name. | |
9114 | soname_spec='${libname}${release}${shared_ext}$major' | |
9115 | ;; | |
9116 | ||
9117 | aix4* | aix5*) | |
9118 | version_type=linux | |
9119 | need_lib_prefix=no | |
9120 | need_version=no | |
9121 | hardcode_into_libs=yes | |
9122 | if test "$host_cpu" = ia64; then | |
9123 | # AIX 5 supports IA64 | |
9124 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
9125 | shlibpath_var=LD_LIBRARY_PATH | |
9126 | else | |
9127 | # With GCC up to 2.95.x, collect2 would create an import file | |
9128 | # for dependence libraries. The import file would start with | |
9129 | # the line `#! .'. This would cause the generated library to | |
9130 | # depend on `.', always an invalid library. This was fixed in | |
9131 | # development snapshots of GCC prior to 3.0. | |
9132 | case $host_os in | |
9133 | aix4 | aix4.[01] | aix4.[01].*) | |
9134 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
9135 | echo ' yes ' | |
9136 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
9137 | : | |
9138 | else | |
9139 | can_build_shared=no | |
9140 | fi | |
9141 | ;; | |
9142 | esac | |
9143 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
9144 | # soname into executable. Probably we can add versioning support to | |
9145 | # collect2, so additional links can be useful in future. | |
9146 | if test "$aix_use_runtimelinking" = yes; then | |
9147 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
9148 | # instead of lib<name>.a to let people know that these are not | |
9149 | # typical AIX shared libraries. | |
9150 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9151 | else | |
9152 | # We preserve .a as extension for shared libraries through AIX4.2 | |
9153 | # and later when we are not doing run time linking. | |
9154 | library_names_spec='${libname}${release}.a $libname.a' | |
9155 | soname_spec='${libname}${release}${shared_ext}$major' | |
9156 | fi | |
9157 | shlibpath_var=LIBPATH | |
9158 | fi | |
9159 | ;; | |
9160 | ||
9161 | amigaos*) | |
9162 | if test "$host_cpu" = m68k; then | |
9163 | library_names_spec='$libname.ixlibrary $libname.a' | |
9164 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
9165 | 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' | |
9166 | else | |
9167 | dynamic_linker=no | |
9168 | fi | |
9169 | ;; | |
9170 | ||
9171 | beos*) | |
9172 | library_names_spec='${libname}${shared_ext}' | |
9173 | dynamic_linker="$host_os ld.so" | |
9174 | shlibpath_var=LIBRARY_PATH | |
9175 | ;; | |
9176 | ||
9177 | bsdi[45]*) | |
9178 | version_type=linux | |
9179 | need_version=no | |
9180 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9181 | soname_spec='${libname}${release}${shared_ext}$major' | |
9182 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
9183 | shlibpath_var=LD_LIBRARY_PATH | |
9184 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
9185 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
9186 | # the default ld.so.conf also contains /usr/contrib/lib and | |
9187 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
9188 | # libtool to hard-code these into programs | |
9189 | ;; | |
9190 | ||
9191 | cygwin* | mingw* | pw32*) | |
9192 | version_type=windows | |
9193 | shrext_cmds=".dll" | |
9194 | need_version=no | |
9195 | need_lib_prefix=no | |
9196 | ||
9197 | case $withGCC,$host_os in | |
9198 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
9199 | library_names_spec='$libname.dll.a' | |
9200 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9201 | postinstall_cmds='base_file=`basename \${file}`~ | |
9202 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
9203 | dldir=$destdir/`dirname \$dlpath`~ | |
9204 | test -d \$dldir || mkdir -p \$dldir~ | |
9205 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
9206 | chmod a+x \$dldir/$dlname~ | |
9207 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
9208 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
9209 | fi' | |
9210 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
9211 | dlpath=$dir/\$dldll~ | |
9212 | $RM \$dlpath' | |
9213 | shlibpath_overrides_runpath=yes | |
9214 | ||
9215 | case $host_os in | |
9216 | cygwin*) | |
9217 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
9218 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9219 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
9220 | ;; | |
9221 | mingw*) | |
9222 | # MinGW DLLs use traditional 'lib' prefix | |
9223 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9224 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
9225 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
9226 | # It is most probably a Windows format PATH printed by | |
9227 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
9228 | # path with ; separators, and with drive letters. We can handle the | |
9229 | # drive letters (cygwin fileutils understands them), so leave them, | |
9230 | # especially as we might pass files found there to a mingw objdump, | |
9231 | # which wouldn't understand a cygwinified path. Ahh. | |
9232 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
9233 | else | |
9234 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
9235 | fi | |
9236 | ;; | |
9237 | pw32*) | |
9238 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
9239 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9240 | ;; | |
9241 | esac | |
9242 | ;; | |
9243 | ||
9244 | *) | |
9245 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
9246 | ;; | |
9247 | esac | |
9248 | dynamic_linker='Win32 ld.exe' | |
9249 | # FIXME: first we should search . and the directory the executable is in | |
9250 | shlibpath_var=PATH | |
9251 | ;; | |
9252 | ||
9253 | darwin* | rhapsody*) | |
9254 | dynamic_linker="$host_os dyld" | |
9255 | version_type=darwin | |
9256 | need_lib_prefix=no | |
9257 | need_version=no | |
9258 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
9259 | soname_spec='${libname}${release}${major}$shared_ext' | |
9260 | shlibpath_overrides_runpath=yes | |
9261 | shlibpath_var=DYLD_LIBRARY_PATH | |
9262 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9263 | ||
9264 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
9265 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
9266 | ;; | |
9267 | ||
9268 | dgux*) | |
9269 | version_type=linux | |
9270 | need_lib_prefix=no | |
9271 | need_version=no | |
9272 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
9273 | soname_spec='${libname}${release}${shared_ext}$major' | |
9274 | shlibpath_var=LD_LIBRARY_PATH | |
9275 | ;; | |
9276 | ||
9277 | freebsd1*) | |
9278 | dynamic_linker=no | |
9279 | ;; | |
9280 | ||
9281 | freebsd* | dragonfly*) | |
9282 | # DragonFly does not have aout. When/if they implement a new | |
9283 | # versioning mechanism, adjust this. | |
9284 | if test -x /usr/bin/objformat; then | |
9285 | objformat=`/usr/bin/objformat` | |
9286 | else | |
9287 | case $host_os in | |
9288 | freebsd[123]*) objformat=aout ;; | |
9289 | *) objformat=elf ;; | |
9290 | esac | |
9291 | fi | |
9292 | version_type=freebsd-$objformat | |
9293 | case $version_type in | |
9294 | freebsd-elf*) | |
9295 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9296 | need_version=no | |
9297 | need_lib_prefix=no | |
9298 | ;; | |
9299 | freebsd-*) | |
9300 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
9301 | need_version=yes | |
9302 | ;; | |
9303 | esac | |
9304 | shlibpath_var=LD_LIBRARY_PATH | |
9305 | case $host_os in | |
9306 | freebsd2*) | |
9307 | shlibpath_overrides_runpath=yes | |
9308 | ;; | |
9309 | freebsd3.[01]* | freebsdelf3.[01]*) | |
9310 | shlibpath_overrides_runpath=yes | |
9311 | hardcode_into_libs=yes | |
9312 | ;; | |
9313 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
9314 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
9315 | shlibpath_overrides_runpath=no | |
9316 | hardcode_into_libs=yes | |
9317 | ;; | |
9318 | *) # from 4.6 on, and DragonFly | |
9319 | shlibpath_overrides_runpath=yes | |
9320 | hardcode_into_libs=yes | |
9321 | ;; | |
9322 | esac | |
9323 | ;; | |
9324 | ||
9325 | gnu*) | |
9326 | version_type=linux | |
9327 | need_lib_prefix=no | |
9328 | need_version=no | |
9329 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
9330 | soname_spec='${libname}${release}${shared_ext}$major' | |
9331 | shlibpath_var=LD_LIBRARY_PATH | |
9332 | hardcode_into_libs=yes | |
9333 | ;; | |
9334 | ||
9335 | hpux9* | hpux10* | hpux11*) | |
9336 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
9337 | # link against other versions. | |
9338 | version_type=sunos | |
9339 | need_lib_prefix=no | |
9340 | need_version=no | |
9341 | case $host_cpu in | |
9342 | ia64*) | |
9343 | shrext_cmds='.so' | |
9344 | hardcode_into_libs=yes | |
9345 | dynamic_linker="$host_os dld.so" | |
9346 | shlibpath_var=LD_LIBRARY_PATH | |
9347 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9348 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9349 | soname_spec='${libname}${release}${shared_ext}$major' | |
9350 | if test "X$HPUX_IA64_MODE" = X32; then | |
9351 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
9352 | else | |
9353 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
9354 | fi | |
9355 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9356 | ;; | |
9357 | hppa*64*) | |
9358 | shrext_cmds='.sl' | |
9359 | hardcode_into_libs=yes | |
9360 | dynamic_linker="$host_os dld.sl" | |
9361 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
9362 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9363 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9364 | soname_spec='${libname}${release}${shared_ext}$major' | |
9365 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
9366 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9367 | ;; | |
9368 | *) | |
9369 | shrext_cmds='.sl' | |
9370 | dynamic_linker="$host_os dld.sl" | |
9371 | shlibpath_var=SHLIB_PATH | |
9372 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
9373 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9374 | soname_spec='${libname}${release}${shared_ext}$major' | |
9375 | ;; | |
9376 | esac | |
9377 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
9378 | postinstall_cmds='chmod 555 $lib' | |
9379 | ;; | |
9380 | ||
9381 | interix[3-9]*) | |
9382 | version_type=linux | |
9383 | need_lib_prefix=no | |
9384 | need_version=no | |
9385 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9386 | soname_spec='${libname}${release}${shared_ext}$major' | |
9387 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
9388 | shlibpath_var=LD_LIBRARY_PATH | |
9389 | shlibpath_overrides_runpath=no | |
9390 | hardcode_into_libs=yes | |
9391 | ;; | |
9392 | ||
9393 | irix5* | irix6* | nonstopux*) | |
9394 | case $host_os in | |
9395 | nonstopux*) version_type=nonstopux ;; | |
9396 | *) | |
9397 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
9398 | version_type=linux | |
9399 | else | |
9400 | version_type=irix | |
9401 | fi ;; | |
9402 | esac | |
9403 | need_lib_prefix=no | |
9404 | need_version=no | |
9405 | soname_spec='${libname}${release}${shared_ext}$major' | |
9406 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9407 | case $host_os in | |
9408 | irix5* | nonstopux*) | |
9409 | libsuff= shlibsuff= | |
9410 | ;; | |
9411 | *) | |
9412 | case $LD in # libtool.m4 will add one of these switches to LD | |
9413 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
9414 | libsuff= shlibsuff= libmagic=32-bit;; | |
9415 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
9416 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
9417 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
9418 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
9419 | *) libsuff= shlibsuff= libmagic=never-match;; | |
9420 | esac | |
9421 | ;; | |
9422 | esac | |
9423 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
9424 | shlibpath_overrides_runpath=no | |
9425 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
9426 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
9427 | hardcode_into_libs=yes | |
9428 | ;; | |
9429 | ||
9430 | # No shared lib support for Linux oldld, aout, or coff. | |
9431 | linux*oldld* | linux*aout* | linux*coff*) | |
9432 | dynamic_linker=no | |
9433 | ;; | |
9434 | ||
9435 | # This must be Linux ELF. | |
9436 | linux* | k*bsd*-gnu) | |
9437 | version_type=linux | |
9438 | need_lib_prefix=no | |
9439 | need_version=no | |
9440 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9441 | soname_spec='${libname}${release}${shared_ext}$major' | |
9442 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
9443 | shlibpath_var=LD_LIBRARY_PATH | |
9444 | shlibpath_overrides_runpath=no | |
9445 | # Some binutils ld are patched to set DT_RUNPATH | |
9446 | save_LDFLAGS=$LDFLAGS | |
9447 | save_libdir=$libdir | |
9448 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
9449 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
9450 | if test x$gcc_no_link = xyes; then | |
9451 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9452 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9453 | { (exit 1); exit 1; }; } | |
9454 | fi | |
9455 | cat >conftest.$ac_ext <<_ACEOF | |
9456 | /* confdefs.h. */ | |
9457 | _ACEOF | |
9458 | cat confdefs.h >>conftest.$ac_ext | |
9459 | cat >>conftest.$ac_ext <<_ACEOF | |
9460 | /* end confdefs.h. */ | |
9461 | ||
9462 | int | |
9463 | main () | |
9464 | { | |
9465 | ||
9466 | ; | |
9467 | return 0; | |
9468 | } | |
9469 | _ACEOF | |
9470 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9471 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9472 | (eval $ac_link) 2>conftest.er1 | |
9473 | ac_status=$? | |
9474 | grep -v '^ *+' conftest.er1 >conftest.err | |
9475 | rm -f conftest.er1 | |
9476 | cat conftest.err >&5 | |
9477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9478 | (exit $ac_status); } && | |
9479 | { ac_try='test -z "$ac_c_werror_flag" | |
9480 | || test ! -s conftest.err' | |
9481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9482 | (eval $ac_try) 2>&5 | |
9483 | ac_status=$? | |
9484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9485 | (exit $ac_status); }; } && | |
9486 | { ac_try='test -s conftest$ac_exeext' | |
9487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9488 | (eval $ac_try) 2>&5 | |
9489 | ac_status=$? | |
9490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9491 | (exit $ac_status); }; }; then | |
9492 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then | |
9493 | shlibpath_overrides_runpath=yes | |
9494 | fi | |
9495 | ||
9496 | else | |
9497 | echo "$as_me: failed program was:" >&5 | |
9498 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9499 | ||
9500 | fi | |
9501 | rm -f conftest.err conftest.$ac_objext \ | |
9502 | conftest$ac_exeext conftest.$ac_ext | |
9503 | LDFLAGS=$save_LDFLAGS | |
9504 | libdir=$save_libdir | |
9505 | ||
9506 | # This implies no fast_install, which is unacceptable. | |
9507 | # Some rework will be needed to allow for fast_install | |
9508 | # before this can be enabled. | |
9509 | hardcode_into_libs=yes | |
9510 | ||
9511 | # Append ld.so.conf contents to the search path | |
9512 | if test -f /etc/ld.so.conf; then | |
9513 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
9514 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
9515 | fi | |
9516 | ||
9517 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
9518 | # powerpc, because MkLinux only supported shared libraries with the | |
9519 | # GNU dynamic linker. Since this was broken with cross compilers, | |
9520 | # most powerpc-linux boxes support dynamic linking these days and | |
9521 | # people can always --disable-shared, the test was removed, and we | |
9522 | # assume the GNU/Linux dynamic linker is in use. | |
9523 | dynamic_linker='GNU/Linux ld.so' | |
9524 | ;; | |
9525 | ||
9526 | netbsd*) | |
9527 | version_type=sunos | |
9528 | need_lib_prefix=no | |
9529 | need_version=no | |
9530 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9531 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9532 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9533 | dynamic_linker='NetBSD (a.out) ld.so' | |
9534 | else | |
9535 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9536 | soname_spec='${libname}${release}${shared_ext}$major' | |
9537 | dynamic_linker='NetBSD ld.elf_so' | |
9538 | fi | |
9539 | shlibpath_var=LD_LIBRARY_PATH | |
9540 | shlibpath_overrides_runpath=yes | |
9541 | hardcode_into_libs=yes | |
9542 | ;; | |
9543 | ||
9544 | newsos6) | |
9545 | version_type=linux | |
9546 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9547 | shlibpath_var=LD_LIBRARY_PATH | |
9548 | shlibpath_overrides_runpath=yes | |
9549 | ;; | |
9550 | ||
9551 | *nto* | *qnx*) | |
9552 | version_type=qnx | |
9553 | need_lib_prefix=no | |
9554 | need_version=no | |
9555 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9556 | soname_spec='${libname}${release}${shared_ext}$major' | |
9557 | shlibpath_var=LD_LIBRARY_PATH | |
9558 | shlibpath_overrides_runpath=no | |
9559 | hardcode_into_libs=yes | |
9560 | dynamic_linker='ldqnx.so' | |
9561 | ;; | |
9562 | ||
9563 | openbsd*) | |
9564 | version_type=sunos | |
9565 | sys_lib_dlsearch_path_spec="/usr/lib" | |
9566 | need_lib_prefix=no | |
9567 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
9568 | case $host_os in | |
9569 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
9570 | *) need_version=no ;; | |
9571 | esac | |
9572 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9573 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9574 | shlibpath_var=LD_LIBRARY_PATH | |
9575 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9576 | case $host_os in | |
9577 | openbsd2.[89] | openbsd2.[89].*) | |
9578 | shlibpath_overrides_runpath=no | |
9579 | ;; | |
9580 | *) | |
9581 | shlibpath_overrides_runpath=yes | |
9582 | ;; | |
9583 | esac | |
9584 | else | |
9585 | shlibpath_overrides_runpath=yes | |
9586 | fi | |
9587 | ;; | |
9588 | ||
9589 | os2*) | |
9590 | libname_spec='$name' | |
9591 | shrext_cmds=".dll" | |
9592 | need_lib_prefix=no | |
9593 | library_names_spec='$libname${shared_ext} $libname.a' | |
9594 | dynamic_linker='OS/2 ld.exe' | |
9595 | shlibpath_var=LIBPATH | |
9596 | ;; | |
9597 | ||
9598 | osf3* | osf4* | osf5*) | |
9599 | version_type=osf | |
9600 | need_lib_prefix=no | |
9601 | need_version=no | |
9602 | soname_spec='${libname}${release}${shared_ext}$major' | |
9603 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9604 | shlibpath_var=LD_LIBRARY_PATH | |
9605 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
9606 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
9607 | ;; | |
9608 | ||
9609 | rdos*) | |
9610 | dynamic_linker=no | |
9611 | ;; | |
9612 | ||
9613 | solaris*) | |
9614 | version_type=linux | |
9615 | need_lib_prefix=no | |
9616 | need_version=no | |
9617 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9618 | soname_spec='${libname}${release}${shared_ext}$major' | |
9619 | shlibpath_var=LD_LIBRARY_PATH | |
9620 | shlibpath_overrides_runpath=yes | |
9621 | hardcode_into_libs=yes | |
9622 | # ldd complains unless libraries are executable | |
9623 | postinstall_cmds='chmod +x $lib' | |
9624 | ;; | |
9625 | ||
9626 | sunos4*) | |
9627 | version_type=sunos | |
9628 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9629 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
9630 | shlibpath_var=LD_LIBRARY_PATH | |
9631 | shlibpath_overrides_runpath=yes | |
9632 | if test "$with_gnu_ld" = yes; then | |
9633 | need_lib_prefix=no | |
9634 | fi | |
9635 | need_version=yes | |
9636 | ;; | |
9637 | ||
9638 | sysv4 | sysv4.3*) | |
9639 | version_type=linux | |
9640 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9641 | soname_spec='${libname}${release}${shared_ext}$major' | |
9642 | shlibpath_var=LD_LIBRARY_PATH | |
9643 | case $host_vendor in | |
9644 | sni) | |
9645 | shlibpath_overrides_runpath=no | |
9646 | need_lib_prefix=no | |
9647 | runpath_var=LD_RUN_PATH | |
9648 | ;; | |
9649 | siemens) | |
9650 | need_lib_prefix=no | |
9651 | ;; | |
9652 | motorola) | |
9653 | need_lib_prefix=no | |
9654 | need_version=no | |
9655 | shlibpath_overrides_runpath=no | |
9656 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
9657 | ;; | |
9658 | esac | |
9659 | ;; | |
9660 | ||
9661 | sysv4*MP*) | |
9662 | if test -d /usr/nec ;then | |
9663 | version_type=linux | |
9664 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
9665 | soname_spec='$libname${shared_ext}.$major' | |
9666 | shlibpath_var=LD_LIBRARY_PATH | |
9667 | fi | |
9668 | ;; | |
9669 | ||
9670 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
9671 | version_type=freebsd-elf | |
9672 | need_lib_prefix=no | |
9673 | need_version=no | |
9674 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9675 | soname_spec='${libname}${release}${shared_ext}$major' | |
9676 | shlibpath_var=LD_LIBRARY_PATH | |
9677 | shlibpath_overrides_runpath=yes | |
9678 | hardcode_into_libs=yes | |
9679 | if test "$with_gnu_ld" = yes; then | |
9680 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
9681 | else | |
9682 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
9683 | case $host_os in | |
9684 | sco3.2v5*) | |
9685 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
9686 | ;; | |
9687 | esac | |
9688 | fi | |
9689 | sys_lib_dlsearch_path_spec='/usr/lib' | |
9690 | ;; | |
9691 | ||
9692 | tpf*) | |
9693 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
9694 | version_type=linux | |
9695 | need_lib_prefix=no | |
9696 | need_version=no | |
9697 | library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9698 | shlibpath_var=LD_LIBRARY_PATH | |
9699 | shlibpath_overrides_runpath=no | |
9700 | hardcode_into_libs=yes | |
9701 | ;; | |
9702 | ||
9703 | uts4*) | |
9704 | version_type=linux | |
9705 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9706 | soname_spec='${libname}${release}${shared_ext}$major' | |
9707 | shlibpath_var=LD_LIBRARY_PATH | |
9708 | ;; | |
9709 | ||
9710 | *) | |
9711 | dynamic_linker=no | |
9712 | ;; | |
9713 | esac | |
9714 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
9715 | echo "${ECHO_T}$dynamic_linker" >&6 | |
9716 | test "$dynamic_linker" = no && can_build_shared=no | |
9717 | ||
9718 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
9719 | if test "$GCC" = yes; then | |
9720 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
9721 | fi | |
9722 | ||
9723 | ||
9724 | ||
9725 | ||
9726 | ||
9727 | ||
9728 | ||
9729 | ||
9730 | ||
9731 | ||
9732 | ||
9733 | ||
9734 | ||
9735 | ||
9736 | ||
9737 | ||
9738 | ||
9739 | ||
9740 | ||
9741 | ||
9742 | ||
9743 | ||
9744 | ||
9745 | ||
9746 | ||
9747 | ||
9748 | ||
9749 | ||
9750 | ||
9751 | ||
9752 | ||
9753 | ||
9754 | ||
9755 | ||
9756 | ||
9757 | ||
9758 | ||
9759 | ||
9760 | ||
9761 | ||
9762 | ||
9763 | ||
9764 | ||
9765 | ||
9766 | ||
9767 | ||
9768 | ||
9769 | ||
9770 | ||
9771 | ||
9772 | ||
9773 | ||
9774 | ||
9775 | ||
9776 | ||
9777 | ||
9778 | ||
9779 | ||
9780 | ||
9781 | ||
9782 | ||
9783 | ||
9784 | ||
9785 | ||
9786 | ||
9787 | ||
9788 | ||
9789 | ||
9790 | ||
9791 | ||
9792 | ||
9793 | ||
9794 | ||
9795 | ||
9796 | ||
9797 | ||
9798 | ||
9799 | ||
9800 | ||
9801 | ||
9802 | ||
9803 | ||
9804 | ||
9805 | ||
9806 | ||
9807 | ||
9808 | ||
9809 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
9810 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
9811 | hardcode_action= | |
9812 | if test -n "$hardcode_libdir_flag_spec" || | |
9813 | test -n "$runpath_var" || | |
9814 | test "X$hardcode_automatic" = "Xyes" ; then | |
9815 | ||
9816 | # We can hardcode non-existent directories. | |
9817 | if test "$hardcode_direct" != no && | |
9818 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
9819 | # have to relink, otherwise we might link with an installed library | |
9820 | # when we should be linking with a yet-to-be-installed one | |
9821 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
9822 | test "$hardcode_minus_L" != no; then | |
9823 | # Linking always hardcodes the temporary library directory. | |
9824 | hardcode_action=relink | |
9825 | else | |
9826 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
9827 | hardcode_action=immediate | |
9828 | fi | |
9829 | else | |
9830 | # We cannot hardcode anything, or else we can only hardcode existing | |
9831 | # directories. | |
9832 | hardcode_action=unsupported | |
9833 | fi | |
9834 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 | |
9835 | echo "${ECHO_T}$hardcode_action" >&6 | |
9836 | ||
9837 | if test "$hardcode_action" = relink || | |
9838 | test "$inherit_rpath" = yes; then | |
9839 | # Fast installation is not supported | |
9840 | enable_fast_install=no | |
9841 | elif test "$shlibpath_overrides_runpath" = yes || | |
9842 | test "$enable_shared" = no; then | |
9843 | # Fast installation is not necessary | |
9844 | enable_fast_install=needless | |
9845 | fi | |
9846 | ||
9847 | ||
9848 | ||
9849 | ||
9850 | ||
9851 | ||
9852 | if test "x$enable_dlopen" != xyes; then | |
9853 | enable_dlopen=unknown | |
9854 | enable_dlopen_self=unknown | |
9855 | enable_dlopen_self_static=unknown | |
9856 | else | |
9857 | lt_cv_dlopen=no | |
9858 | lt_cv_dlopen_libs= | |
9859 | ||
9860 | case $host_os in | |
9861 | beos*) | |
9862 | lt_cv_dlopen="load_add_on" | |
9863 | lt_cv_dlopen_libs= | |
9864 | lt_cv_dlopen_self=yes | |
9865 | ;; | |
9866 | ||
9867 | mingw* | pw32*) | |
9868 | lt_cv_dlopen="LoadLibrary" | |
9869 | lt_cv_dlopen_libs= | |
9870 | ;; | |
9871 | ||
9872 | cygwin*) | |
9873 | lt_cv_dlopen="dlopen" | |
9874 | lt_cv_dlopen_libs= | |
9875 | ;; | |
9876 | ||
9877 | darwin*) | |
9878 | # if libdl is installed we need to link against it | |
9879 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
9880 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
9881 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
9882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9883 | else | |
9884 | ac_check_lib_save_LIBS=$LIBS | |
9885 | LIBS="-ldl $LIBS" | |
9886 | if test x$gcc_no_link = xyes; then | |
9887 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9888 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9889 | { (exit 1); exit 1; }; } | |
9890 | fi | |
9891 | cat >conftest.$ac_ext <<_ACEOF | |
9892 | /* confdefs.h. */ | |
9893 | _ACEOF | |
9894 | cat confdefs.h >>conftest.$ac_ext | |
9895 | cat >>conftest.$ac_ext <<_ACEOF | |
9896 | /* end confdefs.h. */ | |
9897 | ||
9898 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9899 | #ifdef __cplusplus | |
9900 | extern "C" | |
9901 | #endif | |
9902 | /* We use char because int might match the return type of a gcc2 | |
9903 | builtin and then its argument prototype would still apply. */ | |
9904 | char dlopen (); | |
9905 | int | |
9906 | main () | |
9907 | { | |
9908 | dlopen (); | |
9909 | ; | |
9910 | return 0; | |
9911 | } | |
9912 | _ACEOF | |
9913 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9914 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9915 | (eval $ac_link) 2>conftest.er1 | |
9916 | ac_status=$? | |
9917 | grep -v '^ *+' conftest.er1 >conftest.err | |
9918 | rm -f conftest.er1 | |
9919 | cat conftest.err >&5 | |
9920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9921 | (exit $ac_status); } && | |
9922 | { ac_try='test -z "$ac_c_werror_flag" | |
9923 | || test ! -s conftest.err' | |
9924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9925 | (eval $ac_try) 2>&5 | |
9926 | ac_status=$? | |
9927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9928 | (exit $ac_status); }; } && | |
9929 | { ac_try='test -s conftest$ac_exeext' | |
9930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9931 | (eval $ac_try) 2>&5 | |
9932 | ac_status=$? | |
9933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9934 | (exit $ac_status); }; }; then | |
9935 | ac_cv_lib_dl_dlopen=yes | |
9936 | else | |
9937 | echo "$as_me: failed program was:" >&5 | |
9938 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9939 | ||
9940 | ac_cv_lib_dl_dlopen=no | |
9941 | fi | |
9942 | rm -f conftest.err conftest.$ac_objext \ | |
9943 | conftest$ac_exeext conftest.$ac_ext | |
9944 | LIBS=$ac_check_lib_save_LIBS | |
9945 | fi | |
9946 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
9947 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
9948 | if test $ac_cv_lib_dl_dlopen = yes; then | |
9949 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9950 | else | |
9951 | ||
9952 | lt_cv_dlopen="dyld" | |
9953 | lt_cv_dlopen_libs= | |
9954 | lt_cv_dlopen_self=yes | |
9955 | ||
9956 | fi | |
9957 | ||
9958 | ;; | |
9959 | ||
9960 | *) | |
9961 | echo "$as_me:$LINENO: checking for shl_load" >&5 | |
9962 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
9963 | if test "${ac_cv_func_shl_load+set}" = set; then | |
9964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9965 | else | |
9966 | if test x$gcc_no_link = xyes; then | |
9967 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9968 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9969 | { (exit 1); exit 1; }; } | |
9970 | fi | |
9971 | cat >conftest.$ac_ext <<_ACEOF | |
9972 | /* confdefs.h. */ | |
9973 | _ACEOF | |
9974 | cat confdefs.h >>conftest.$ac_ext | |
9975 | cat >>conftest.$ac_ext <<_ACEOF | |
9976 | /* end confdefs.h. */ | |
9977 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
9978 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9979 | #define shl_load innocuous_shl_load | |
9980 | ||
9981 | /* System header to define __stub macros and hopefully few prototypes, | |
9982 | which can conflict with char shl_load (); below. | |
9983 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9984 | <limits.h> exists even on freestanding compilers. */ | |
9985 | ||
9986 | #ifdef __STDC__ | |
9987 | # include <limits.h> | |
9988 | #else | |
9989 | # include <assert.h> | |
9990 | #endif | |
9991 | ||
9992 | #undef shl_load | |
9993 | ||
9994 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9995 | #ifdef __cplusplus | |
9996 | extern "C" | |
9997 | { | |
9998 | #endif | |
9999 | /* We use char because int might match the return type of a gcc2 | |
10000 | builtin and then its argument prototype would still apply. */ | |
10001 | char shl_load (); | |
10002 | /* The GNU C library defines this for functions which it implements | |
10003 | to always fail with ENOSYS. Some functions are actually named | |
10004 | something starting with __ and the normal name is an alias. */ | |
10005 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
10006 | choke me | |
10007 | #else | |
10008 | char (*f) () = shl_load; | |
10009 | #endif | |
10010 | #ifdef __cplusplus | |
10011 | } | |
10012 | #endif | |
10013 | ||
10014 | int | |
10015 | main () | |
10016 | { | |
10017 | return f != shl_load; | |
10018 | ; | |
10019 | return 0; | |
10020 | } | |
10021 | _ACEOF | |
10022 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10023 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10024 | (eval $ac_link) 2>conftest.er1 | |
10025 | ac_status=$? | |
10026 | grep -v '^ *+' conftest.er1 >conftest.err | |
10027 | rm -f conftest.er1 | |
10028 | cat conftest.err >&5 | |
10029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10030 | (exit $ac_status); } && | |
10031 | { ac_try='test -z "$ac_c_werror_flag" | |
10032 | || test ! -s conftest.err' | |
10033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10034 | (eval $ac_try) 2>&5 | |
10035 | ac_status=$? | |
10036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10037 | (exit $ac_status); }; } && | |
10038 | { ac_try='test -s conftest$ac_exeext' | |
10039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10040 | (eval $ac_try) 2>&5 | |
10041 | ac_status=$? | |
10042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10043 | (exit $ac_status); }; }; then | |
10044 | ac_cv_func_shl_load=yes | |
10045 | else | |
10046 | echo "$as_me: failed program was:" >&5 | |
10047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10048 | ||
10049 | ac_cv_func_shl_load=no | |
10050 | fi | |
10051 | rm -f conftest.err conftest.$ac_objext \ | |
10052 | conftest$ac_exeext conftest.$ac_ext | |
10053 | fi | |
10054 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
10055 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
10056 | if test $ac_cv_func_shl_load = yes; then | |
10057 | lt_cv_dlopen="shl_load" | |
10058 | else | |
10059 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
10060 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
10061 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
10062 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10063 | else | |
10064 | ac_check_lib_save_LIBS=$LIBS | |
10065 | LIBS="-ldld $LIBS" | |
10066 | if test x$gcc_no_link = xyes; then | |
10067 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10068 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10069 | { (exit 1); exit 1; }; } | |
10070 | fi | |
10071 | cat >conftest.$ac_ext <<_ACEOF | |
10072 | /* confdefs.h. */ | |
10073 | _ACEOF | |
10074 | cat confdefs.h >>conftest.$ac_ext | |
10075 | cat >>conftest.$ac_ext <<_ACEOF | |
10076 | /* end confdefs.h. */ | |
10077 | ||
10078 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10079 | #ifdef __cplusplus | |
10080 | extern "C" | |
10081 | #endif | |
10082 | /* We use char because int might match the return type of a gcc2 | |
10083 | builtin and then its argument prototype would still apply. */ | |
10084 | char shl_load (); | |
10085 | int | |
10086 | main () | |
10087 | { | |
10088 | shl_load (); | |
10089 | ; | |
10090 | return 0; | |
10091 | } | |
10092 | _ACEOF | |
10093 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10094 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10095 | (eval $ac_link) 2>conftest.er1 | |
10096 | ac_status=$? | |
10097 | grep -v '^ *+' conftest.er1 >conftest.err | |
10098 | rm -f conftest.er1 | |
10099 | cat conftest.err >&5 | |
10100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10101 | (exit $ac_status); } && | |
10102 | { ac_try='test -z "$ac_c_werror_flag" | |
10103 | || test ! -s conftest.err' | |
10104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10105 | (eval $ac_try) 2>&5 | |
10106 | ac_status=$? | |
10107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10108 | (exit $ac_status); }; } && | |
10109 | { ac_try='test -s conftest$ac_exeext' | |
10110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10111 | (eval $ac_try) 2>&5 | |
10112 | ac_status=$? | |
10113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10114 | (exit $ac_status); }; }; then | |
10115 | ac_cv_lib_dld_shl_load=yes | |
10116 | else | |
10117 | echo "$as_me: failed program was:" >&5 | |
10118 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10119 | ||
10120 | ac_cv_lib_dld_shl_load=no | |
10121 | fi | |
10122 | rm -f conftest.err conftest.$ac_objext \ | |
10123 | conftest$ac_exeext conftest.$ac_ext | |
10124 | LIBS=$ac_check_lib_save_LIBS | |
10125 | fi | |
10126 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
10127 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
10128 | if test $ac_cv_lib_dld_shl_load = yes; then | |
10129 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
10130 | else | |
10131 | echo "$as_me:$LINENO: checking for dlopen" >&5 | |
10132 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
10133 | if test "${ac_cv_func_dlopen+set}" = set; then | |
10134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10135 | else | |
10136 | if test x$gcc_no_link = xyes; then | |
10137 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10138 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10139 | { (exit 1); exit 1; }; } | |
10140 | fi | |
10141 | cat >conftest.$ac_ext <<_ACEOF | |
10142 | /* confdefs.h. */ | |
10143 | _ACEOF | |
10144 | cat confdefs.h >>conftest.$ac_ext | |
10145 | cat >>conftest.$ac_ext <<_ACEOF | |
10146 | /* end confdefs.h. */ | |
10147 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
10148 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10149 | #define dlopen innocuous_dlopen | |
10150 | ||
10151 | /* System header to define __stub macros and hopefully few prototypes, | |
10152 | which can conflict with char dlopen (); below. | |
10153 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10154 | <limits.h> exists even on freestanding compilers. */ | |
10155 | ||
10156 | #ifdef __STDC__ | |
10157 | # include <limits.h> | |
10158 | #else | |
10159 | # include <assert.h> | |
10160 | #endif | |
10161 | ||
10162 | #undef dlopen | |
10163 | ||
10164 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10165 | #ifdef __cplusplus | |
10166 | extern "C" | |
10167 | { | |
10168 | #endif | |
10169 | /* We use char because int might match the return type of a gcc2 | |
10170 | builtin and then its argument prototype would still apply. */ | |
10171 | char dlopen (); | |
10172 | /* The GNU C library defines this for functions which it implements | |
10173 | to always fail with ENOSYS. Some functions are actually named | |
10174 | something starting with __ and the normal name is an alias. */ | |
10175 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
10176 | choke me | |
10177 | #else | |
10178 | char (*f) () = dlopen; | |
10179 | #endif | |
10180 | #ifdef __cplusplus | |
10181 | } | |
10182 | #endif | |
10183 | ||
10184 | int | |
10185 | main () | |
10186 | { | |
10187 | return f != dlopen; | |
10188 | ; | |
10189 | return 0; | |
10190 | } | |
10191 | _ACEOF | |
10192 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10193 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10194 | (eval $ac_link) 2>conftest.er1 | |
10195 | ac_status=$? | |
10196 | grep -v '^ *+' conftest.er1 >conftest.err | |
10197 | rm -f conftest.er1 | |
10198 | cat conftest.err >&5 | |
10199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10200 | (exit $ac_status); } && | |
10201 | { ac_try='test -z "$ac_c_werror_flag" | |
10202 | || test ! -s conftest.err' | |
10203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10204 | (eval $ac_try) 2>&5 | |
10205 | ac_status=$? | |
10206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10207 | (exit $ac_status); }; } && | |
10208 | { ac_try='test -s conftest$ac_exeext' | |
10209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10210 | (eval $ac_try) 2>&5 | |
10211 | ac_status=$? | |
10212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10213 | (exit $ac_status); }; }; then | |
10214 | ac_cv_func_dlopen=yes | |
10215 | else | |
10216 | echo "$as_me: failed program was:" >&5 | |
10217 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10218 | ||
10219 | ac_cv_func_dlopen=no | |
10220 | fi | |
10221 | rm -f conftest.err conftest.$ac_objext \ | |
10222 | conftest$ac_exeext conftest.$ac_ext | |
10223 | fi | |
10224 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
10225 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
10226 | if test $ac_cv_func_dlopen = yes; then | |
10227 | lt_cv_dlopen="dlopen" | |
10228 | else | |
10229 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
10230 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
10231 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
10232 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10233 | else | |
10234 | ac_check_lib_save_LIBS=$LIBS | |
10235 | LIBS="-ldl $LIBS" | |
10236 | if test x$gcc_no_link = xyes; then | |
10237 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10238 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10239 | { (exit 1); exit 1; }; } | |
10240 | fi | |
10241 | cat >conftest.$ac_ext <<_ACEOF | |
10242 | /* confdefs.h. */ | |
10243 | _ACEOF | |
10244 | cat confdefs.h >>conftest.$ac_ext | |
10245 | cat >>conftest.$ac_ext <<_ACEOF | |
10246 | /* end confdefs.h. */ | |
10247 | ||
10248 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10249 | #ifdef __cplusplus | |
10250 | extern "C" | |
10251 | #endif | |
10252 | /* We use char because int might match the return type of a gcc2 | |
10253 | builtin and then its argument prototype would still apply. */ | |
10254 | char dlopen (); | |
10255 | int | |
10256 | main () | |
10257 | { | |
10258 | dlopen (); | |
10259 | ; | |
10260 | return 0; | |
10261 | } | |
10262 | _ACEOF | |
10263 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10264 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10265 | (eval $ac_link) 2>conftest.er1 | |
10266 | ac_status=$? | |
10267 | grep -v '^ *+' conftest.er1 >conftest.err | |
10268 | rm -f conftest.er1 | |
10269 | cat conftest.err >&5 | |
10270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10271 | (exit $ac_status); } && | |
10272 | { ac_try='test -z "$ac_c_werror_flag" | |
10273 | || test ! -s conftest.err' | |
10274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10275 | (eval $ac_try) 2>&5 | |
10276 | ac_status=$? | |
10277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10278 | (exit $ac_status); }; } && | |
10279 | { ac_try='test -s conftest$ac_exeext' | |
10280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10281 | (eval $ac_try) 2>&5 | |
10282 | ac_status=$? | |
10283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10284 | (exit $ac_status); }; }; then | |
10285 | ac_cv_lib_dl_dlopen=yes | |
10286 | else | |
10287 | echo "$as_me: failed program was:" >&5 | |
10288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10289 | ||
10290 | ac_cv_lib_dl_dlopen=no | |
10291 | fi | |
10292 | rm -f conftest.err conftest.$ac_objext \ | |
10293 | conftest$ac_exeext conftest.$ac_ext | |
10294 | LIBS=$ac_check_lib_save_LIBS | |
10295 | fi | |
10296 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
10297 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
10298 | if test $ac_cv_lib_dl_dlopen = yes; then | |
10299 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10300 | else | |
10301 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
10302 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
10303 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
10304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10305 | else | |
10306 | ac_check_lib_save_LIBS=$LIBS | |
10307 | LIBS="-lsvld $LIBS" | |
10308 | if test x$gcc_no_link = xyes; then | |
10309 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10310 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10311 | { (exit 1); exit 1; }; } | |
10312 | fi | |
10313 | cat >conftest.$ac_ext <<_ACEOF | |
10314 | /* confdefs.h. */ | |
10315 | _ACEOF | |
10316 | cat confdefs.h >>conftest.$ac_ext | |
10317 | cat >>conftest.$ac_ext <<_ACEOF | |
10318 | /* end confdefs.h. */ | |
10319 | ||
10320 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10321 | #ifdef __cplusplus | |
10322 | extern "C" | |
10323 | #endif | |
10324 | /* We use char because int might match the return type of a gcc2 | |
10325 | builtin and then its argument prototype would still apply. */ | |
10326 | char dlopen (); | |
10327 | int | |
10328 | main () | |
10329 | { | |
10330 | dlopen (); | |
10331 | ; | |
10332 | return 0; | |
10333 | } | |
10334 | _ACEOF | |
10335 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10336 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10337 | (eval $ac_link) 2>conftest.er1 | |
10338 | ac_status=$? | |
10339 | grep -v '^ *+' conftest.er1 >conftest.err | |
10340 | rm -f conftest.er1 | |
10341 | cat conftest.err >&5 | |
10342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10343 | (exit $ac_status); } && | |
10344 | { ac_try='test -z "$ac_c_werror_flag" | |
10345 | || test ! -s conftest.err' | |
10346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10347 | (eval $ac_try) 2>&5 | |
10348 | ac_status=$? | |
10349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10350 | (exit $ac_status); }; } && | |
10351 | { ac_try='test -s conftest$ac_exeext' | |
10352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10353 | (eval $ac_try) 2>&5 | |
10354 | ac_status=$? | |
10355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10356 | (exit $ac_status); }; }; then | |
10357 | ac_cv_lib_svld_dlopen=yes | |
10358 | else | |
10359 | echo "$as_me: failed program was:" >&5 | |
10360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10361 | ||
10362 | ac_cv_lib_svld_dlopen=no | |
10363 | fi | |
10364 | rm -f conftest.err conftest.$ac_objext \ | |
10365 | conftest$ac_exeext conftest.$ac_ext | |
10366 | LIBS=$ac_check_lib_save_LIBS | |
10367 | fi | |
10368 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
10369 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
10370 | if test $ac_cv_lib_svld_dlopen = yes; then | |
10371 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
10372 | else | |
10373 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
10374 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
10375 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
10376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10377 | else | |
10378 | ac_check_lib_save_LIBS=$LIBS | |
10379 | LIBS="-ldld $LIBS" | |
10380 | if test x$gcc_no_link = xyes; then | |
10381 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10382 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10383 | { (exit 1); exit 1; }; } | |
10384 | fi | |
10385 | cat >conftest.$ac_ext <<_ACEOF | |
10386 | /* confdefs.h. */ | |
10387 | _ACEOF | |
10388 | cat confdefs.h >>conftest.$ac_ext | |
10389 | cat >>conftest.$ac_ext <<_ACEOF | |
10390 | /* end confdefs.h. */ | |
10391 | ||
10392 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10393 | #ifdef __cplusplus | |
10394 | extern "C" | |
10395 | #endif | |
10396 | /* We use char because int might match the return type of a gcc2 | |
10397 | builtin and then its argument prototype would still apply. */ | |
10398 | char dld_link (); | |
10399 | int | |
10400 | main () | |
10401 | { | |
10402 | dld_link (); | |
10403 | ; | |
10404 | return 0; | |
10405 | } | |
10406 | _ACEOF | |
10407 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10408 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10409 | (eval $ac_link) 2>conftest.er1 | |
10410 | ac_status=$? | |
10411 | grep -v '^ *+' conftest.er1 >conftest.err | |
10412 | rm -f conftest.er1 | |
10413 | cat conftest.err >&5 | |
10414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10415 | (exit $ac_status); } && | |
10416 | { ac_try='test -z "$ac_c_werror_flag" | |
10417 | || test ! -s conftest.err' | |
10418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10419 | (eval $ac_try) 2>&5 | |
10420 | ac_status=$? | |
10421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10422 | (exit $ac_status); }; } && | |
10423 | { ac_try='test -s conftest$ac_exeext' | |
10424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10425 | (eval $ac_try) 2>&5 | |
10426 | ac_status=$? | |
10427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10428 | (exit $ac_status); }; }; then | |
10429 | ac_cv_lib_dld_dld_link=yes | |
10430 | else | |
10431 | echo "$as_me: failed program was:" >&5 | |
10432 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10433 | ||
10434 | ac_cv_lib_dld_dld_link=no | |
10435 | fi | |
10436 | rm -f conftest.err conftest.$ac_objext \ | |
10437 | conftest$ac_exeext conftest.$ac_ext | |
10438 | LIBS=$ac_check_lib_save_LIBS | |
10439 | fi | |
10440 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
10441 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
10442 | if test $ac_cv_lib_dld_dld_link = yes; then | |
10443 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
10444 | fi | |
10445 | ||
10446 | ||
10447 | fi | |
10448 | ||
10449 | ||
10450 | fi | |
10451 | ||
10452 | ||
10453 | fi | |
10454 | ||
10455 | ||
10456 | fi | |
10457 | ||
10458 | ||
10459 | fi | |
10460 | ||
10461 | ;; | |
10462 | esac | |
10463 | ||
10464 | if test "x$lt_cv_dlopen" != xno; then | |
10465 | enable_dlopen=yes | |
10466 | else | |
10467 | enable_dlopen=no | |
10468 | fi | |
10469 | ||
10470 | case $lt_cv_dlopen in | |
10471 | dlopen) | |
10472 | save_CPPFLAGS="$CPPFLAGS" | |
10473 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
10474 | ||
10475 | save_LDFLAGS="$LDFLAGS" | |
10476 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
10477 | ||
10478 | save_LIBS="$LIBS" | |
10479 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
10480 | ||
10481 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
10482 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
10483 | if test "${lt_cv_dlopen_self+set}" = set; then | |
10484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10485 | else | |
10486 | if test "$cross_compiling" = yes; then : | |
10487 | lt_cv_dlopen_self=cross | |
10488 | else | |
10489 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10490 | lt_status=$lt_dlunknown | |
10491 | cat > conftest.$ac_ext <<_LT_EOF | |
82a6cadf | 10492 | #line 10492 "configure" |
1cf3d07d SE |
10493 | #include "confdefs.h" |
10494 | ||
10495 | #if HAVE_DLFCN_H | |
10496 | #include <dlfcn.h> | |
10497 | #endif | |
10498 | ||
10499 | #include <stdio.h> | |
10500 | ||
10501 | #ifdef RTLD_GLOBAL | |
10502 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10503 | #else | |
10504 | # ifdef DL_GLOBAL | |
10505 | # define LT_DLGLOBAL DL_GLOBAL | |
10506 | # else | |
10507 | # define LT_DLGLOBAL 0 | |
10508 | # endif | |
10509 | #endif | |
10510 | ||
10511 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10512 | find out it does not work in some platform. */ | |
10513 | #ifndef LT_DLLAZY_OR_NOW | |
10514 | # ifdef RTLD_LAZY | |
10515 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10516 | # else | |
10517 | # ifdef DL_LAZY | |
10518 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10519 | # else | |
10520 | # ifdef RTLD_NOW | |
10521 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10522 | # else | |
10523 | # ifdef DL_NOW | |
10524 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10525 | # else | |
10526 | # define LT_DLLAZY_OR_NOW 0 | |
10527 | # endif | |
10528 | # endif | |
10529 | # endif | |
10530 | # endif | |
10531 | #endif | |
10532 | ||
10533 | #ifdef __cplusplus | |
10534 | extern "C" void exit (int); | |
10535 | #endif | |
10536 | ||
10537 | void fnord() { int i=42;} | |
10538 | int main () | |
10539 | { | |
10540 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10541 | int status = $lt_dlunknown; | |
10542 | ||
10543 | if (self) | |
10544 | { | |
10545 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10546 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10547 | /* dlclose (self); */ | |
10548 | } | |
10549 | else | |
10550 | puts (dlerror ()); | |
10551 | ||
10552 | exit (status); | |
10553 | } | |
10554 | _LT_EOF | |
10555 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10556 | (eval $ac_link) 2>&5 | |
10557 | ac_status=$? | |
10558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10559 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
10560 | (./conftest; exit; ) >&5 2>/dev/null | |
10561 | lt_status=$? | |
10562 | case x$lt_status in | |
10563 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
10564 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
10565 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
10566 | esac | |
10567 | else : | |
10568 | # compilation failed | |
10569 | lt_cv_dlopen_self=no | |
10570 | fi | |
10571 | fi | |
10572 | rm -fr conftest* | |
10573 | ||
10574 | ||
10575 | fi | |
10576 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
10577 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
10578 | ||
10579 | if test "x$lt_cv_dlopen_self" = xyes; then | |
10580 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
10581 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
10582 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
10583 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
10584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10585 | else | |
10586 | if test "$cross_compiling" = yes; then : | |
10587 | lt_cv_dlopen_self_static=cross | |
10588 | else | |
10589 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10590 | lt_status=$lt_dlunknown | |
10591 | cat > conftest.$ac_ext <<_LT_EOF | |
82a6cadf | 10592 | #line 10592 "configure" |
1cf3d07d SE |
10593 | #include "confdefs.h" |
10594 | ||
10595 | #if HAVE_DLFCN_H | |
10596 | #include <dlfcn.h> | |
10597 | #endif | |
10598 | ||
10599 | #include <stdio.h> | |
10600 | ||
10601 | #ifdef RTLD_GLOBAL | |
10602 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10603 | #else | |
10604 | # ifdef DL_GLOBAL | |
10605 | # define LT_DLGLOBAL DL_GLOBAL | |
10606 | # else | |
10607 | # define LT_DLGLOBAL 0 | |
10608 | # endif | |
10609 | #endif | |
10610 | ||
10611 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10612 | find out it does not work in some platform. */ | |
10613 | #ifndef LT_DLLAZY_OR_NOW | |
10614 | # ifdef RTLD_LAZY | |
10615 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10616 | # else | |
10617 | # ifdef DL_LAZY | |
10618 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10619 | # else | |
10620 | # ifdef RTLD_NOW | |
10621 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10622 | # else | |
10623 | # ifdef DL_NOW | |
10624 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10625 | # else | |
10626 | # define LT_DLLAZY_OR_NOW 0 | |
10627 | # endif | |
10628 | # endif | |
10629 | # endif | |
10630 | # endif | |
10631 | #endif | |
10632 | ||
10633 | #ifdef __cplusplus | |
10634 | extern "C" void exit (int); | |
10635 | #endif | |
10636 | ||
10637 | void fnord() { int i=42;} | |
10638 | int main () | |
10639 | { | |
10640 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10641 | int status = $lt_dlunknown; | |
10642 | ||
10643 | if (self) | |
10644 | { | |
10645 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10646 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10647 | /* dlclose (self); */ | |
10648 | } | |
10649 | else | |
10650 | puts (dlerror ()); | |
10651 | ||
10652 | exit (status); | |
10653 | } | |
10654 | _LT_EOF | |
10655 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10656 | (eval $ac_link) 2>&5 | |
10657 | ac_status=$? | |
10658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10659 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
10660 | (./conftest; exit; ) >&5 2>/dev/null | |
10661 | lt_status=$? | |
10662 | case x$lt_status in | |
10663 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
10664 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
10665 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
10666 | esac | |
10667 | else : | |
10668 | # compilation failed | |
10669 | lt_cv_dlopen_self_static=no | |
10670 | fi | |
10671 | fi | |
10672 | rm -fr conftest* | |
10673 | ||
10674 | ||
10675 | fi | |
10676 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
10677 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
10678 | fi | |
10679 | ||
10680 | CPPFLAGS="$save_CPPFLAGS" | |
10681 | LDFLAGS="$save_LDFLAGS" | |
10682 | LIBS="$save_LIBS" | |
10683 | ;; | |
10684 | esac | |
10685 | ||
10686 | case $lt_cv_dlopen_self in | |
10687 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
10688 | *) enable_dlopen_self=unknown ;; | |
10689 | esac | |
10690 | ||
10691 | case $lt_cv_dlopen_self_static in | |
10692 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
10693 | *) enable_dlopen_self_static=unknown ;; | |
10694 | esac | |
10695 | fi | |
10696 | ||
10697 | ||
10698 | ||
10699 | ||
10700 | ||
10701 | ||
10702 | ||
10703 | ||
10704 | ||
10705 | ||
10706 | ||
10707 | ||
10708 | ||
10709 | ||
10710 | ||
10711 | ||
10712 | ||
10713 | striplib= | |
10714 | old_striplib= | |
10715 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
10716 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
10717 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
10718 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
10719 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
10720 | echo "$as_me:$LINENO: result: yes" >&5 | |
10721 | echo "${ECHO_T}yes" >&6 | |
10722 | else | |
10723 | # FIXME - insert some real tests, host_os isn't really good enough | |
10724 | case $host_os in | |
10725 | darwin*) | |
10726 | if test -n "$STRIP" ; then | |
10727 | striplib="$STRIP -x" | |
10728 | old_striplib="$STRIP -S" | |
10729 | echo "$as_me:$LINENO: result: yes" >&5 | |
10730 | echo "${ECHO_T}yes" >&6 | |
10731 | else | |
10732 | echo "$as_me:$LINENO: result: no" >&5 | |
10733 | echo "${ECHO_T}no" >&6 | |
10734 | fi | |
10735 | ;; | |
10736 | *) | |
10737 | echo "$as_me:$LINENO: result: no" >&5 | |
10738 | echo "${ECHO_T}no" >&6 | |
10739 | ;; | |
10740 | esac | |
10741 | fi | |
10742 | ||
10743 | ||
10744 | ||
10745 | ||
10746 | ||
10747 | ||
10748 | ||
10749 | ||
10750 | ||
10751 | ||
10752 | ||
10753 | ||
10754 | # Report which library types will actually be built | |
10755 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
10756 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
10757 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
10758 | echo "${ECHO_T}$can_build_shared" >&6 | |
10759 | ||
10760 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
10761 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
10762 | test "$can_build_shared" = "no" && enable_shared=no | |
10763 | ||
10764 | # On AIX, shared libraries and static libraries use the same namespace, and | |
10765 | # are all built from PIC. | |
10766 | case $host_os in | |
10767 | aix3*) | |
10768 | test "$enable_shared" = yes && enable_static=no | |
10769 | if test -n "$RANLIB"; then | |
10770 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
10771 | postinstall_cmds='$RANLIB $lib' | |
10772 | fi | |
10773 | ;; | |
10774 | ||
10775 | aix4* | aix5*) | |
10776 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
10777 | test "$enable_shared" = yes && enable_static=no | |
10778 | fi | |
10779 | ;; | |
10780 | esac | |
10781 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
10782 | echo "${ECHO_T}$enable_shared" >&6 | |
10783 | ||
10784 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
10785 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
10786 | # Make sure either enable_shared or enable_static is yes. | |
10787 | test "$enable_shared" = yes || enable_static=yes | |
10788 | echo "$as_me:$LINENO: result: $enable_static" >&5 | |
10789 | echo "${ECHO_T}$enable_static" >&6 | |
10790 | ||
10791 | ||
10792 | ||
10793 | ||
10794 | fi | |
10795 | ac_ext=c | |
10796 | ac_cpp='$CPP $CPPFLAGS' | |
10797 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10798 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10799 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10800 | ||
10801 | CC="$lt_save_CC" | |
10802 | ||
10803 | ||
10804 | ac_ext=cc | |
10805 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10806 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10807 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10808 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10809 | ||
10810 | archive_cmds_need_lc_CXX=no | |
10811 | allow_undefined_flag_CXX= | |
10812 | always_export_symbols_CXX=no | |
10813 | archive_expsym_cmds_CXX= | |
10814 | compiler_needs_object_CXX=no | |
10815 | export_dynamic_flag_spec_CXX= | |
10816 | hardcode_direct_CXX=no | |
10817 | hardcode_direct_absolute_CXX=no | |
10818 | hardcode_libdir_flag_spec_CXX= | |
10819 | hardcode_libdir_flag_spec_ld_CXX= | |
10820 | hardcode_libdir_separator_CXX= | |
10821 | hardcode_minus_L_CXX=no | |
10822 | hardcode_shlibpath_var_CXX=unsupported | |
10823 | hardcode_automatic_CXX=no | |
10824 | inherit_rpath_CXX=no | |
10825 | module_cmds_CXX= | |
10826 | module_expsym_cmds_CXX= | |
10827 | link_all_deplibs_CXX=unknown | |
10828 | old_archive_cmds_CXX=$old_archive_cmds | |
10829 | no_undefined_flag_CXX= | |
10830 | whole_archive_flag_spec_CXX= | |
10831 | enable_shared_with_static_runtimes_CXX=no | |
10832 | ||
10833 | # Source file extension for C++ test sources. | |
10834 | ac_ext=cpp | |
10835 | ||
10836 | # Object file extension for compiled C++ test sources. | |
10837 | objext=o | |
10838 | objext_CXX=$objext | |
10839 | ||
10840 | # No sense in running all these tests if we already determined that | |
10841 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
10842 | # are currently assumed to apply to all compilers on this platform, | |
10843 | # and will be corrupted by setting them based on a non-working compiler. | |
10844 | if test "$_lt_caught_CXX_error" != yes; then | |
10845 | # Code to be used in simple compile tests | |
10846 | lt_simple_compile_test_code="int some_variable = 0;" | |
10847 | ||
10848 | # Code to be used in simple link tests | |
10849 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
10850 | ||
10851 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
10852 | ||
10853 | ||
10854 | ||
10855 | ||
10856 | ||
10857 | ||
10858 | # If no C compiler was specified, use CC. | |
10859 | LTCC=${LTCC-"$CC"} | |
10860 | ||
10861 | # If no C compiler flags were specified, use CFLAGS. | |
10862 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
10863 | ||
10864 | # Allow CC to be a program name with arguments. | |
10865 | compiler=$CC | |
10866 | ||
10867 | ||
10868 | # save warnings/boilerplate of simple test code | |
10869 | ac_outfile=conftest.$ac_objext | |
10870 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
10871 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
10872 | _lt_compiler_boilerplate=`cat conftest.err` | |
10873 | $RM conftest* | |
10874 | ||
10875 | ac_outfile=conftest.$ac_objext | |
10876 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
10877 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
10878 | _lt_linker_boilerplate=`cat conftest.err` | |
10879 | $RM conftest* | |
10880 | ||
10881 | ||
10882 | # Allow CC to be a program name with arguments. | |
10883 | lt_save_CC=$CC | |
10884 | lt_save_LD=$LD | |
10885 | lt_save_GCC=$GCC | |
10886 | GCC=$GXX | |
10887 | lt_save_with_gnu_ld=$with_gnu_ld | |
10888 | lt_save_path_LD=$lt_cv_path_LD | |
10889 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
10890 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
10891 | else | |
10892 | $as_unset lt_cv_prog_gnu_ld | |
10893 | fi | |
10894 | if test -n "${lt_cv_path_LDCXX+set}"; then | |
10895 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
10896 | else | |
10897 | $as_unset lt_cv_path_LD | |
10898 | fi | |
10899 | test -z "${LDCXX+set}" || LD=$LDCXX | |
10900 | CC=${CXX-"c++"} | |
10901 | compiler=$CC | |
10902 | compiler_CXX=$CC | |
10903 | for cc_temp in $compiler""; do | |
10904 | case $cc_temp in | |
10905 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
10906 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
10907 | \-*) ;; | |
10908 | *) break;; | |
10909 | esac | |
10910 | done | |
10911 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
10912 | ||
10913 | ||
10914 | if test -n "$compiler"; then | |
10915 | # We don't want -fno-exception when compiling C++ code, so set the | |
10916 | # no_builtin_flag separately | |
10917 | if test "$GXX" = yes; then | |
10918 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
10919 | else | |
10920 | lt_prog_compiler_no_builtin_flag_CXX= | |
10921 | fi | |
10922 | ||
10923 | if test "$GXX" = yes; then | |
10924 | # Set up default GNU C++ configuration | |
10925 | ||
10926 | ||
10927 | ||
10928 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
10929 | if test "${with_gnu_ld+set}" = set; then | |
10930 | withval="$with_gnu_ld" | |
10931 | test "$withval" = no || with_gnu_ld=yes | |
10932 | else | |
10933 | with_gnu_ld=no | |
10934 | fi; | |
10935 | ac_prog=ld | |
10936 | if test "$GCC" = yes; then | |
10937 | # Check if gcc -print-prog-name=ld gives a path. | |
10938 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
10939 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | |
10940 | case $host in | |
10941 | *-*-mingw*) | |
10942 | # gcc leaves a trailing carriage return which upsets mingw | |
10943 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
10944 | *) | |
10945 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
10946 | esac | |
10947 | case $ac_prog in | |
10948 | # Accept absolute paths. | |
10949 | [\\/]* | ?:[\\/]*) | |
10950 | re_direlt='/[^/][^/]*/\.\./' | |
10951 | # Canonicalize the pathname of ld | |
10952 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
10953 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
10954 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
10955 | done | |
10956 | test -z "$LD" && LD="$ac_prog" | |
10957 | ;; | |
10958 | "") | |
10959 | # If it fails, then pretend we aren't using GCC. | |
10960 | ac_prog=ld | |
10961 | ;; | |
10962 | *) | |
10963 | # If it is relative, then search for the first ld in PATH. | |
10964 | with_gnu_ld=unknown | |
10965 | ;; | |
10966 | esac | |
10967 | elif test "$with_gnu_ld" = yes; then | |
10968 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
10969 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
10970 | else | |
10971 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
10972 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
10973 | fi | |
10974 | if test "${lt_cv_path_LD+set}" = set; then | |
10975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10976 | else | |
10977 | if test -z "$LD"; then | |
10978 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
10979 | for ac_dir in $PATH; do | |
10980 | IFS="$lt_save_ifs" | |
10981 | test -z "$ac_dir" && ac_dir=. | |
10982 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
10983 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
10984 | # Check to see if the program is GNU ld. I'd rather use --version, | |
10985 | # but apparently some variants of GNU ld only accept -v. | |
10986 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
10987 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
10988 | *GNU* | *'with BFD'*) | |
10989 | test "$with_gnu_ld" != no && break | |
10990 | ;; | |
10991 | *) | |
10992 | test "$with_gnu_ld" != yes && break | |
10993 | ;; | |
10994 | esac | |
10995 | fi | |
10996 | done | |
10997 | IFS="$lt_save_ifs" | |
10998 | else | |
10999 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
11000 | fi | |
11001 | fi | |
11002 | ||
11003 | LD="$lt_cv_path_LD" | |
11004 | if test -n "$LD"; then | |
11005 | echo "$as_me:$LINENO: result: $LD" >&5 | |
11006 | echo "${ECHO_T}$LD" >&6 | |
11007 | else | |
11008 | echo "$as_me:$LINENO: result: no" >&5 | |
11009 | echo "${ECHO_T}no" >&6 | |
11010 | fi | |
11011 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
11012 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
11013 | { (exit 1); exit 1; }; } | |
11014 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
11015 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
11016 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
11017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11018 | else | |
11019 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
11020 | case `$LD -v 2>&1 </dev/null` in | |
11021 | *GNU* | *'with BFD'*) | |
11022 | lt_cv_prog_gnu_ld=yes | |
11023 | ;; | |
11024 | *) | |
11025 | lt_cv_prog_gnu_ld=no | |
11026 | ;; | |
11027 | esac | |
11028 | fi | |
11029 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
11030 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
11031 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
11032 | ||
11033 | ||
11034 | ||
11035 | ||
11036 | ||
11037 | ||
11038 | ||
11039 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
11040 | # archiving commands below assume that GNU ld is being used. | |
11041 | if test "$with_gnu_ld" = yes; then | |
11042 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11043 | 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' | |
11044 | ||
11045 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11046 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
11047 | ||
11048 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
11049 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
11050 | # investigate it a little bit more. (MM) | |
11051 | wlarc='${wl}' | |
11052 | ||
11053 | # ancient GNU ld didn't support --whole-archive et. al. | |
11054 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
11055 | $GREP 'no-whole-archive' > /dev/null; then | |
11056 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
11057 | else | |
11058 | whole_archive_flag_spec_CXX= | |
11059 | fi | |
11060 | else | |
11061 | with_gnu_ld=no | |
11062 | wlarc= | |
11063 | ||
11064 | # A generic and very simple default shared library creation | |
11065 | # command for GNU C++ for the case where it uses the native | |
11066 | # linker, instead of GNU ld. If possible, this setting should | |
11067 | # overridden to take advantage of the native linker features on | |
11068 | # the platform it is being used on. | |
11069 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
11070 | fi | |
11071 | ||
11072 | # Commands to make compiler produce verbose output that lists | |
11073 | # what "hidden" libraries, object files and flags are used when | |
11074 | # linking a shared library. | |
11075 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
11076 | ||
11077 | else | |
11078 | GXX=no | |
11079 | with_gnu_ld=no | |
11080 | wlarc= | |
11081 | fi | |
11082 | ||
11083 | # PORTME: fill in a description of your system's C++ link characteristics | |
11084 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
11085 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
11086 | ld_shlibs_CXX=yes | |
11087 | case $host_os in | |
11088 | aix3*) | |
11089 | # FIXME: insert proper C++ library support | |
11090 | ld_shlibs_CXX=no | |
11091 | ;; | |
11092 | aix4* | aix5*) | |
11093 | if test "$host_cpu" = ia64; then | |
11094 | # On IA64, the linker does run time linking by default, so we don't | |
11095 | # have to do anything special. | |
11096 | aix_use_runtimelinking=no | |
11097 | exp_sym_flag='-Bexport' | |
11098 | no_entry_flag="" | |
11099 | else | |
11100 | aix_use_runtimelinking=no | |
11101 | ||
11102 | # Test if we are trying to use run time linking or normal | |
11103 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
11104 | # need to do runtime linking. | |
11105 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
11106 | for ld_flag in $LDFLAGS; do | |
11107 | case $ld_flag in | |
11108 | *-brtl*) | |
11109 | aix_use_runtimelinking=yes | |
11110 | break | |
11111 | ;; | |
11112 | esac | |
11113 | done | |
11114 | ;; | |
11115 | esac | |
11116 | ||
11117 | exp_sym_flag='-bexport' | |
11118 | no_entry_flag='-bnoentry' | |
11119 | fi | |
11120 | ||
11121 | # When large executables or shared objects are built, AIX ld can | |
11122 | # have problems creating the table of contents. If linking a library | |
11123 | # or program results in "error TOC overflow" add -mminimal-toc to | |
11124 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
11125 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
11126 | ||
11127 | archive_cmds_CXX='' | |
11128 | hardcode_direct_CXX=yes | |
11129 | hardcode_direct_absolute_CXX=yes | |
11130 | hardcode_libdir_separator_CXX=':' | |
11131 | link_all_deplibs_CXX=yes | |
11132 | file_list_spec_CXX='${wl}-f,' | |
11133 | ||
11134 | if test "$GXX" = yes; then | |
11135 | case $host_os in aix4.[012]|aix4.[012].*) | |
11136 | # We only want to do this on AIX 4.2 and lower, the check | |
11137 | # below for broken collect2 doesn't work under 4.3+ | |
11138 | collect2name=`${CC} -print-prog-name=collect2` | |
11139 | if test -f "$collect2name" && | |
11140 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
11141 | then | |
11142 | # We have reworked collect2 | |
11143 | : | |
11144 | else | |
11145 | # We have old collect2 | |
11146 | hardcode_direct_CXX=unsupported | |
11147 | # It fails to find uninstalled libraries when the uninstalled | |
11148 | # path is not listed in the libpath. Setting hardcode_minus_L | |
11149 | # to unsupported forces relinking | |
11150 | hardcode_minus_L_CXX=yes | |
11151 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
11152 | hardcode_libdir_separator_CXX= | |
11153 | fi | |
11154 | esac | |
11155 | shared_flag='-shared' | |
11156 | if test "$aix_use_runtimelinking" = yes; then | |
11157 | shared_flag="$shared_flag "'${wl}-G' | |
11158 | fi | |
11159 | else | |
11160 | # not using gcc | |
11161 | if test "$host_cpu" = ia64; then | |
11162 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
11163 | # chokes on -Wl,-G. The following line is correct: | |
11164 | shared_flag='-G' | |
11165 | else | |
11166 | if test "$aix_use_runtimelinking" = yes; then | |
11167 | shared_flag='${wl}-G' | |
11168 | else | |
11169 | shared_flag='${wl}-bM:SRE' | |
11170 | fi | |
11171 | fi | |
11172 | fi | |
11173 | ||
11174 | # It seems that -bexpall does not export symbols beginning with | |
11175 | # underscore (_), so it is better to generate a list of symbols to | |
11176 | # export. | |
11177 | always_export_symbols_CXX=yes | |
11178 | if test "$aix_use_runtimelinking" = yes; then | |
11179 | # Warning - without using the other runtime loading flags (-brtl), | |
11180 | # -berok will link without error, but may produce a broken library. | |
11181 | allow_undefined_flag_CXX='-berok' | |
11182 | # Determine the default libpath from the value encoded in an empty | |
11183 | # executable. | |
11184 | if test x$gcc_no_link = xyes; then | |
11185 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11186 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11187 | { (exit 1); exit 1; }; } | |
11188 | fi | |
11189 | cat >conftest.$ac_ext <<_ACEOF | |
11190 | /* confdefs.h. */ | |
11191 | _ACEOF | |
11192 | cat confdefs.h >>conftest.$ac_ext | |
11193 | cat >>conftest.$ac_ext <<_ACEOF | |
11194 | /* end confdefs.h. */ | |
11195 | ||
11196 | int | |
11197 | main () | |
11198 | { | |
11199 | ||
11200 | ; | |
11201 | return 0; | |
11202 | } | |
11203 | _ACEOF | |
11204 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11205 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11206 | (eval $ac_link) 2>conftest.er1 | |
11207 | ac_status=$? | |
11208 | grep -v '^ *+' conftest.er1 >conftest.err | |
11209 | rm -f conftest.er1 | |
11210 | cat conftest.err >&5 | |
11211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11212 | (exit $ac_status); } && | |
11213 | { ac_try='test -z "$ac_cxx_werror_flag" | |
11214 | || test ! -s conftest.err' | |
11215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11216 | (eval $ac_try) 2>&5 | |
11217 | ac_status=$? | |
11218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11219 | (exit $ac_status); }; } && | |
11220 | { ac_try='test -s conftest$ac_exeext' | |
11221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11222 | (eval $ac_try) 2>&5 | |
11223 | ac_status=$? | |
11224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11225 | (exit $ac_status); }; }; then | |
11226 | ||
11227 | lt_aix_libpath_sed=' | |
11228 | /Import File Strings/,/^$/ { | |
11229 | /^0/ { | |
11230 | s/^0 *\(.*\)$/\1/ | |
11231 | p | |
11232 | } | |
11233 | }' | |
11234 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11235 | # Check for a 64-bit object if we didn't find anything. | |
11236 | if test -z "$aix_libpath"; then | |
11237 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11238 | fi | |
11239 | else | |
11240 | echo "$as_me: failed program was:" >&5 | |
11241 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11242 | ||
11243 | fi | |
11244 | rm -f conftest.err conftest.$ac_objext \ | |
11245 | conftest$ac_exeext conftest.$ac_ext | |
11246 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
11247 | ||
11248 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
11249 | ||
11250 | archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
11251 | else | |
11252 | if test "$host_cpu" = ia64; then | |
11253 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
11254 | allow_undefined_flag_CXX="-z nodefs" | |
11255 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
11256 | else | |
11257 | # Determine the default libpath from the value encoded in an | |
11258 | # empty executable. | |
11259 | if test x$gcc_no_link = xyes; then | |
11260 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11261 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11262 | { (exit 1); exit 1; }; } | |
11263 | fi | |
11264 | cat >conftest.$ac_ext <<_ACEOF | |
11265 | /* confdefs.h. */ | |
11266 | _ACEOF | |
11267 | cat confdefs.h >>conftest.$ac_ext | |
11268 | cat >>conftest.$ac_ext <<_ACEOF | |
11269 | /* end confdefs.h. */ | |
11270 | ||
11271 | int | |
11272 | main () | |
11273 | { | |
11274 | ||
11275 | ; | |
11276 | return 0; | |
11277 | } | |
11278 | _ACEOF | |
11279 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11280 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11281 | (eval $ac_link) 2>conftest.er1 | |
11282 | ac_status=$? | |
11283 | grep -v '^ *+' conftest.er1 >conftest.err | |
11284 | rm -f conftest.er1 | |
11285 | cat conftest.err >&5 | |
11286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11287 | (exit $ac_status); } && | |
11288 | { ac_try='test -z "$ac_cxx_werror_flag" | |
11289 | || test ! -s conftest.err' | |
11290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11291 | (eval $ac_try) 2>&5 | |
11292 | ac_status=$? | |
11293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11294 | (exit $ac_status); }; } && | |
11295 | { ac_try='test -s conftest$ac_exeext' | |
11296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11297 | (eval $ac_try) 2>&5 | |
11298 | ac_status=$? | |
11299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11300 | (exit $ac_status); }; }; then | |
11301 | ||
11302 | lt_aix_libpath_sed=' | |
11303 | /Import File Strings/,/^$/ { | |
11304 | /^0/ { | |
11305 | s/^0 *\(.*\)$/\1/ | |
11306 | p | |
11307 | } | |
11308 | }' | |
11309 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11310 | # Check for a 64-bit object if we didn't find anything. | |
11311 | if test -z "$aix_libpath"; then | |
11312 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11313 | fi | |
11314 | else | |
11315 | echo "$as_me: failed program was:" >&5 | |
11316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11317 | ||
11318 | fi | |
11319 | rm -f conftest.err conftest.$ac_objext \ | |
11320 | conftest$ac_exeext conftest.$ac_ext | |
11321 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
11322 | ||
11323 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
11324 | # Warning - without using the other run time loading flags, | |
11325 | # -berok will link without error, but may produce a broken library. | |
11326 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
11327 | allow_undefined_flag_CXX=' ${wl}-berok' | |
11328 | # Exported symbols can be pulled into shared objects from archives | |
11329 | whole_archive_flag_spec_CXX='$convenience' | |
11330 | archive_cmds_need_lc_CXX=yes | |
11331 | # This is similar to how AIX traditionally builds its shared | |
11332 | # libraries. | |
11333 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
11334 | fi | |
11335 | fi | |
11336 | ;; | |
11337 | ||
11338 | beos*) | |
11339 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
11340 | allow_undefined_flag_CXX=unsupported | |
11341 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
11342 | # support --undefined. This deserves some investigation. FIXME | |
11343 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11344 | else | |
11345 | ld_shlibs_CXX=no | |
11346 | fi | |
11347 | ;; | |
11348 | ||
11349 | chorus*) | |
11350 | case $cc_basename in | |
11351 | *) | |
11352 | # FIXME: insert proper C++ library support | |
11353 | ld_shlibs_CXX=no | |
11354 | ;; | |
11355 | esac | |
11356 | ;; | |
11357 | ||
11358 | cygwin* | mingw* | pw32*) | |
11359 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
11360 | # as there is no search path for DLLs. | |
11361 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
11362 | allow_undefined_flag_CXX=unsupported | |
11363 | always_export_symbols_CXX=no | |
11364 | enable_shared_with_static_runtimes_CXX=yes | |
11365 | ||
11366 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
11367 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
11368 | # If the export-symbols file already is a .def file (1st line | |
11369 | # is EXPORTS), use it as is; otherwise, prepend... | |
11370 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
11371 | cp $export_symbols $output_objdir/$soname.def; | |
11372 | else | |
11373 | echo EXPORTS > $output_objdir/$soname.def; | |
11374 | cat $export_symbols >> $output_objdir/$soname.def; | |
11375 | fi~ | |
11376 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
11377 | else | |
11378 | ld_shlibs_CXX=no | |
11379 | fi | |
11380 | ;; | |
11381 | darwin* | rhapsody*) | |
11382 | case $host_os in | |
11383 | rhapsody* | darwin1.[012]) | |
11384 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' | |
11385 | ;; | |
11386 | *) # Darwin 1.3 on | |
11387 | case ${MACOSX_DEPLOYMENT_TARGET-10.0} in | |
11388 | 10.[012]) | |
11389 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
11390 | ;; | |
11391 | 10.*) | |
11392 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' | |
11393 | ;; | |
11394 | esac | |
11395 | ;; | |
11396 | esac | |
11397 | archive_cmds_need_lc_CXX=no | |
11398 | hardcode_direct_CXX=no | |
11399 | hardcode_automatic_CXX=yes | |
11400 | hardcode_shlibpath_var_CXX=unsupported | |
11401 | whole_archive_flag_spec_CXX='' | |
11402 | link_all_deplibs_CXX=yes | |
11403 | ||
11404 | if test "$GXX" = yes ; then | |
11405 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then | |
11406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11407 | else | |
11408 | lt_cv_apple_cc_single_mod=no | |
11409 | if test -z "${LT_MULTI_MODULE}"; then | |
11410 | # By default we will add the -single_module flag. You can override | |
11411 | # by either setting the environment variable LT_MULTI_MODULE | |
11412 | # non-empty at configure time, or by adding -multi-module to the | |
11413 | # link flags. | |
11414 | echo "int foo(void){return 1;}" > conftest.c | |
11415 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
11416 | -dynamiclib ${wl}-single_module conftest.c | |
11417 | if test -f libconftest.dylib; then | |
11418 | lt_cv_apple_cc_single_mod=yes | |
11419 | rm libconftest.dylib | |
11420 | fi | |
11421 | rm conftest.$ac_ext | |
11422 | fi | |
11423 | fi | |
11424 | ||
11425 | output_verbose_link_cmd=echo | |
11426 | if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then | |
11427 | archive_cmds_CXX='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
11428 | archive_expsym_cmds_CXX='sed "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}' | |
11429 | else | |
11430 | archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
11431 | archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
11432 | fi | |
11433 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
11434 | module_expsym_cmds_CXX='sed "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}' | |
11435 | else | |
11436 | case $cc_basename in | |
11437 | xlc*) | |
11438 | output_verbose_link_cmd=echo | |
11439 | archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO "$rpath/$soname"` $verstring' | |
11440 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
11441 | # Don't fix this by using the ld -exported_symbols_list flag, | |
11442 | # it doesn't exist in older darwin lds | |
11443 | archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
11444 | module_expsym_cmds_CXX='sed "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}' | |
11445 | ;; | |
11446 | *) | |
11447 | ld_shlibs_CXX=no | |
11448 | ;; | |
11449 | esac | |
11450 | fi | |
11451 | ;; | |
11452 | ||
11453 | dgux*) | |
11454 | case $cc_basename in | |
11455 | ec++*) | |
11456 | # FIXME: insert proper C++ library support | |
11457 | ld_shlibs_CXX=no | |
11458 | ;; | |
11459 | ghcx*) | |
11460 | # Green Hills C++ Compiler | |
11461 | # FIXME: insert proper C++ library support | |
11462 | ld_shlibs_CXX=no | |
11463 | ;; | |
11464 | *) | |
11465 | # FIXME: insert proper C++ library support | |
11466 | ld_shlibs_CXX=no | |
11467 | ;; | |
11468 | esac | |
11469 | ;; | |
11470 | ||
11471 | freebsd[12]*) | |
11472 | # C++ shared libraries reported to be fairly broken before | |
11473 | # switch to ELF | |
11474 | ld_shlibs_CXX=no | |
11475 | ;; | |
11476 | ||
11477 | freebsd-elf*) | |
11478 | archive_cmds_need_lc_CXX=no | |
11479 | ;; | |
11480 | ||
11481 | freebsd* | dragonfly*) | |
11482 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
11483 | # conventions | |
11484 | ld_shlibs_CXX=yes | |
11485 | ;; | |
11486 | ||
11487 | gnu*) | |
11488 | ;; | |
11489 | ||
11490 | hpux9*) | |
11491 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
11492 | hardcode_libdir_separator_CXX=: | |
11493 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11494 | hardcode_direct_CXX=yes | |
11495 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
11496 | # but as the default | |
11497 | # location of the library. | |
11498 | ||
11499 | case $cc_basename in | |
11500 | CC*) | |
11501 | # FIXME: insert proper C++ library support | |
11502 | ld_shlibs_CXX=no | |
11503 | ;; | |
11504 | aCC*) | |
11505 | 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' | |
11506 | # Commands to make compiler produce verbose output that lists | |
11507 | # what "hidden" libraries, object files and flags are used when | |
11508 | # linking a shared library. | |
11509 | # | |
11510 | # There doesn't appear to be a way to prevent this compiler from | |
11511 | # explicitly linking system object files so we need to strip them | |
11512 | # from the output so that they don't get included in the library | |
11513 | # dependencies. | |
11514 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | |
11515 | ;; | |
11516 | *) | |
11517 | if test "$GXX" = yes; then | |
11518 | 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' | |
11519 | else | |
11520 | # FIXME: insert proper C++ library support | |
11521 | ld_shlibs_CXX=no | |
11522 | fi | |
11523 | ;; | |
11524 | esac | |
11525 | ;; | |
11526 | ||
11527 | hpux10*|hpux11*) | |
11528 | if test $with_gnu_ld = no; then | |
11529 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
11530 | hardcode_libdir_separator_CXX=: | |
11531 | ||
11532 | case $host_cpu in | |
11533 | hppa*64*|ia64*) | |
11534 | ;; | |
11535 | *) | |
11536 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11537 | ;; | |
11538 | esac | |
11539 | fi | |
11540 | case $host_cpu in | |
11541 | hppa*64*|ia64*) | |
11542 | hardcode_direct_CXX=no | |
11543 | hardcode_shlibpath_var_CXX=no | |
11544 | ;; | |
11545 | *) | |
11546 | hardcode_direct_CXX=yes | |
11547 | hardcode_direct_absolute_CXX=yes | |
11548 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
11549 | # but as the default | |
11550 | # location of the library. | |
11551 | ;; | |
11552 | esac | |
11553 | ||
11554 | case $cc_basename in | |
11555 | CC*) | |
11556 | # FIXME: insert proper C++ library support | |
11557 | ld_shlibs_CXX=no | |
11558 | ;; | |
11559 | aCC*) | |
11560 | case $host_cpu in | |
11561 | hppa*64*) | |
11562 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11563 | ;; | |
11564 | ia64*) | |
11565 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11566 | ;; | |
11567 | *) | |
11568 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11569 | ;; | |
11570 | esac | |
11571 | # Commands to make compiler produce verbose output that lists | |
11572 | # what "hidden" libraries, object files and flags are used when | |
11573 | # linking a shared library. | |
11574 | # | |
11575 | # There doesn't appear to be a way to prevent this compiler from | |
11576 | # explicitly linking system object files so we need to strip them | |
11577 | # from the output so that they don't get included in the library | |
11578 | # dependencies. | |
11579 | 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 "X$list" | $Xsed' | |
11580 | ;; | |
11581 | *) | |
11582 | if test "$GXX" = yes; then | |
11583 | if test $with_gnu_ld = no; then | |
11584 | case $host_cpu in | |
11585 | hppa*64*) | |
11586 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11587 | ;; | |
11588 | ia64*) | |
11589 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11590 | ;; | |
11591 | *) | |
11592 | 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' | |
11593 | ;; | |
11594 | esac | |
11595 | fi | |
11596 | else | |
11597 | # FIXME: insert proper C++ library support | |
11598 | ld_shlibs_CXX=no | |
11599 | fi | |
11600 | ;; | |
11601 | esac | |
11602 | ;; | |
11603 | ||
11604 | interix[3-9]*) | |
11605 | hardcode_direct_CXX=no | |
11606 | hardcode_shlibpath_var_CXX=no | |
11607 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11608 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11609 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
11610 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
11611 | # default) and relocated if they conflict, which is a slow very memory | |
11612 | # consuming and fragmenting process. To avoid this, we pick a random, | |
11613 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
11614 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
11615 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
11616 | archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
11617 | ;; | |
11618 | irix5* | irix6*) | |
11619 | case $cc_basename in | |
11620 | CC*) | |
11621 | # SGI C++ | |
11622 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
11623 | ||
11624 | # Archives containing C++ object files must be created using | |
11625 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
11626 | # necessary to make sure instantiated templates are included | |
11627 | # in the archive. | |
11628 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
11629 | ;; | |
11630 | *) | |
11631 | if test "$GXX" = yes; then | |
11632 | if test "$with_gnu_ld" = no; then | |
11633 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
11634 | else | |
11635 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' | |
11636 | fi | |
11637 | fi | |
11638 | link_all_deplibs_CXX=yes | |
11639 | ;; | |
11640 | esac | |
11641 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11642 | hardcode_libdir_separator_CXX=: | |
11643 | inherit_rpath_CXX=yes | |
11644 | ;; | |
11645 | ||
11646 | linux* | k*bsd*-gnu) | |
11647 | case $cc_basename in | |
11648 | KCC*) | |
11649 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
11650 | ||
11651 | # KCC will only create a shared library if the output file | |
11652 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
11653 | # to its proper name (with version) after linking. | |
11654 | 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' | |
11655 | 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' | |
11656 | # Commands to make compiler produce verbose output that lists | |
11657 | # what "hidden" libraries, object files and flags are used when | |
11658 | # linking a shared library. | |
11659 | # | |
11660 | # There doesn't appear to be a way to prevent this compiler from | |
11661 | # explicitly linking system object files so we need to strip them | |
11662 | # from the output so that they don't get included in the library | |
11663 | # dependencies. | |
11664 | 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 "X$list" | $Xsed' | |
11665 | ||
11666 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11667 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
11668 | ||
11669 | # Archives containing C++ object files must be created using | |
11670 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
11671 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
11672 | ;; | |
11673 | icpc* | ecpc* ) | |
11674 | # Intel C++ | |
11675 | with_gnu_ld=yes | |
11676 | # version 8.0 and above of icpc choke on multiply defined symbols | |
11677 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
11678 | # earlier do not add the objects themselves. | |
11679 | case `$CC -V 2>&1` in | |
11680 | *"Version 7."*) | |
11681 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11682 | 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' | |
11683 | ;; | |
11684 | *) # Version 8.0 or newer | |
11685 | tmp_idyn= | |
11686 | case $host_cpu in | |
11687 | ia64*) tmp_idyn=' -i_dynamic';; | |
11688 | esac | |
11689 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11690 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
11691 | ;; | |
11692 | esac | |
11693 | archive_cmds_need_lc_CXX=no | |
11694 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11695 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
11696 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
11697 | ;; | |
11698 | pgCC*) | |
11699 | # Portland Group C++ compiler | |
11700 | case `$CC -V` in | |
11701 | *pgCC\ [1-5]*) | |
11702 | prelink_cmds_CXX='tpldir=Template.dir~ | |
11703 | rm -rf $tpldir~ | |
11704 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
11705 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' | |
11706 | old_archive_cmds_CXX='tpldir=Template.dir~ | |
11707 | rm -rf $tpldir~ | |
11708 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
11709 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ | |
11710 | $RANLIB $oldlib' | |
11711 | archive_cmds_CXX='tpldir=Template.dir~ | |
11712 | rm -rf $tpldir~ | |
11713 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
11714 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
11715 | archive_expsym_cmds_CXX='tpldir=Template.dir~ | |
11716 | rm -rf $tpldir~ | |
11717 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
11718 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
11719 | ;; | |
11720 | *) # Version 6 will use weak symbols | |
11721 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
11722 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
11723 | ;; | |
11724 | esac | |
11725 | ||
11726 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
11727 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
11728 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
11729 | ;; | |
11730 | cxx*) | |
11731 | # Compaq C++ | |
11732 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11733 | 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' | |
11734 | ||
11735 | runpath_var=LD_RUN_PATH | |
11736 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
11737 | hardcode_libdir_separator_CXX=: | |
11738 | ||
11739 | # Commands to make compiler produce verbose output that lists | |
11740 | # what "hidden" libraries, object files and flags are used when | |
11741 | # linking a shared library. | |
11742 | # | |
11743 | # There doesn't appear to be a way to prevent this compiler from | |
11744 | # explicitly linking system object files so we need to strip them | |
11745 | # from the output so that they don't get included in the library | |
11746 | # dependencies. | |
11747 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed' | |
11748 | ;; | |
11749 | *) | |
11750 | case `$CC -V 2>&1 | sed 5q` in | |
11751 | *Sun\ C*) | |
11752 | # Sun C++ 5.9 | |
11753 | no_undefined_flag_CXX=' -zdefs' | |
11754 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11755 | archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' | |
11756 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
11757 | whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
11758 | compiler_needs_object_CXX=yes | |
11759 | ||
11760 | # Not sure whether something based on | |
11761 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
11762 | # would be better. | |
11763 | output_verbose_link_cmd='echo' | |
11764 | ||
11765 | # Archives containing C++ object files must be created using | |
11766 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
11767 | # necessary to make sure instantiated templates are included | |
11768 | # in the archive. | |
11769 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
11770 | ;; | |
11771 | esac | |
11772 | ;; | |
11773 | esac | |
11774 | ;; | |
11775 | ||
11776 | lynxos*) | |
11777 | # FIXME: insert proper C++ library support | |
11778 | ld_shlibs_CXX=no | |
11779 | ;; | |
11780 | ||
11781 | m88k*) | |
11782 | # FIXME: insert proper C++ library support | |
11783 | ld_shlibs_CXX=no | |
11784 | ;; | |
11785 | ||
11786 | mvs*) | |
11787 | case $cc_basename in | |
11788 | cxx*) | |
11789 | # FIXME: insert proper C++ library support | |
11790 | ld_shlibs_CXX=no | |
11791 | ;; | |
11792 | *) | |
11793 | # FIXME: insert proper C++ library support | |
11794 | ld_shlibs_CXX=no | |
11795 | ;; | |
11796 | esac | |
11797 | ;; | |
11798 | ||
11799 | netbsd*) | |
11800 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11801 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
11802 | wlarc= | |
11803 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
11804 | hardcode_direct_CXX=yes | |
11805 | hardcode_shlibpath_var_CXX=no | |
11806 | fi | |
11807 | # Workaround some broken pre-1.5 toolchains | |
11808 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
11809 | ;; | |
11810 | ||
11811 | *nto* | *qnx*) | |
11812 | ld_shlibs_CXX=yes | |
11813 | ;; | |
11814 | ||
11815 | openbsd2*) | |
11816 | # C++ shared libraries are fairly broken | |
11817 | ld_shlibs_CXX=no | |
11818 | ;; | |
11819 | ||
11820 | openbsd*) | |
11821 | hardcode_direct_CXX=yes | |
11822 | hardcode_shlibpath_var_CXX=no | |
11823 | hardcode_direct_absolute_CXX=yes | |
11824 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
11825 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11826 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11827 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
11828 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11829 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
11830 | fi | |
11831 | output_verbose_link_cmd=echo | |
11832 | ;; | |
11833 | ||
11834 | osf3* | osf4* | osf5*) | |
11835 | case $cc_basename in | |
11836 | KCC*) | |
11837 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
11838 | ||
11839 | # KCC will only create a shared library if the output file | |
11840 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
11841 | # to its proper name (with version) after linking. | |
11842 | 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' | |
11843 | ||
11844 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11845 | hardcode_libdir_separator_CXX=: | |
11846 | ||
11847 | # Archives containing C++ object files must be created using | |
11848 | # the KAI C++ compiler. | |
11849 | case $host in | |
11850 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
11851 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
11852 | esac | |
11853 | ;; | |
11854 | RCC*) | |
11855 | # Rational C++ 2.4.1 | |
11856 | # FIXME: insert proper C++ library support | |
11857 | ld_shlibs_CXX=no | |
11858 | ;; | |
11859 | cxx*) | |
11860 | case $host in | |
11861 | osf3*) | |
11862 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
11863 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
11864 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11865 | ;; | |
11866 | *) | |
11867 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
11868 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
11869 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
11870 | echo "-hidden">> $lib.exp~ | |
11871 | $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ | |
11872 | $RM $lib.exp' | |
11873 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
11874 | ;; | |
11875 | esac | |
11876 | ||
11877 | hardcode_libdir_separator_CXX=: | |
11878 | ||
11879 | # Commands to make compiler produce verbose output that lists | |
11880 | # what "hidden" libraries, object files and flags are used when | |
11881 | # linking a shared library. | |
11882 | # | |
11883 | # There doesn't appear to be a way to prevent this compiler from | |
11884 | # explicitly linking system object files so we need to strip them | |
11885 | # from the output so that they don't get included in the library | |
11886 | # dependencies. | |
11887 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed' | |
11888 | ;; | |
11889 | *) | |
11890 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
11891 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
11892 | case $host in | |
11893 | osf3*) | |
11894 | 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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
11895 | ;; | |
11896 | *) | |
11897 | 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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
11898 | ;; | |
11899 | esac | |
11900 | ||
11901 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11902 | hardcode_libdir_separator_CXX=: | |
11903 | ||
11904 | # Commands to make compiler produce verbose output that lists | |
11905 | # what "hidden" libraries, object files and flags are used when | |
11906 | # linking a shared library. | |
11907 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
11908 | ||
11909 | else | |
11910 | # FIXME: insert proper C++ library support | |
11911 | ld_shlibs_CXX=no | |
11912 | fi | |
11913 | ;; | |
11914 | esac | |
11915 | ;; | |
11916 | ||
11917 | psos*) | |
11918 | # FIXME: insert proper C++ library support | |
11919 | ld_shlibs_CXX=no | |
11920 | ;; | |
11921 | ||
11922 | sunos4*) | |
11923 | case $cc_basename in | |
11924 | CC*) | |
11925 | # Sun C++ 4.x | |
11926 | # FIXME: insert proper C++ library support | |
11927 | ld_shlibs_CXX=no | |
11928 | ;; | |
11929 | lcc*) | |
11930 | # Lucid | |
11931 | # FIXME: insert proper C++ library support | |
11932 | ld_shlibs_CXX=no | |
11933 | ;; | |
11934 | *) | |
11935 | # FIXME: insert proper C++ library support | |
11936 | ld_shlibs_CXX=no | |
11937 | ;; | |
11938 | esac | |
11939 | ;; | |
11940 | ||
11941 | solaris*) | |
11942 | case $cc_basename in | |
11943 | CC*) | |
11944 | # Sun C++ 4.2, 5.x and Centerline C++ | |
11945 | archive_cmds_need_lc_CXX=yes | |
11946 | no_undefined_flag_CXX=' -zdefs' | |
11947 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11948 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11949 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
11950 | ||
11951 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
11952 | hardcode_shlibpath_var_CXX=no | |
11953 | case $host_os in | |
11954 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
11955 | *) | |
11956 | # The compiler driver will combine and reorder linker options, | |
11957 | # but understands `-z linker_flag'. | |
11958 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
11959 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
11960 | ;; | |
11961 | esac | |
11962 | link_all_deplibs_CXX=yes | |
11963 | ||
11964 | output_verbose_link_cmd='echo' | |
11965 | ||
11966 | # Archives containing C++ object files must be created using | |
11967 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
11968 | # necessary to make sure instantiated templates are included | |
11969 | # in the archive. | |
11970 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
11971 | ;; | |
11972 | gcx*) | |
11973 | # Green Hills C++ Compiler | |
11974 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
11975 | ||
11976 | # The C++ compiler must be used to create the archive. | |
11977 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
11978 | ;; | |
11979 | *) | |
11980 | # GNU C++ compiler with Solaris linker | |
11981 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
11982 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
11983 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
11984 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
11985 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11986 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
11987 | ||
11988 | # Commands to make compiler produce verbose output that lists | |
11989 | # what "hidden" libraries, object files and flags are used when | |
11990 | # linking a shared library. | |
11991 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
11992 | else | |
11993 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
11994 | # platform. | |
11995 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
11996 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11997 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
11998 | ||
11999 | # Commands to make compiler produce verbose output that lists | |
12000 | # what "hidden" libraries, object files and flags are used when | |
12001 | # linking a shared library. | |
12002 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
12003 | fi | |
12004 | ||
12005 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
12006 | case $host_os in | |
12007 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
12008 | *) | |
12009 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
12010 | ;; | |
12011 | esac | |
12012 | fi | |
12013 | ;; | |
12014 | esac | |
12015 | ;; | |
12016 | ||
12017 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
12018 | no_undefined_flag_CXX='${wl}-z,text' | |
12019 | archive_cmds_need_lc_CXX=no | |
12020 | hardcode_shlibpath_var_CXX=no | |
12021 | runpath_var='LD_RUN_PATH' | |
12022 | ||
12023 | case $cc_basename in | |
12024 | CC*) | |
12025 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12026 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12027 | ;; | |
12028 | *) | |
12029 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12030 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12031 | ;; | |
12032 | esac | |
12033 | ;; | |
12034 | ||
12035 | sysv5* | sco3.2v5* | sco5v6*) | |
12036 | # Note: We can NOT use -z defs as we might desire, because we do not | |
12037 | # link with -lc, and that would cause any symbols used from libc to | |
12038 | # always be unresolved, which means just about no library would | |
12039 | # ever link correctly. If we're not using GNU ld we use -z text | |
12040 | # though, which does catch some bad symbols but isn't as heavy-handed | |
12041 | # as -z defs. | |
12042 | no_undefined_flag_CXX='${wl}-z,text' | |
12043 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
12044 | archive_cmds_need_lc_CXX=no | |
12045 | hardcode_shlibpath_var_CXX=no | |
12046 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | |
12047 | hardcode_libdir_separator_CXX=':' | |
12048 | link_all_deplibs_CXX=yes | |
12049 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
12050 | runpath_var='LD_RUN_PATH' | |
12051 | ||
12052 | case $cc_basename in | |
12053 | CC*) | |
12054 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12055 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12056 | ;; | |
12057 | *) | |
12058 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12059 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12060 | ;; | |
12061 | esac | |
12062 | ;; | |
12063 | ||
12064 | tandem*) | |
12065 | case $cc_basename in | |
12066 | NCC*) | |
12067 | # NonStop-UX NCC 3.20 | |
12068 | # FIXME: insert proper C++ library support | |
12069 | ld_shlibs_CXX=no | |
12070 | ;; | |
12071 | *) | |
12072 | # FIXME: insert proper C++ library support | |
12073 | ld_shlibs_CXX=no | |
12074 | ;; | |
12075 | esac | |
12076 | ;; | |
12077 | ||
12078 | vxworks*) | |
12079 | # FIXME: insert proper C++ library support | |
12080 | ld_shlibs_CXX=no | |
12081 | ;; | |
12082 | ||
12083 | *) | |
12084 | # FIXME: insert proper C++ library support | |
12085 | ld_shlibs_CXX=no | |
12086 | ;; | |
12087 | esac | |
12088 | ||
12089 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
12090 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | |
12091 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
12092 | ||
12093 | GCC_CXX="$GXX" | |
12094 | LD_CXX="$LD" | |
12095 | ||
12096 | ## CAVEAT EMPTOR: | |
12097 | ## There is no encapsulation within the following macros, do not change | |
12098 | ## the running order or otherwise move them around unless you know exactly | |
12099 | ## what you are doing... | |
12100 | # Dependencies to place before and after the object being linked: | |
12101 | predep_objects_CXX= | |
12102 | postdep_objects_CXX= | |
12103 | predeps_CXX= | |
12104 | postdeps_CXX= | |
12105 | compiler_lib_search_path_CXX= | |
12106 | ||
12107 | cat > conftest.$ac_ext <<_LT_EOF | |
12108 | class Foo | |
12109 | { | |
12110 | public: | |
12111 | Foo (void) { a = 0; } | |
12112 | private: | |
12113 | int a; | |
12114 | }; | |
12115 | _LT_EOF | |
12116 | ||
12117 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12118 | (eval $ac_compile) 2>&5 | |
12119 | ac_status=$? | |
12120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12121 | (exit $ac_status); }; then | |
12122 | # Parse the compiler output and extract the necessary | |
12123 | # objects, libraries and library flags. | |
12124 | ||
12125 | # Sentinel used to keep track of whether or not we are before | |
12126 | # the conftest object file. | |
12127 | pre_test_object_deps_done=no | |
12128 | ||
12129 | # The `*' in the case matches for architectures that use `case' in | |
12130 | # $output_verbose_cmd can trigger glob expansion during the loop | |
12131 | # eval without this substitution. | |
12132 | output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` | |
12133 | ||
12134 | for p in `eval $output_verbose_link_cmd`; do | |
12135 | case $p in | |
12136 | ||
12137 | -L* | -R* | -l*) | |
12138 | # Some compilers place space between "-{L,R}" and the path. | |
12139 | # Remove the space. | |
12140 | if test $p = "-L" || | |
12141 | test $p = "-R"; then | |
12142 | prev=$p | |
12143 | continue | |
12144 | else | |
12145 | prev= | |
12146 | fi | |
12147 | ||
12148 | if test "$pre_test_object_deps_done" = no; then | |
12149 | case $p in | |
12150 | -L* | -R*) | |
12151 | # Internal compiler library paths should come after those | |
12152 | # provided the user. The postdeps already come after the | |
12153 | # user supplied libs so there is no need to process them. | |
12154 | if test -z "$compiler_lib_search_path_CXX"; then | |
12155 | compiler_lib_search_path_CXX="${prev}${p}" | |
12156 | else | |
12157 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
12158 | fi | |
12159 | ;; | |
12160 | # The "-l" case would never come before the object being | |
12161 | # linked, so don't bother handling this case. | |
12162 | esac | |
12163 | else | |
12164 | if test -z "$postdeps_CXX"; then | |
12165 | postdeps_CXX="${prev}${p}" | |
12166 | else | |
12167 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
12168 | fi | |
12169 | fi | |
12170 | ;; | |
12171 | ||
12172 | *.$objext) | |
12173 | # This assumes that the test object file only shows up | |
12174 | # once in the compiler output. | |
12175 | if test "$p" = "conftest.$objext"; then | |
12176 | pre_test_object_deps_done=yes | |
12177 | continue | |
12178 | fi | |
12179 | ||
12180 | if test "$pre_test_object_deps_done" = no; then | |
12181 | if test -z "$predep_objects_CXX"; then | |
12182 | predep_objects_CXX="$p" | |
12183 | else | |
12184 | predep_objects_CXX="$predep_objects_CXX $p" | |
12185 | fi | |
12186 | else | |
12187 | if test -z "$postdep_objects_CXX"; then | |
12188 | postdep_objects_CXX="$p" | |
12189 | else | |
12190 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
12191 | fi | |
12192 | fi | |
12193 | ;; | |
12194 | ||
12195 | *) ;; # Ignore the rest. | |
12196 | ||
12197 | esac | |
12198 | done | |
12199 | ||
12200 | # Clean up. | |
12201 | rm -f a.out a.exe | |
12202 | else | |
12203 | echo "libtool.m4: error: problem compiling CXX test program" | |
12204 | fi | |
12205 | ||
12206 | $RM -f confest.$objext | |
12207 | ||
12208 | # PORTME: override above test on systems where it is broken | |
12209 | case $host_os in | |
12210 | interix[3-9]*) | |
12211 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
12212 | # hack all around it, let's just trust "g++" to DTRT. | |
12213 | predep_objects_CXX= | |
12214 | postdep_objects_CXX= | |
12215 | postdeps_CXX= | |
12216 | ;; | |
12217 | ||
12218 | linux*) | |
12219 | case `$CC -V 2>&1 | sed 5q` in | |
12220 | *Sun\ C*) | |
12221 | # Sun C++ 5.9 | |
12222 | ||
12223 | # The more standards-conforming stlport4 library is | |
12224 | # incompatible with the Cstd library. Avoid specifying | |
12225 | # it if it's in CXXFLAGS. Ignore libCrun as | |
12226 | # -library=stlport4 depends on it. | |
12227 | case " $CXX $CXXFLAGS " in | |
12228 | *" -library=stlport4 "*) | |
12229 | solaris_use_stlport4=yes | |
12230 | ;; | |
12231 | esac | |
12232 | ||
12233 | if test "$solaris_use_stlport4" != yes; then | |
12234 | postdeps_CXX='-library=Cstd -library=Crun' | |
12235 | fi | |
12236 | ;; | |
12237 | esac | |
12238 | ;; | |
12239 | ||
12240 | solaris*) | |
12241 | case $cc_basename in | |
12242 | CC*) | |
12243 | # The more standards-conforming stlport4 library is | |
12244 | # incompatible with the Cstd library. Avoid specifying | |
12245 | # it if it's in CXXFLAGS. Ignore libCrun as | |
12246 | # -library=stlport4 depends on it. | |
12247 | case " $CXX $CXXFLAGS " in | |
12248 | *" -library=stlport4 "*) | |
12249 | solaris_use_stlport4=yes | |
12250 | ;; | |
12251 | esac | |
12252 | ||
12253 | # Adding this requires a known-good setup of shared libraries for | |
12254 | # Sun compiler versions before 5.6, else PIC objects from an old | |
12255 | # archive will be linked into the output, leading to subtle bugs. | |
12256 | if test "$solaris_use_stlport4" != yes; then | |
12257 | postdeps_CXX='-library=Cstd -library=Crun' | |
12258 | fi | |
12259 | ;; | |
12260 | esac | |
12261 | ;; | |
12262 | esac | |
12263 | ||
12264 | ||
12265 | case " $postdeps_CXX " in | |
12266 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
12267 | esac | |
12268 | ||
12269 | ||
12270 | ||
12271 | ||
12272 | ||
12273 | ||
12274 | ||
12275 | ||
12276 | ||
12277 | ||
12278 | ||
12279 | ||
12280 | ||
12281 | ||
12282 | ||
12283 | ||
12284 | ||
12285 | ||
12286 | ||
12287 | ||
12288 | ||
12289 | ||
12290 | ||
12291 | ||
12292 | ||
12293 | ||
12294 | lt_prog_compiler_wl_CXX= | |
12295 | lt_prog_compiler_pic_CXX= | |
12296 | lt_prog_compiler_static_CXX= | |
12297 | ||
12298 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
12299 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
12300 | ||
12301 | # C++ specific cases for pic, static, wl, etc. | |
12302 | if test "$GXX" = yes; then | |
12303 | lt_prog_compiler_wl_CXX='-Wl,' | |
12304 | lt_prog_compiler_static_CXX='-static' | |
12305 | ||
12306 | case $host_os in | |
12307 | aix*) | |
12308 | # All AIX code is PIC. | |
12309 | if test "$host_cpu" = ia64; then | |
12310 | # AIX 5 now supports IA64 processor | |
12311 | lt_prog_compiler_static_CXX='-Bstatic' | |
12312 | fi | |
12313 | ;; | |
12314 | amigaos*) | |
12315 | if test "$host_cpu" = m68k; then | |
12316 | # FIXME: we need at least 68020 code to build shared libraries, but | |
12317 | # adding the `-m68020' flag to GCC prevents building anything better, | |
12318 | # like `-m68040'. | |
12319 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
12320 | fi | |
12321 | ;; | |
12322 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
12323 | # PIC is the default for these OSes. | |
12324 | ;; | |
12325 | mingw* | cygwin* | os2* | pw32*) | |
12326 | # This hack is so that the source file can tell whether it is being | |
12327 | # built for inclusion in a dll (and should export symbols for example). | |
12328 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
12329 | # (--disable-auto-import) libraries | |
12330 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
12331 | ;; | |
12332 | darwin* | rhapsody*) | |
12333 | # PIC is the default on this platform | |
12334 | # Common symbols not allowed in MH_DYLIB files | |
12335 | lt_prog_compiler_pic_CXX='-fno-common' | |
12336 | ;; | |
12337 | *djgpp*) | |
12338 | # DJGPP does not support shared libraries at all | |
12339 | lt_prog_compiler_pic_CXX= | |
12340 | ;; | |
12341 | interix[3-9]*) | |
12342 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
12343 | # Instead, we relocate shared libraries at runtime. | |
12344 | ;; | |
12345 | sysv4*MP*) | |
12346 | if test -d /usr/nec; then | |
12347 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
12348 | fi | |
12349 | ;; | |
12350 | hpux*) | |
12351 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
12352 | # not for PA HP-UX. | |
12353 | case $host_cpu in | |
12354 | hppa*64*|ia64*) | |
12355 | ;; | |
12356 | *) | |
12357 | lt_prog_compiler_pic_CXX='-fPIC' | |
12358 | ;; | |
12359 | esac | |
12360 | ;; | |
12361 | *qnx* | *nto*) | |
12362 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
12363 | # it will coredump. | |
12364 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
12365 | ;; | |
12366 | *) | |
12367 | lt_prog_compiler_pic_CXX='-fPIC' | |
12368 | ;; | |
12369 | esac | |
12370 | else | |
12371 | case $host_os in | |
12372 | aix4* | aix5*) | |
12373 | # All AIX code is PIC. | |
12374 | if test "$host_cpu" = ia64; then | |
12375 | # AIX 5 now supports IA64 processor | |
12376 | lt_prog_compiler_static_CXX='-Bstatic' | |
12377 | else | |
12378 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
12379 | fi | |
12380 | ;; | |
12381 | chorus*) | |
12382 | case $cc_basename in | |
12383 | cxch68*) | |
12384 | # Green Hills C++ Compiler | |
12385 | # _LT_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" | |
12386 | ;; | |
12387 | esac | |
12388 | ;; | |
12389 | darwin*) | |
12390 | # PIC is the default on this platform | |
12391 | # Common symbols not allowed in MH_DYLIB files | |
12392 | case $cc_basename in | |
12393 | xlc*) | |
12394 | lt_prog_compiler_pic_CXX='-qnocommon' | |
12395 | lt_prog_compiler_wl_CXX='-Wl,' | |
12396 | ;; | |
12397 | esac | |
12398 | ;; | |
12399 | dgux*) | |
12400 | case $cc_basename in | |
12401 | ec++*) | |
12402 | lt_prog_compiler_pic_CXX='-KPIC' | |
12403 | ;; | |
12404 | ghcx*) | |
12405 | # Green Hills C++ Compiler | |
12406 | lt_prog_compiler_pic_CXX='-pic' | |
12407 | ;; | |
12408 | *) | |
12409 | ;; | |
12410 | esac | |
12411 | ;; | |
12412 | freebsd* | dragonfly*) | |
12413 | # FreeBSD uses GNU C++ | |
12414 | ;; | |
12415 | hpux9* | hpux10* | hpux11*) | |
12416 | case $cc_basename in | |
12417 | CC*) | |
12418 | lt_prog_compiler_wl_CXX='-Wl,' | |
12419 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
12420 | if test "$host_cpu" != ia64; then | |
12421 | lt_prog_compiler_pic_CXX='+Z' | |
12422 | fi | |
12423 | ;; | |
12424 | aCC*) | |
12425 | lt_prog_compiler_wl_CXX='-Wl,' | |
12426 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
12427 | case $host_cpu in | |
12428 | hppa*64*|ia64*) | |
12429 | # +Z the default | |
12430 | ;; | |
12431 | *) | |
12432 | lt_prog_compiler_pic_CXX='+Z' | |
12433 | ;; | |
12434 | esac | |
12435 | ;; | |
12436 | *) | |
12437 | ;; | |
12438 | esac | |
12439 | ;; | |
12440 | interix*) | |
12441 | # This is c89, which is MS Visual C++ (no shared libs) | |
12442 | # Anyone wants to do a port? | |
12443 | ;; | |
12444 | irix5* | irix6* | nonstopux*) | |
12445 | case $cc_basename in | |
12446 | CC*) | |
12447 | lt_prog_compiler_wl_CXX='-Wl,' | |
12448 | lt_prog_compiler_static_CXX='-non_shared' | |
12449 | # CC pic flag -KPIC is the default. | |
12450 | ;; | |
12451 | *) | |
12452 | ;; | |
12453 | esac | |
12454 | ;; | |
12455 | linux* | k*bsd*-gnu) | |
12456 | case $cc_basename in | |
12457 | KCC*) | |
12458 | # KAI C++ Compiler | |
12459 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
12460 | lt_prog_compiler_pic_CXX='-fPIC' | |
12461 | ;; | |
12462 | icpc* | ecpc* ) | |
12463 | # Intel C++ | |
12464 | lt_prog_compiler_wl_CXX='-Wl,' | |
12465 | lt_prog_compiler_pic_CXX='-KPIC' | |
12466 | lt_prog_compiler_static_CXX='-static' | |
12467 | ;; | |
12468 | pgCC*) | |
12469 | # Portland Group C++ compiler | |
12470 | lt_prog_compiler_wl_CXX='-Wl,' | |
12471 | lt_prog_compiler_pic_CXX='-fpic' | |
12472 | lt_prog_compiler_static_CXX='-Bstatic' | |
12473 | ;; | |
12474 | cxx*) | |
12475 | # Compaq C++ | |
12476 | # Make sure the PIC flag is empty. It appears that all Alpha | |
12477 | # Linux and Compaq Tru64 Unix objects are PIC. | |
12478 | lt_prog_compiler_pic_CXX= | |
12479 | lt_prog_compiler_static_CXX='-non_shared' | |
12480 | ;; | |
12481 | *) | |
12482 | case `$CC -V 2>&1 | sed 5q` in | |
12483 | *Sun\ C*) | |
12484 | # Sun C++ 5.9 | |
12485 | lt_prog_compiler_pic_CXX='-KPIC' | |
12486 | lt_prog_compiler_static_CXX='-Bstatic' | |
12487 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
12488 | ;; | |
12489 | esac | |
12490 | ;; | |
12491 | esac | |
12492 | ;; | |
12493 | lynxos*) | |
12494 | ;; | |
12495 | m88k*) | |
12496 | ;; | |
12497 | mvs*) | |
12498 | case $cc_basename in | |
12499 | cxx*) | |
12500 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
12501 | ;; | |
12502 | *) | |
12503 | ;; | |
12504 | esac | |
12505 | ;; | |
12506 | netbsd*) | |
12507 | ;; | |
12508 | *qnx* | *nto*) | |
12509 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
12510 | # it will coredump. | |
12511 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
12512 | ;; | |
12513 | osf3* | osf4* | osf5*) | |
12514 | case $cc_basename in | |
12515 | KCC*) | |
12516 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
12517 | ;; | |
12518 | RCC*) | |
12519 | # Rational C++ 2.4.1 | |
12520 | lt_prog_compiler_pic_CXX='-pic' | |
12521 | ;; | |
12522 | cxx*) | |
12523 | # Digital/Compaq C++ | |
12524 | lt_prog_compiler_wl_CXX='-Wl,' | |
12525 | # Make sure the PIC flag is empty. It appears that all Alpha | |
12526 | # Linux and Compaq Tru64 Unix objects are PIC. | |
12527 | lt_prog_compiler_pic_CXX= | |
12528 | lt_prog_compiler_static_CXX='-non_shared' | |
12529 | ;; | |
12530 | *) | |
12531 | ;; | |
12532 | esac | |
12533 | ;; | |
12534 | psos*) | |
12535 | ;; | |
12536 | solaris*) | |
12537 | case $cc_basename in | |
12538 | CC*) | |
12539 | # Sun C++ 4.2, 5.x and Centerline C++ | |
12540 | lt_prog_compiler_pic_CXX='-KPIC' | |
12541 | lt_prog_compiler_static_CXX='-Bstatic' | |
12542 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
12543 | ;; | |
12544 | gcx*) | |
12545 | # Green Hills C++ Compiler | |
12546 | lt_prog_compiler_pic_CXX='-PIC' | |
12547 | ;; | |
12548 | *) | |
12549 | ;; | |
12550 | esac | |
12551 | ;; | |
12552 | sunos4*) | |
12553 | case $cc_basename in | |
12554 | CC*) | |
12555 | # Sun C++ 4.x | |
12556 | lt_prog_compiler_pic_CXX='-pic' | |
12557 | lt_prog_compiler_static_CXX='-Bstatic' | |
12558 | ;; | |
12559 | lcc*) | |
12560 | # Lucid | |
12561 | lt_prog_compiler_pic_CXX='-pic' | |
12562 | ;; | |
12563 | *) | |
12564 | ;; | |
12565 | esac | |
12566 | ;; | |
12567 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
12568 | case $cc_basename in | |
12569 | CC*) | |
12570 | lt_prog_compiler_wl_CXX='-Wl,' | |
12571 | lt_prog_compiler_pic_CXX='-KPIC' | |
12572 | lt_prog_compiler_static_CXX='-Bstatic' | |
12573 | ;; | |
12574 | esac | |
12575 | ;; | |
12576 | tandem*) | |
12577 | case $cc_basename in | |
12578 | NCC*) | |
12579 | # NonStop-UX NCC 3.20 | |
12580 | lt_prog_compiler_pic_CXX='-KPIC' | |
12581 | ;; | |
12582 | *) | |
12583 | ;; | |
12584 | esac | |
12585 | ;; | |
12586 | vxworks*) | |
12587 | ;; | |
12588 | *) | |
12589 | lt_prog_compiler_can_build_shared_CXX=no | |
12590 | ;; | |
12591 | esac | |
12592 | fi | |
12593 | ||
12594 | case $host_os in | |
12595 | # For platforms which do not support PIC, -DPIC is meaningless: | |
12596 | *djgpp*) | |
12597 | lt_prog_compiler_pic_CXX= | |
12598 | ;; | |
12599 | *) | |
12600 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
12601 | ;; | |
12602 | esac | |
12603 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 | |
12604 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 | |
12605 | ||
12606 | ||
12607 | ||
12608 | # | |
12609 | # Check to make sure the PIC flag actually works. | |
12610 | # | |
12611 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
12612 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
12613 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 | |
12614 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then | |
12615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12616 | else | |
12617 | lt_prog_compiler_pic_works_CXX=no | |
12618 | ac_outfile=conftest.$ac_objext | |
12619 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12620 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
12621 | # Insert the option either (1) after the last *FLAGS variable, or | |
12622 | # (2) before a word containing "conftest.", or (3) at the end. | |
12623 | # Note that $ac_compile itself does not contain backslashes and begins | |
12624 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12625 | # The option is referenced via a variable to avoid confusing sed. | |
12626 | lt_compile=`echo "$ac_compile" | $SED \ | |
12627 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12628 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12629 | -e 's:$: $lt_compiler_flag:'` | |
82a6cadf | 12630 | (eval echo "\"\$as_me:12630: $lt_compile\"" >&5) |
1cf3d07d SE |
12631 | (eval "$lt_compile" 2>conftest.err) |
12632 | ac_status=$? | |
12633 | cat conftest.err >&5 | |
82a6cadf | 12634 | echo "$as_me:12634: \$? = $ac_status" >&5 |
1cf3d07d SE |
12635 | if (exit $ac_status) && test -s "$ac_outfile"; then |
12636 | # The compiler can only warn and ignore the option if not recognized | |
12637 | # So say no if there are warnings other than the usual output. | |
12638 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
12639 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
12640 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
12641 | lt_prog_compiler_pic_works_CXX=yes | |
12642 | fi | |
12643 | fi | |
12644 | $RM conftest* | |
12645 | ||
12646 | fi | |
12647 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 | |
12648 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 | |
12649 | ||
12650 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then | |
12651 | case $lt_prog_compiler_pic_CXX in | |
12652 | "" | " "*) ;; | |
12653 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
12654 | esac | |
12655 | else | |
12656 | lt_prog_compiler_pic_CXX= | |
12657 | lt_prog_compiler_can_build_shared_CXX=no | |
12658 | fi | |
12659 | ||
12660 | fi | |
12661 | ||
12662 | ||
12663 | ||
12664 | # | |
12665 | # Check to make sure the static flag actually works. | |
12666 | # | |
12667 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
12668 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
12669 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | |
12670 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then | |
12671 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12672 | else | |
12673 | lt_prog_compiler_static_works_CXX=no | |
12674 | save_LDFLAGS="$LDFLAGS" | |
12675 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
12676 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
12677 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
12678 | # The linker can only warn and ignore the option if not recognized | |
12679 | # So say no if there are warnings | |
12680 | if test -s conftest.err; then | |
12681 | # Append any errors to the config.log. | |
12682 | cat conftest.err 1>&5 | |
12683 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
12684 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
12685 | if diff conftest.exp conftest.er2 >/dev/null; then | |
12686 | lt_prog_compiler_static_works_CXX=yes | |
12687 | fi | |
12688 | else | |
12689 | lt_prog_compiler_static_works_CXX=yes | |
12690 | fi | |
12691 | fi | |
12692 | $RM conftest* | |
12693 | LDFLAGS="$save_LDFLAGS" | |
12694 | ||
12695 | fi | |
12696 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 | |
12697 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 | |
12698 | ||
12699 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then | |
12700 | : | |
12701 | else | |
12702 | lt_prog_compiler_static_CXX= | |
12703 | fi | |
12704 | ||
12705 | ||
12706 | ||
12707 | ||
12708 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
12709 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
12710 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | |
12711 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12712 | else | |
12713 | lt_cv_prog_compiler_c_o_CXX=no | |
12714 | $RM -r conftest 2>/dev/null | |
12715 | mkdir conftest | |
12716 | cd conftest | |
12717 | mkdir out | |
12718 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12719 | ||
12720 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
12721 | # Insert the option either (1) after the last *FLAGS variable, or | |
12722 | # (2) before a word containing "conftest.", or (3) at the end. | |
12723 | # Note that $ac_compile itself does not contain backslashes and begins | |
12724 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12725 | lt_compile=`echo "$ac_compile" | $SED \ | |
12726 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12727 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12728 | -e 's:$: $lt_compiler_flag:'` | |
82a6cadf | 12729 | (eval echo "\"\$as_me:12729: $lt_compile\"" >&5) |
1cf3d07d SE |
12730 | (eval "$lt_compile" 2>out/conftest.err) |
12731 | ac_status=$? | |
12732 | cat out/conftest.err >&5 | |
82a6cadf | 12733 | echo "$as_me:12733: \$? = $ac_status" >&5 |
1cf3d07d SE |
12734 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
12735 | then | |
12736 | # The compiler can only warn and ignore the option if not recognized | |
12737 | # So say no if there are warnings | |
12738 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
12739 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
12740 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
12741 | lt_cv_prog_compiler_c_o_CXX=yes | |
12742 | fi | |
12743 | fi | |
12744 | chmod u+w . 2>&5 | |
12745 | $RM conftest* | |
12746 | # SGI C++ compiler will create directory out/ii_files/ for | |
12747 | # template instantiation | |
12748 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
12749 | $RM out/* && rmdir out | |
12750 | cd .. | |
12751 | $RM -r conftest | |
12752 | $RM conftest* | |
12753 | ||
12754 | fi | |
12755 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
12756 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 | |
12757 | ||
12758 | ||
12759 | ||
12760 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
12761 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
12762 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | |
12763 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12764 | else | |
12765 | lt_cv_prog_compiler_c_o_CXX=no | |
12766 | $RM -r conftest 2>/dev/null | |
12767 | mkdir conftest | |
12768 | cd conftest | |
12769 | mkdir out | |
12770 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12771 | ||
12772 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
12773 | # Insert the option either (1) after the last *FLAGS variable, or | |
12774 | # (2) before a word containing "conftest.", or (3) at the end. | |
12775 | # Note that $ac_compile itself does not contain backslashes and begins | |
12776 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12777 | lt_compile=`echo "$ac_compile" | $SED \ | |
12778 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12779 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12780 | -e 's:$: $lt_compiler_flag:'` | |
82a6cadf | 12781 | (eval echo "\"\$as_me:12781: $lt_compile\"" >&5) |
1cf3d07d SE |
12782 | (eval "$lt_compile" 2>out/conftest.err) |
12783 | ac_status=$? | |
12784 | cat out/conftest.err >&5 | |
82a6cadf | 12785 | echo "$as_me:12785: \$? = $ac_status" >&5 |
1cf3d07d SE |
12786 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
12787 | then | |
12788 | # The compiler can only warn and ignore the option if not recognized | |
12789 | # So say no if there are warnings | |
12790 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
12791 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
12792 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
12793 | lt_cv_prog_compiler_c_o_CXX=yes | |
12794 | fi | |
12795 | fi | |
12796 | chmod u+w . 2>&5 | |
12797 | $RM conftest* | |
12798 | # SGI C++ compiler will create directory out/ii_files/ for | |
12799 | # template instantiation | |
12800 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
12801 | $RM out/* && rmdir out | |
12802 | cd .. | |
12803 | $RM -r conftest | |
12804 | $RM conftest* | |
12805 | ||
12806 | fi | |
12807 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
12808 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 | |
12809 | ||
12810 | ||
12811 | ||
12812 | ||
12813 | hard_links="nottested" | |
12814 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
12815 | # do not overwrite the value of need_locks provided by the user | |
12816 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
12817 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
12818 | hard_links=yes | |
12819 | $RM conftest* | |
12820 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
12821 | touch conftest.a | |
12822 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
12823 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
12824 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
12825 | echo "${ECHO_T}$hard_links" >&6 | |
12826 | if test "$hard_links" = no; then | |
12827 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
12828 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
12829 | need_locks=warn | |
12830 | fi | |
12831 | else | |
12832 | need_locks=no | |
12833 | fi | |
12834 | ||
12835 | ||
12836 | ||
12837 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
12838 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
12839 | ||
12840 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
12841 | case $host_os in | |
12842 | aix4* | aix5*) | |
12843 | # If we're using GNU nm, then we don't want the "-C" option. | |
12844 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
12845 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
12846 | 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' | |
12847 | else | |
12848 | 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' | |
12849 | fi | |
12850 | ;; | |
12851 | pw32*) | |
12852 | export_symbols_cmds_CXX="$ltdll_cmds" | |
12853 | ;; | |
12854 | cygwin* | mingw*) | |
12855 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | |
12856 | ;; | |
12857 | *) | |
12858 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
12859 | ;; | |
12860 | esac | |
12861 | ||
12862 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
12863 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | |
12864 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
12865 | ||
12866 | with_gnu_ld_CXX=$with_gnu_ld | |
12867 | ||
12868 | ||
12869 | ||
12870 | ||
12871 | ||
12872 | ||
12873 | # | |
12874 | # Do we need to explicitly link libc? | |
12875 | # | |
12876 | case "x$archive_cmds_need_lc_CXX" in | |
12877 | x|xyes) | |
12878 | # Assume -lc should be added | |
12879 | archive_cmds_need_lc_CXX=yes | |
12880 | ||
12881 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
12882 | case $archive_cmds_CXX in | |
12883 | *'~'*) | |
12884 | # FIXME: we may have to deal with multi-command sequences. | |
12885 | ;; | |
12886 | '$CC '*) | |
12887 | # Test whether the compiler implicitly links with -lc since on some | |
12888 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
12889 | # to ld, don't add -lc before -lgcc. | |
12890 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
12891 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
12892 | $RM conftest* | |
12893 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12894 | ||
12895 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12896 | (eval $ac_compile) 2>&5 | |
12897 | ac_status=$? | |
12898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12899 | (exit $ac_status); } 2>conftest.err; then | |
12900 | soname=conftest | |
12901 | lib=conftest | |
12902 | libobjs=conftest.$ac_objext | |
12903 | deplibs= | |
12904 | wl=$lt_prog_compiler_wl_CXX | |
12905 | pic_flag=$lt_prog_compiler_pic_CXX | |
12906 | compiler_flags=-v | |
12907 | linker_flags=-v | |
12908 | verstring= | |
12909 | output_objdir=. | |
12910 | libname=conftest | |
12911 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
12912 | allow_undefined_flag_CXX= | |
12913 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
12914 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
12915 | ac_status=$? | |
12916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12917 | (exit $ac_status); } | |
12918 | then | |
12919 | archive_cmds_need_lc_CXX=no | |
12920 | else | |
12921 | archive_cmds_need_lc_CXX=yes | |
12922 | fi | |
12923 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
12924 | else | |
12925 | cat conftest.err 1>&5 | |
12926 | fi | |
12927 | $RM conftest* | |
12928 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 | |
12929 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 | |
12930 | ;; | |
12931 | esac | |
12932 | fi | |
12933 | ;; | |
12934 | esac | |
12935 | ||
12936 | ||
12937 | ||
12938 | ||
12939 | ||
12940 | ||
12941 | ||
12942 | ||
12943 | ||
12944 | ||
12945 | ||
12946 | ||
12947 | ||
12948 | ||
12949 | ||
12950 | ||
12951 | ||
12952 | ||
12953 | ||
12954 | ||
12955 | ||
12956 | ||
12957 | ||
12958 | ||
12959 | ||
12960 | ||
12961 | ||
12962 | ||
12963 | ||
12964 | ||
12965 | ||
12966 | ||
12967 | ||
12968 | ||
12969 | ||
12970 | ||
12971 | ||
12972 | ||
12973 | ||
12974 | ||
12975 | ||
12976 | ||
12977 | ||
12978 | ||
12979 | ||
12980 | ||
12981 | ||
12982 | ||
12983 | ||
12984 | ||
12985 | ||
12986 | ||
12987 | ||
12988 | ||
12989 | ||
12990 | ||
12991 | ||
12992 | ||
12993 | ||
12994 | ||
12995 | ||
12996 | ||
12997 | ||
12998 | ||
12999 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
13000 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
13001 | withGCC=$GXX | |
13002 | library_names_spec= | |
13003 | libname_spec='lib$name' | |
13004 | soname_spec= | |
13005 | shrext_cmds=".so" | |
13006 | postinstall_cmds= | |
13007 | postuninstall_cmds= | |
13008 | finish_cmds= | |
13009 | finish_eval= | |
13010 | shlibpath_var= | |
13011 | shlibpath_overrides_runpath=unknown | |
13012 | version_type=none | |
13013 | dynamic_linker="$host_os ld.so" | |
13014 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
13015 | need_lib_prefix=unknown | |
13016 | hardcode_into_libs=no | |
13017 | ||
13018 | # when you set need_version to no, make sure it does not cause -set_version | |
13019 | # flags to be left without arguments | |
13020 | need_version=unknown | |
13021 | ||
13022 | case $host_os in | |
13023 | aix3*) | |
13024 | version_type=linux | |
13025 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
13026 | shlibpath_var=LIBPATH | |
13027 | ||
13028 | # AIX 3 has no versioning support, so we append a major version to the name. | |
13029 | soname_spec='${libname}${release}${shared_ext}$major' | |
13030 | ;; | |
13031 | ||
13032 | aix4* | aix5*) | |
13033 | version_type=linux | |
13034 | need_lib_prefix=no | |
13035 | need_version=no | |
13036 | hardcode_into_libs=yes | |
13037 | if test "$host_cpu" = ia64; then | |
13038 | # AIX 5 supports IA64 | |
13039 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
13040 | shlibpath_var=LD_LIBRARY_PATH | |
13041 | else | |
13042 | # With GCC up to 2.95.x, collect2 would create an import file | |
13043 | # for dependence libraries. The import file would start with | |
13044 | # the line `#! .'. This would cause the generated library to | |
13045 | # depend on `.', always an invalid library. This was fixed in | |
13046 | # development snapshots of GCC prior to 3.0. | |
13047 | case $host_os in | |
13048 | aix4 | aix4.[01] | aix4.[01].*) | |
13049 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
13050 | echo ' yes ' | |
13051 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
13052 | : | |
13053 | else | |
13054 | can_build_shared=no | |
13055 | fi | |
13056 | ;; | |
13057 | esac | |
13058 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
13059 | # soname into executable. Probably we can add versioning support to | |
13060 | # collect2, so additional links can be useful in future. | |
13061 | if test "$aix_use_runtimelinking" = yes; then | |
13062 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
13063 | # instead of lib<name>.a to let people know that these are not | |
13064 | # typical AIX shared libraries. | |
13065 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13066 | else | |
13067 | # We preserve .a as extension for shared libraries through AIX4.2 | |
13068 | # and later when we are not doing run time linking. | |
13069 | library_names_spec='${libname}${release}.a $libname.a' | |
13070 | soname_spec='${libname}${release}${shared_ext}$major' | |
13071 | fi | |
13072 | shlibpath_var=LIBPATH | |
13073 | fi | |
13074 | ;; | |
13075 | ||
13076 | amigaos*) | |
13077 | if test "$host_cpu" = m68k; then | |
13078 | library_names_spec='$libname.ixlibrary $libname.a' | |
13079 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
13080 | 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' | |
13081 | else | |
13082 | dynamic_linker=no | |
13083 | fi | |
13084 | ;; | |
13085 | ||
13086 | beos*) | |
13087 | library_names_spec='${libname}${shared_ext}' | |
13088 | dynamic_linker="$host_os ld.so" | |
13089 | shlibpath_var=LIBRARY_PATH | |
13090 | ;; | |
13091 | ||
13092 | bsdi[45]*) | |
13093 | version_type=linux | |
13094 | need_version=no | |
13095 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13096 | soname_spec='${libname}${release}${shared_ext}$major' | |
13097 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
13098 | shlibpath_var=LD_LIBRARY_PATH | |
13099 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
13100 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
13101 | # the default ld.so.conf also contains /usr/contrib/lib and | |
13102 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
13103 | # libtool to hard-code these into programs | |
13104 | ;; | |
13105 | ||
13106 | cygwin* | mingw* | pw32*) | |
13107 | version_type=windows | |
13108 | shrext_cmds=".dll" | |
13109 | need_version=no | |
13110 | need_lib_prefix=no | |
13111 | ||
13112 | case $withGCC,$host_os in | |
13113 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
13114 | library_names_spec='$libname.dll.a' | |
13115 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
13116 | postinstall_cmds='base_file=`basename \${file}`~ | |
13117 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
13118 | dldir=$destdir/`dirname \$dlpath`~ | |
13119 | test -d \$dldir || mkdir -p \$dldir~ | |
13120 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
13121 | chmod a+x \$dldir/$dlname~ | |
13122 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
13123 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
13124 | fi' | |
13125 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
13126 | dlpath=$dir/\$dldll~ | |
13127 | $RM \$dlpath' | |
13128 | shlibpath_overrides_runpath=yes | |
13129 | ||
13130 | case $host_os in | |
13131 | cygwin*) | |
13132 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
13133 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13134 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
13135 | ;; | |
13136 | mingw*) | |
13137 | # MinGW DLLs use traditional 'lib' prefix | |
13138 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13139 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
13140 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
13141 | # It is most probably a Windows format PATH printed by | |
13142 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
13143 | # path with ; separators, and with drive letters. We can handle the | |
13144 | # drive letters (cygwin fileutils understands them), so leave them, | |
13145 | # especially as we might pass files found there to a mingw objdump, | |
13146 | # which wouldn't understand a cygwinified path. Ahh. | |
13147 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
13148 | else | |
13149 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
13150 | fi | |
13151 | ;; | |
13152 | pw32*) | |
13153 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
13154 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13155 | ;; | |
13156 | esac | |
13157 | ;; | |
13158 | ||
13159 | *) | |
13160 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
13161 | ;; | |
13162 | esac | |
13163 | dynamic_linker='Win32 ld.exe' | |
13164 | # FIXME: first we should search . and the directory the executable is in | |
13165 | shlibpath_var=PATH | |
13166 | ;; | |
13167 | ||
13168 | darwin* | rhapsody*) | |
13169 | dynamic_linker="$host_os dyld" | |
13170 | version_type=darwin | |
13171 | need_lib_prefix=no | |
13172 | need_version=no | |
13173 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
13174 | soname_spec='${libname}${release}${major}$shared_ext' | |
13175 | shlibpath_overrides_runpath=yes | |
13176 | shlibpath_var=DYLD_LIBRARY_PATH | |
13177 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
13178 | ||
13179 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
13180 | ;; | |
13181 | ||
13182 | dgux*) | |
13183 | version_type=linux | |
13184 | need_lib_prefix=no | |
13185 | need_version=no | |
13186 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
13187 | soname_spec='${libname}${release}${shared_ext}$major' | |
13188 | shlibpath_var=LD_LIBRARY_PATH | |
13189 | ;; | |
13190 | ||
13191 | freebsd1*) | |
13192 | dynamic_linker=no | |
13193 | ;; | |
13194 | ||
13195 | freebsd* | dragonfly*) | |
13196 | # DragonFly does not have aout. When/if they implement a new | |
13197 | # versioning mechanism, adjust this. | |
13198 | if test -x /usr/bin/objformat; then | |
13199 | objformat=`/usr/bin/objformat` | |
13200 | else | |
13201 | case $host_os in | |
13202 | freebsd[123]*) objformat=aout ;; | |
13203 | *) objformat=elf ;; | |
13204 | esac | |
13205 | fi | |
13206 | version_type=freebsd-$objformat | |
13207 | case $version_type in | |
13208 | freebsd-elf*) | |
13209 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
13210 | need_version=no | |
13211 | need_lib_prefix=no | |
13212 | ;; | |
13213 | freebsd-*) | |
13214 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
13215 | need_version=yes | |
13216 | ;; | |
13217 | esac | |
13218 | shlibpath_var=LD_LIBRARY_PATH | |
13219 | case $host_os in | |
13220 | freebsd2*) | |
13221 | shlibpath_overrides_runpath=yes | |
13222 | ;; | |
13223 | freebsd3.[01]* | freebsdelf3.[01]*) | |
13224 | shlibpath_overrides_runpath=yes | |
13225 | hardcode_into_libs=yes | |
13226 | ;; | |
13227 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
13228 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
13229 | shlibpath_overrides_runpath=no | |
13230 | hardcode_into_libs=yes | |
13231 | ;; | |
13232 | *) # from 4.6 on, and DragonFly | |
13233 | shlibpath_overrides_runpath=yes | |
13234 | hardcode_into_libs=yes | |
13235 | ;; | |
13236 | esac | |
13237 | ;; | |
13238 | ||
13239 | gnu*) | |
13240 | version_type=linux | |
13241 | need_lib_prefix=no | |
13242 | need_version=no | |
13243 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
13244 | soname_spec='${libname}${release}${shared_ext}$major' | |
13245 | shlibpath_var=LD_LIBRARY_PATH | |
13246 | hardcode_into_libs=yes | |
13247 | ;; | |
13248 | ||
13249 | hpux9* | hpux10* | hpux11*) | |
13250 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
13251 | # link against other versions. | |
13252 | version_type=sunos | |
13253 | need_lib_prefix=no | |
13254 | need_version=no | |
13255 | case $host_cpu in | |
13256 | ia64*) | |
13257 | shrext_cmds='.so' | |
13258 | hardcode_into_libs=yes | |
13259 | dynamic_linker="$host_os dld.so" | |
13260 | shlibpath_var=LD_LIBRARY_PATH | |
13261 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
13262 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13263 | soname_spec='${libname}${release}${shared_ext}$major' | |
13264 | if test "X$HPUX_IA64_MODE" = X32; then | |
13265 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
13266 | else | |
13267 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
13268 | fi | |
13269 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
13270 | ;; | |
13271 | hppa*64*) | |
13272 | shrext_cmds='.sl' | |
13273 | hardcode_into_libs=yes | |
13274 | dynamic_linker="$host_os dld.sl" | |
13275 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
13276 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
13277 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13278 | soname_spec='${libname}${release}${shared_ext}$major' | |
13279 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
13280 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
13281 | ;; | |
13282 | *) | |
13283 | shrext_cmds='.sl' | |
13284 | dynamic_linker="$host_os dld.sl" | |
13285 | shlibpath_var=SHLIB_PATH | |
13286 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
13287 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13288 | soname_spec='${libname}${release}${shared_ext}$major' | |
13289 | ;; | |
13290 | esac | |
13291 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
13292 | postinstall_cmds='chmod 555 $lib' | |
13293 | ;; | |
13294 | ||
13295 | interix[3-9]*) | |
13296 | version_type=linux | |
13297 | need_lib_prefix=no | |
13298 | need_version=no | |
13299 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13300 | soname_spec='${libname}${release}${shared_ext}$major' | |
13301 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
13302 | shlibpath_var=LD_LIBRARY_PATH | |
13303 | shlibpath_overrides_runpath=no | |
13304 | hardcode_into_libs=yes | |
13305 | ;; | |
13306 | ||
13307 | irix5* | irix6* | nonstopux*) | |
13308 | case $host_os in | |
13309 | nonstopux*) version_type=nonstopux ;; | |
13310 | *) | |
13311 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
13312 | version_type=linux | |
13313 | else | |
13314 | version_type=irix | |
13315 | fi ;; | |
13316 | esac | |
13317 | need_lib_prefix=no | |
13318 | need_version=no | |
13319 | soname_spec='${libname}${release}${shared_ext}$major' | |
13320 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
13321 | case $host_os in | |
13322 | irix5* | nonstopux*) | |
13323 | libsuff= shlibsuff= | |
13324 | ;; | |
13325 | *) | |
13326 | case $LD in # libtool.m4 will add one of these switches to LD | |
13327 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
13328 | libsuff= shlibsuff= libmagic=32-bit;; | |
13329 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
13330 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
13331 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
13332 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
13333 | *) libsuff= shlibsuff= libmagic=never-match;; | |
13334 | esac | |
13335 | ;; | |
13336 | esac | |
13337 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
13338 | shlibpath_overrides_runpath=no | |
13339 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
13340 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
13341 | hardcode_into_libs=yes | |
13342 | ;; | |
13343 | ||
13344 | # No shared lib support for Linux oldld, aout, or coff. | |
13345 | linux*oldld* | linux*aout* | linux*coff*) | |
13346 | dynamic_linker=no | |
13347 | ;; | |
13348 | ||
13349 | # This must be Linux ELF. | |
13350 | linux* | k*bsd*-gnu) | |
13351 | version_type=linux | |
13352 | need_lib_prefix=no | |
13353 | need_version=no | |
13354 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13355 | soname_spec='${libname}${release}${shared_ext}$major' | |
13356 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
13357 | shlibpath_var=LD_LIBRARY_PATH | |
13358 | shlibpath_overrides_runpath=no | |
13359 | # Some binutils ld are patched to set DT_RUNPATH | |
13360 | save_LDFLAGS=$LDFLAGS | |
13361 | save_libdir=$libdir | |
13362 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
13363 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
13364 | if test x$gcc_no_link = xyes; then | |
13365 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13366 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13367 | { (exit 1); exit 1; }; } | |
ff66d28f | 13368 | fi |
1cf3d07d | 13369 | cat >conftest.$ac_ext <<_ACEOF |
ff66d28f PE |
13370 | /* confdefs.h. */ |
13371 | _ACEOF | |
13372 | cat confdefs.h >>conftest.$ac_ext | |
13373 | cat >>conftest.$ac_ext <<_ACEOF | |
13374 | /* end confdefs.h. */ | |
1cf3d07d SE |
13375 | |
13376 | int | |
13377 | main () | |
13378 | { | |
13379 | ||
13380 | ; | |
13381 | return 0; | |
13382 | } | |
ff66d28f | 13383 | _ACEOF |
1cf3d07d SE |
13384 | rm -f conftest.$ac_objext conftest$ac_exeext |
13385 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13386 | (eval $ac_link) 2>conftest.er1 | |
ff66d28f PE |
13387 | ac_status=$? |
13388 | grep -v '^ *+' conftest.er1 >conftest.err | |
13389 | rm -f conftest.er1 | |
13390 | cat conftest.err >&5 | |
13391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1cf3d07d SE |
13392 | (exit $ac_status); } && |
13393 | { ac_try='test -z "$ac_cxx_werror_flag" | |
13394 | || test ! -s conftest.err' | |
13395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13396 | (eval $ac_try) 2>&5 | |
13397 | ac_status=$? | |
13398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13399 | (exit $ac_status); }; } && | |
13400 | { ac_try='test -s conftest$ac_exeext' | |
13401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13402 | (eval $ac_try) 2>&5 | |
13403 | ac_status=$? | |
13404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13405 | (exit $ac_status); }; }; then | |
13406 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then | |
13407 | shlibpath_overrides_runpath=yes | |
ff66d28f | 13408 | fi |
1cf3d07d | 13409 | |
ff66d28f PE |
13410 | else |
13411 | echo "$as_me: failed program was:" >&5 | |
13412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13413 | ||
ff66d28f | 13414 | fi |
1cf3d07d SE |
13415 | rm -f conftest.err conftest.$ac_objext \ |
13416 | conftest$ac_exeext conftest.$ac_ext | |
13417 | LDFLAGS=$save_LDFLAGS | |
13418 | libdir=$save_libdir | |
13419 | ||
13420 | # This implies no fast_install, which is unacceptable. | |
13421 | # Some rework will be needed to allow for fast_install | |
13422 | # before this can be enabled. | |
13423 | hardcode_into_libs=yes | |
13424 | ||
13425 | # Append ld.so.conf contents to the search path | |
13426 | if test -f /etc/ld.so.conf; then | |
13427 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
13428 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
13429 | fi | |
13430 | ||
13431 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
13432 | # powerpc, because MkLinux only supported shared libraries with the | |
13433 | # GNU dynamic linker. Since this was broken with cross compilers, | |
13434 | # most powerpc-linux boxes support dynamic linking these days and | |
13435 | # people can always --disable-shared, the test was removed, and we | |
13436 | # assume the GNU/Linux dynamic linker is in use. | |
13437 | dynamic_linker='GNU/Linux ld.so' | |
13438 | ;; | |
ff66d28f | 13439 | |
1cf3d07d SE |
13440 | netbsd*) |
13441 | version_type=sunos | |
13442 | need_lib_prefix=no | |
13443 | need_version=no | |
13444 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13445 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13446 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
13447 | dynamic_linker='NetBSD (a.out) ld.so' | |
13448 | else | |
13449 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13450 | soname_spec='${libname}${release}${shared_ext}$major' | |
13451 | dynamic_linker='NetBSD ld.elf_so' | |
13452 | fi | |
13453 | shlibpath_var=LD_LIBRARY_PATH | |
13454 | shlibpath_overrides_runpath=yes | |
13455 | hardcode_into_libs=yes | |
13456 | ;; | |
ff66d28f | 13457 | |
1cf3d07d SE |
13458 | newsos6) |
13459 | version_type=linux | |
13460 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13461 | shlibpath_var=LD_LIBRARY_PATH | |
13462 | shlibpath_overrides_runpath=yes | |
13463 | ;; | |
ff66d28f | 13464 | |
1cf3d07d SE |
13465 | *nto* | *qnx*) |
13466 | version_type=qnx | |
13467 | need_lib_prefix=no | |
13468 | need_version=no | |
13469 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13470 | soname_spec='${libname}${release}${shared_ext}$major' | |
13471 | shlibpath_var=LD_LIBRARY_PATH | |
13472 | shlibpath_overrides_runpath=no | |
13473 | hardcode_into_libs=yes | |
13474 | dynamic_linker='ldqnx.so' | |
13475 | ;; | |
13476 | ||
13477 | openbsd*) | |
13478 | version_type=sunos | |
13479 | sys_lib_dlsearch_path_spec="/usr/lib" | |
13480 | need_lib_prefix=no | |
13481 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
13482 | case $host_os in | |
13483 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
13484 | *) need_version=no ;; | |
13485 | esac | |
13486 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13487 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
13488 | shlibpath_var=LD_LIBRARY_PATH | |
13489 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13490 | case $host_os in | |
13491 | openbsd2.[89] | openbsd2.[89].*) | |
13492 | shlibpath_overrides_runpath=no | |
13493 | ;; | |
13494 | *) | |
13495 | shlibpath_overrides_runpath=yes | |
13496 | ;; | |
13497 | esac | |
ff66d28f | 13498 | else |
1cf3d07d | 13499 | shlibpath_overrides_runpath=yes |
ff66d28f | 13500 | fi |
1cf3d07d | 13501 | ;; |
ff66d28f | 13502 | |
1cf3d07d SE |
13503 | os2*) |
13504 | libname_spec='$name' | |
13505 | shrext_cmds=".dll" | |
13506 | need_lib_prefix=no | |
13507 | library_names_spec='$libname${shared_ext} $libname.a' | |
13508 | dynamic_linker='OS/2 ld.exe' | |
13509 | shlibpath_var=LIBPATH | |
13510 | ;; | |
13511 | ||
13512 | osf3* | osf4* | osf5*) | |
13513 | version_type=osf | |
13514 | need_lib_prefix=no | |
13515 | need_version=no | |
13516 | soname_spec='${libname}${release}${shared_ext}$major' | |
13517 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13518 | shlibpath_var=LD_LIBRARY_PATH | |
13519 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
13520 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
13521 | ;; | |
13522 | ||
13523 | rdos*) | |
13524 | dynamic_linker=no | |
13525 | ;; | |
13526 | ||
13527 | solaris*) | |
13528 | version_type=linux | |
13529 | need_lib_prefix=no | |
13530 | need_version=no | |
13531 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13532 | soname_spec='${libname}${release}${shared_ext}$major' | |
13533 | shlibpath_var=LD_LIBRARY_PATH | |
13534 | shlibpath_overrides_runpath=yes | |
13535 | hardcode_into_libs=yes | |
13536 | # ldd complains unless libraries are executable | |
13537 | postinstall_cmds='chmod +x $lib' | |
13538 | ;; | |
13539 | ||
13540 | sunos4*) | |
13541 | version_type=sunos | |
13542 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13543 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
13544 | shlibpath_var=LD_LIBRARY_PATH | |
13545 | shlibpath_overrides_runpath=yes | |
13546 | if test "$with_gnu_ld" = yes; then | |
13547 | need_lib_prefix=no | |
13548 | fi | |
13549 | need_version=yes | |
13550 | ;; | |
13551 | ||
13552 | sysv4 | sysv4.3*) | |
13553 | version_type=linux | |
13554 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13555 | soname_spec='${libname}${release}${shared_ext}$major' | |
13556 | shlibpath_var=LD_LIBRARY_PATH | |
13557 | case $host_vendor in | |
13558 | sni) | |
13559 | shlibpath_overrides_runpath=no | |
13560 | need_lib_prefix=no | |
13561 | runpath_var=LD_RUN_PATH | |
13562 | ;; | |
13563 | siemens) | |
13564 | need_lib_prefix=no | |
13565 | ;; | |
13566 | motorola) | |
13567 | need_lib_prefix=no | |
13568 | need_version=no | |
13569 | shlibpath_overrides_runpath=no | |
13570 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
13571 | ;; | |
13572 | esac | |
13573 | ;; | |
13574 | ||
13575 | sysv4*MP*) | |
13576 | if test -d /usr/nec ;then | |
13577 | version_type=linux | |
13578 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
13579 | soname_spec='$libname${shared_ext}.$major' | |
13580 | shlibpath_var=LD_LIBRARY_PATH | |
13581 | fi | |
13582 | ;; | |
13583 | ||
13584 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
13585 | version_type=freebsd-elf | |
13586 | need_lib_prefix=no | |
13587 | need_version=no | |
13588 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
13589 | soname_spec='${libname}${release}${shared_ext}$major' | |
13590 | shlibpath_var=LD_LIBRARY_PATH | |
13591 | shlibpath_overrides_runpath=yes | |
13592 | hardcode_into_libs=yes | |
13593 | if test "$with_gnu_ld" = yes; then | |
13594 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
13595 | else | |
13596 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
13597 | case $host_os in | |
13598 | sco3.2v5*) | |
13599 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
13600 | ;; | |
13601 | esac | |
13602 | fi | |
13603 | sys_lib_dlsearch_path_spec='/usr/lib' | |
13604 | ;; | |
13605 | ||
13606 | tpf*) | |
13607 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
13608 | version_type=linux | |
13609 | need_lib_prefix=no | |
13610 | need_version=no | |
13611 | library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13612 | shlibpath_var=LD_LIBRARY_PATH | |
13613 | shlibpath_overrides_runpath=no | |
13614 | hardcode_into_libs=yes | |
13615 | ;; | |
13616 | ||
13617 | uts4*) | |
13618 | version_type=linux | |
13619 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13620 | soname_spec='${libname}${release}${shared_ext}$major' | |
13621 | shlibpath_var=LD_LIBRARY_PATH | |
13622 | ;; | |
13623 | ||
13624 | *) | |
13625 | dynamic_linker=no | |
13626 | ;; | |
13627 | esac | |
13628 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
13629 | echo "${ECHO_T}$dynamic_linker" >&6 | |
13630 | test "$dynamic_linker" = no && can_build_shared=no | |
13631 | ||
13632 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
13633 | if test "$GCC" = yes; then | |
13634 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
ff66d28f | 13635 | fi |
ff66d28f | 13636 | |
1cf3d07d SE |
13637 | |
13638 | ||
13639 | ||
13640 | ||
13641 | ||
13642 | ||
13643 | ||
13644 | ||
13645 | ||
13646 | ||
13647 | ||
13648 | ||
13649 | ||
13650 | ||
13651 | ||
13652 | ||
13653 | ||
13654 | ||
13655 | ||
13656 | ||
13657 | ||
13658 | ||
13659 | ||
13660 | ||
13661 | ||
13662 | ||
13663 | ||
13664 | ||
13665 | ||
13666 | ||
13667 | ||
13668 | ||
13669 | ||
13670 | ||
13671 | ||
13672 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
13673 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
13674 | hardcode_action_CXX= | |
13675 | if test -n "$hardcode_libdir_flag_spec_CXX" || | |
13676 | test -n "$runpath_var_CXX" || | |
13677 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
13678 | ||
13679 | # We can hardcode non-existent directories. | |
13680 | if test "$hardcode_direct_CXX" != no && | |
13681 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
13682 | # have to relink, otherwise we might link with an installed library | |
13683 | # when we should be linking with a yet-to-be-installed one | |
13684 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
13685 | test "$hardcode_minus_L_CXX" != no; then | |
13686 | # Linking always hardcodes the temporary library directory. | |
13687 | hardcode_action_CXX=relink | |
ff66d28f | 13688 | else |
1cf3d07d SE |
13689 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
13690 | hardcode_action_CXX=immediate | |
ff66d28f PE |
13691 | fi |
13692 | else | |
1cf3d07d SE |
13693 | # We cannot hardcode anything, or else we can only hardcode existing |
13694 | # directories. | |
13695 | hardcode_action_CXX=unsupported | |
ff66d28f | 13696 | fi |
1cf3d07d SE |
13697 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
13698 | echo "${ECHO_T}$hardcode_action_CXX" >&6 | |
ff66d28f | 13699 | |
1cf3d07d SE |
13700 | if test "$hardcode_action_CXX" = relink || |
13701 | test "$inherit_rpath_CXX" = yes; then | |
13702 | # Fast installation is not supported | |
13703 | enable_fast_install=no | |
13704 | elif test "$shlibpath_overrides_runpath" = yes || | |
13705 | test "$enable_shared" = no; then | |
13706 | # Fast installation is not necessary | |
13707 | enable_fast_install=needless | |
ff66d28f | 13708 | fi |
ff66d28f | 13709 | |
1cf3d07d SE |
13710 | |
13711 | ||
13712 | ||
13713 | ||
13714 | ||
13715 | ||
13716 | fi # test -n "$compiler" | |
13717 | ||
13718 | CC=$lt_save_CC | |
13719 | LDCXX=$LD | |
13720 | LD=$lt_save_LD | |
13721 | GCC=$lt_save_GCC | |
13722 | with_gnu_ld=$lt_save_with_gnu_ld | |
13723 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
13724 | lt_cv_path_LD=$lt_save_path_LD | |
13725 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
13726 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
13727 | fi # test "$_lt_caught_CXX_error" != yes | |
ff66d28f PE |
13728 | |
13729 | ac_ext=c | |
13730 | ac_cpp='$CPP $CPPFLAGS' | |
13731 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13732 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13733 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13734 | ||
3df64633 AO |
13735 | |
13736 | ||
3df64633 | 13737 | |
3df64633 | 13738 | |
3df64633 | 13739 | |
34791641 PE |
13740 | |
13741 | ||
33590f13 | 13742 | |
ff66d28f PE |
13743 | |
13744 | ||
13745 | ||
ff66d28f | 13746 | |
1cf3d07d SE |
13747 | ac_config_commands="$ac_config_commands libtool" |
13748 | ||
13749 | ||
13750 | ||
13751 | ||
13752 | # Only expand once: | |
13753 | ||
13754 | ||
13755 | ||
13756 | ||
13757 | ||
5f34ed87 BK |
13758 | # Possibly disable most of the library. |
13759 | ## TODO: Consider skipping unncessary tests altogether in this case, rather | |
13760 | ## than just ignoring the results. Faster /and/ more correct, win win. | |
4ffe6e87 | 13761 | |
5f34ed87 BK |
13762 | # Check whether --enable-hosted-libstdcxx or --disable-hosted-libstdcxx was given. |
13763 | if test "${enable_hosted_libstdcxx+set}" = set; then | |
13764 | enableval="$enable_hosted_libstdcxx" | |
4ffe6e87 | 13765 | |
4ffe6e87 | 13766 | else |
5f34ed87 BK |
13767 | case "$host" in |
13768 | arm*-*-symbianelf*) | |
13769 | enable_hosted_libstdcxx=no | |
13770 | ;; | |
13771 | *) | |
13772 | enable_hosted_libstdcxx=yes | |
13773 | ;; | |
13774 | esac | |
4ffe6e87 | 13775 | fi; |
5f34ed87 BK |
13776 | if test "$enable_hosted_libstdcxx" = no; then |
13777 | { echo "$as_me:$LINENO: Only freestanding libraries will be built" >&5 | |
13778 | echo "$as_me: Only freestanding libraries will be built" >&6;} | |
13779 | is_hosted=no | |
13780 | hosted_define=0 | |
13781 | enable_abi_check=no | |
13782 | enable_libstdcxx_pch=no | |
4ffe6e87 | 13783 | else |
5f34ed87 BK |
13784 | is_hosted=yes |
13785 | hosted_define=1 | |
4ffe6e87 | 13786 | fi |
5f34ed87 BK |
13787 | |
13788 | ||
13789 | cat >>confdefs.h <<_ACEOF | |
13790 | #define _GLIBCXX_HOSTED $hosted_define | |
13791 | _ACEOF | |
13792 | ||
13793 | ||
13794 | ||
13795 | # Check for compiler support that doesn't require linking. | |
13796 | ||
13797 | echo "$as_me:$LINENO: checking for exception model to use" >&5 | |
13798 | echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6 | |
13799 | ||
13800 | ||
13801 | ac_ext=cc | |
13802 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13803 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13804 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13805 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13806 | ||
13807 | # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given. | |
13808 | if test "${enable_sjlj_exceptions+set}" = set; then | |
13809 | enableval="$enable_sjlj_exceptions" | |
13810 | ||
13811 | case "$enableval" in | |
13812 | yes|no|auto) ;; | |
13813 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable sjlj-exceptions" >&5 | |
13814 | echo "$as_me: error: Unknown argument to enable/disable sjlj-exceptions" >&2;} | |
13815 | { (exit 1); exit 1; }; } ;; | |
13816 | esac | |
13817 | ||
4ffe6e87 | 13818 | else |
5f34ed87 BK |
13819 | enable_sjlj_exceptions=auto |
13820 | fi; | |
13821 | ||
13822 | ||
13823 | if test $enable_sjlj_exceptions = auto; then | |
13824 | # Botheration. Now we've got to detect the exception model. Link tests | |
13825 | # against libgcc.a are problematic since we've not been given proper -L | |
13826 | # bits for single-tree newlib and libgloss. | |
13827 | # | |
13828 | # Fake what AC_TRY_COMPILE does. XXX Look at redoing this new-style. | |
13829 | cat > conftest.$ac_ext << EOF | |
82a6cadf | 13830 | #line 13830 "configure" |
5f34ed87 BK |
13831 | struct S { ~S(); }; |
13832 | void bar(); | |
13833 | void foo() | |
13834 | { | |
13835 | S s; | |
13836 | bar(); | |
13837 | } | |
13838 | EOF | |
13839 | old_CXXFLAGS="$CXXFLAGS" | |
13840 | CXXFLAGS=-S | |
13841 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13842 | (eval $ac_compile) 2>&5 | |
13843 | ac_status=$? | |
13844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13845 | (exit $ac_status); }; then | |
13846 | if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then | |
13847 | enable_sjlj_exceptions=yes | |
13848 | elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then | |
13849 | enable_sjlj_exceptions=no | |
13850 | elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then | |
13851 | enable_sjlj_exceptions=no | |
4ffe6e87 BK |
13852 | fi |
13853 | fi | |
5f34ed87 BK |
13854 | CXXFLAGS="$old_CXXFLAGS" |
13855 | rm -f conftest* | |
13856 | fi | |
4ffe6e87 | 13857 | |
5f34ed87 BK |
13858 | # This is a tad weird, for hysterical raisins. We have to map |
13859 | # enable/disable to two different models. | |
13860 | case $enable_sjlj_exceptions in | |
13861 | yes) | |
13862 | ||
13863 | cat >>confdefs.h <<\_ACEOF | |
13864 | #define _GLIBCXX_SJLJ_EXCEPTIONS 1 | |
13865 | _ACEOF | |
13866 | ||
13867 | ac_exception_model_name=sjlj | |
13868 | ;; | |
13869 | no) | |
13870 | ac_exception_model_name="call frame" | |
13871 | ;; | |
13872 | *) | |
13873 | { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5 | |
13874 | echo "$as_me: error: unable to detect exception model" >&2;} | |
4ffe6e87 | 13875 | { (exit 1); exit 1; }; } |
5f34ed87 BK |
13876 | ;; |
13877 | esac | |
13878 | ac_ext=c | |
13879 | ac_cpp='$CPP $CPPFLAGS' | |
13880 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13881 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13882 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4ffe6e87 | 13883 | |
5f34ed87 BK |
13884 | echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5 |
13885 | echo "${ECHO_T}$ac_exception_model_name" >&6 | |
4ffe6e87 BK |
13886 | |
13887 | ||
5f34ed87 BK |
13888 | # Check whether --enable-libstdcxx-pch or --disable-libstdcxx-pch was given. |
13889 | if test "${enable_libstdcxx_pch+set}" = set; then | |
13890 | enableval="$enable_libstdcxx_pch" | |
4ffe6e87 | 13891 | |
5f34ed87 BK |
13892 | case "$enableval" in |
13893 | yes|no) ;; | |
13894 | *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&5 | |
13895 | echo "$as_me: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&2;} | |
13896 | { (exit 1); exit 1; }; } ;; | |
13897 | esac | |
4ffe6e87 | 13898 | |
4ffe6e87 | 13899 | else |
5f34ed87 | 13900 | enable_libstdcxx_pch=$is_hosted |
4ffe6e87 BK |
13901 | fi; |
13902 | ||
5f34ed87 BK |
13903 | if test $enable_libstdcxx_pch = yes; then |
13904 | echo "$as_me:$LINENO: checking for compiler with PCH support" >&5 | |
13905 | echo $ECHO_N "checking for compiler with PCH support... $ECHO_C" >&6 | |
13906 | if test "${glibcxx_cv_prog_CXX_pch+set}" = set; then | |
13907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13908 | else | |
13909 | ac_save_CXXFLAGS="$CXXFLAGS" | |
13910 | CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch -Wno-deprecated" | |
4ffe6e87 BK |
13911 | |
13912 | ||
5f34ed87 BK |
13913 | ac_ext=cc |
13914 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13915 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13916 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13917 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4ffe6e87 | 13918 | |
5f34ed87 BK |
13919 | echo '#include <math.h>' > conftest.h |
13920 | if $CXX $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \ | |
13921 | -o conftest.h.gch 1>&5 2>&1 && | |
13922 | echo '#error "pch failed"' > conftest.h && | |
13923 | echo '#include "conftest.h"' > conftest.cc && | |
13924 | $CXX -c $CXXFLAGS $CPPFLAGS conftest.cc 1>&5 2>&1 ; | |
13925 | then | |
13926 | glibcxx_cv_prog_CXX_pch=yes | |
13927 | else | |
13928 | glibcxx_cv_prog_CXX_pch=no | |
13929 | fi | |
13930 | rm -f conftest* | |
13931 | CXXFLAGS=$ac_save_CXXFLAGS | |
13932 | ac_ext=c | |
13933 | ac_cpp='$CPP $CPPFLAGS' | |
13934 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13935 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13936 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4ffe6e87 BK |
13937 | |
13938 | ||
5f34ed87 BK |
13939 | fi |
13940 | echo "$as_me:$LINENO: result: $glibcxx_cv_prog_CXX_pch" >&5 | |
13941 | echo "${ECHO_T}$glibcxx_cv_prog_CXX_pch" >&6 | |
13942 | enable_libstdcxx_pch=$glibcxx_cv_prog_CXX_pch | |
13943 | fi | |
4ffe6e87 | 13944 | |
5f34ed87 BK |
13945 | echo "$as_me:$LINENO: checking for enabled PCH" >&5 |
13946 | echo $ECHO_N "checking for enabled PCH... $ECHO_C" >&6 | |
13947 | echo "$as_me:$LINENO: result: $enable_libstdcxx_pch" >&5 | |
13948 | echo "${ECHO_T}$enable_libstdcxx_pch" >&6 | |
4ffe6e87 | 13949 | |
4ffe6e87 | 13950 | |
5f34ed87 BK |
13951 | if test $enable_libstdcxx_pch = yes; then |
13952 | glibcxx_PCHFLAGS="-include bits/stdtr1c++.h" | |
13953 | else | |
13954 | glibcxx_PCHFLAGS="" | |
13955 | fi | |
4ffe6e87 | 13956 | |
4ffe6e87 BK |
13957 | |
13958 | ||
5f34ed87 | 13959 | # Enable all the variable C++ runtime options. |
4ffe6e87 | 13960 | |
5f34ed87 BK |
13961 | echo "$as_me:$LINENO: checking for underlying I/O to use" >&5 |
13962 | echo $ECHO_N "checking for underlying I/O to use... $ECHO_C" >&6 | |
13963 | # Check whether --enable-cstdio or --disable-cstdio was given. | |
13964 | if test "${enable_cstdio+set}" = set; then | |
13965 | enableval="$enable_cstdio" | |
4ffe6e87 | 13966 | |
5f34ed87 BK |
13967 | case "$enableval" in |
13968 | stdio) ;; | |
13969 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cstdio" >&5 | |
13970 | echo "$as_me: error: Unknown argument to enable/disable cstdio" >&2;} | |
13971 | { (exit 1); exit 1; }; } ;; | |
13972 | esac | |
4ffe6e87 | 13973 | |
5f34ed87 BK |
13974 | else |
13975 | enable_cstdio=stdio | |
13976 | fi; | |
4ffe6e87 | 13977 | |
4ffe6e87 | 13978 | |
5f34ed87 BK |
13979 | # Now that libio has been removed, you can have any color you want as long |
13980 | # as it's black. This is one big no-op until other packages are added, but | |
13981 | # showing the framework never hurts. | |
13982 | case ${enable_cstdio} in | |
13983 | stdio) | |
13984 | CSTDIO_H=config/io/c_io_stdio.h | |
13985 | BASIC_FILE_H=config/io/basic_file_stdio.h | |
13986 | BASIC_FILE_CC=config/io/basic_file_stdio.cc | |
13987 | echo "$as_me:$LINENO: result: stdio" >&5 | |
13988 | echo "${ECHO_T}stdio" >&6 | |
13989 | ;; | |
13990 | esac | |
4ffe6e87 | 13991 | |
4ffe6e87 | 13992 | |
4ffe6e87 | 13993 | |
4ffe6e87 | 13994 | |
4ffe6e87 | 13995 | |
4ffe6e87 | 13996 | |
5f34ed87 BK |
13997 | # Check whether --enable-clocale or --disable-clocale was given. |
13998 | if test "${enable_clocale+set}" = set; then | |
13999 | enableval="$enable_clocale" | |
92eabea2 | 14000 | |
5f34ed87 BK |
14001 | case "$enableval" in |
14002 | generic|gnu|ieee_1003.1-2001|yes|no|auto) ;; | |
14003 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable clocale" >&5 | |
14004 | echo "$as_me: error: Unknown argument to enable/disable clocale" >&2;} | |
14005 | { (exit 1); exit 1; }; } ;; | |
14006 | esac | |
92eabea2 PE |
14007 | |
14008 | else | |
5f34ed87 | 14009 | enable_clocale=auto |
92eabea2 | 14010 | fi; |
92eabea2 | 14011 | |
5780a46b | 14012 | |
0258dc3a BK |
14013 | # Deal with gettext issues. Default to not using it (=no) until we detect |
14014 | # support for it later. Let the user turn it off via --e/d, but let that | |
14015 | # default to on for easier handling. | |
14016 | USE_NLS=no | |
14017 | # Check whether --enable-nls or --disable-nls was given. | |
14018 | if test "${enable_nls+set}" = set; then | |
14019 | enableval="$enable_nls" | |
14020 | ||
14021 | else | |
14022 | enable_nls=yes | |
14023 | fi; | |
14024 | ||
14025 | # Either a known packaage, or "auto" | |
5f34ed87 BK |
14026 | if test $enable_clocale = no || test $enable_clocale = yes; then |
14027 | enable_clocale=auto | |
14028 | fi | |
5f34ed87 | 14029 | enable_clocale_flag=$enable_clocale |
dd75251f | 14030 | |
0258dc3a | 14031 | # Probe for locale model to use if none specified. |
ff66d28f PE |
14032 | # Default to "generic". |
14033 | if test $enable_clocale_flag = auto; then | |
7d3998a4 PE |
14034 | case ${target_os} in |
14035 | linux* | gnu* | kfreebsd*-gnu | knetbsd*-gnu) | |
0258dc3a BK |
14036 | enable_clocale_flag=gnu |
14037 | ;; | |
14038 | darwin* | freebsd*) | |
14039 | enable_clocale_flag=darwin | |
14040 | ;; | |
14041 | *) | |
14042 | enable_clocale_flag=generic | |
14043 | ;; | |
14044 | esac | |
14045 | fi | |
14046 | ||
14047 | # Sanity check model, and test for special functionality. | |
14048 | if test $enable_clocale_flag = gnu; then | |
14049 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
14050 | /* confdefs.h. */ |
14051 | _ACEOF | |
14052 | cat confdefs.h >>conftest.$ac_ext | |
14053 | cat >>conftest.$ac_ext <<_ACEOF | |
14054 | /* end confdefs.h. */ | |
56deb74c | 14055 | |
0258dc3a BK |
14056 | #include <features.h> |
14057 | #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) | |
14058 | _GLIBCXX_ok | |
14059 | #endif | |
ff66d28f PE |
14060 | |
14061 | _ACEOF | |
56deb74c | 14062 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ff66d28f | 14063 | $EGREP "_GLIBCXX_ok" >/dev/null 2>&1; then |
56deb74c BK |
14064 | enable_clocale_flag=gnu |
14065 | else | |
56deb74c BK |
14066 | enable_clocale_flag=generic |
14067 | fi | |
14068 | rm -f conftest* | |
14069 | ||
1451a492 | 14070 | |
1ba74130 PC |
14071 | if test $enable_clocale = auto; then |
14072 | # Test for bugs early in glibc-2.2.x series | |
14073 | if test "$cross_compiling" = yes; then | |
1451a492 BK |
14074 | enable_clocale_flag=generic |
14075 | else | |
ff66d28f | 14076 | cat >conftest.$ac_ext <<_ACEOF |
ff66d28f PE |
14077 | /* confdefs.h. */ |
14078 | _ACEOF | |
14079 | cat confdefs.h >>conftest.$ac_ext | |
14080 | cat >>conftest.$ac_ext <<_ACEOF | |
14081 | /* end confdefs.h. */ | |
14082 | ||
1ba74130 PC |
14083 | #define _GNU_SOURCE 1 |
14084 | #include <locale.h> | |
14085 | #include <string.h> | |
14086 | #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) | |
14087 | extern __typeof(newlocale) __newlocale; | |
14088 | extern __typeof(duplocale) __duplocale; | |
14089 | extern __typeof(strcoll_l) __strcoll_l; | |
14090 | #endif | |
14091 | int main() | |
14092 | { | |
14093 |